When using the IB controller, is there a more appropriate situation to use staticvar vs staticvartext. can u give an example please when each would be appropriate?
thanks --- In [email protected], zeek ing <zeekin...@...> wrote: > > My questions is regarding static variables. > When using them for IB controller, does one need to initialize them when > autotrader is turned on. can one set them by using a param trigger like; > > paramtrigger( "autotraderstart",autotrader on) > > if (autotraderon) > > setstaticvar("xxxx", '''): > > etc etc with all the static vars. > > If the staticvars are set when the paramtrigger initializes them, is the > code going to reset the staticvars at empty on each pass through the code > as long as param trigger autotrader was the last thing pressed?? > > How do I avoid that from happening?? > > > thanks in advance, > > as you can see, I am a bit lost > > > zeek >
