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

[amibroker] Re: Tracking intraday High & Low



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "Paul Ho" <paultsho@xxx> wrote:
>
> try highestssince(datenum() != ref(datenum(), -1) for high and the
opposite
> for low
> 
> 
>   _____  
> 


Thanks Paul,

I'll give it a try.

The following was my attempt of coding, maybe someone will be able to
explain what was wrong:

============================================================

FirstBarofDay = DateNum() != Ref(DateNum(), -1);
HToday =0;			
LToday =0;

HToday = IIf(FirstBarofDay, H, Max(H, Ref(HToday, -1)));
LToday = IIf(FirstBarofDay, L, Min(L, Ref(LToday, -1)));

Plot( HToday, "Ht", colorRed );
Plot (LToday, "Lt", colorYellow);



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

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/