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

RE: [amibroker] Re: Tracking intraday High & Low



PureBytes Links

Trading Reference Links

Ok , there was a syntax error in my previous mail
so try this one
FirstBarofDay = DateNum() != Ref(DateNum(), -1);
HToday = HighestSince( FirstBarofDay, H);
LToday = LowestSince(FirstBarofDay, L);

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


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Angelo
Sent: Friday, 4 July 2008 10:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Tracking intraday High & Low

--- In amibroker@xxxxxxxxxps.com, "Paul Ho" <paultsho@xx.> 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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___