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

[amibroker] Re: help needed in finding error in afl



PureBytes Links

Trading Reference Links

Do you mean High greater than the HHV of the first 19 bars of the day,
or of the most-recent 19 bars?

For the former, something like this:

dn = DateNum();
newDay = dn != Ref(dn,-1);
bsnday = BarsSince(newDay);
Buy = bsnday>19 && H > ValueWhen(bsnday==19, HHV(H,19));

For the latter, maybe like this:

dn = DateNum();
newDay = dn != Ref(dn,-1);
Buy = BarsSince(newDay)>19 && H > Ref(HHV(H,19),-1));

Regards,
GP


--- In amibroker@xxxxxxxxxxxxxxx, asit mistry <asitasu@xxx> wrote:
>
> 
> ok . i understand it. but can u help me to code it. i want to buy if
the high of bar after 19 bars in intraday is higher than 19 bar range.
> http://ss1.richmedia.in/recurl.asp?pid=186
>




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/