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

[amibroker] Re: staticvarset or locking in a signal/variable for the day



PureBytes Links

Trading Reference Links

Will the Hold function do what you want?

GP


--- In amibroker@xxxxxxxxxxxxxxx, "huandy631" <hugh.andersen@xxx> wrote:
>
> hello
> I am running a code in 5 min time frame which gets a signal on the 
> first bar of the day, and if there has been a gap the signal is 
> latched on "true" for the day. I've tried most ways to programme this, 
> but am stumped. Staticvarset seems the most logical, but won't accept 
> arrays. Options are: 1) expand signal using timeframeexpand 2)use a 
> function or 3)use staticvarset
> 
> Gapped=open>ref(high,-1)
> now "lock" Gapped as true for all 5 min bars in the day, and reset 
> to "false" on the last bar.....
> 
> If anyone has a suggestion please let me know?
> Hugh
>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
 
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/