[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: initializing static variables.



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, zeek ing <zeeking57@xxx> 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
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/