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

[amibroker] Re: How to code High/Low of day?



PureBytes Links

Trading Reference Links


YO = TimeFrameGetPrice( "O", inDaily, -1); // gives you yesterday 
Open 
YH = TimeFrameGetPrice( "H", inDaily,-1); // gives you yesterday High
YL = TimeFrameGetPrice( "L", inDaily, -1); // gives you yesterday Low
YC = TimeFrameGetPrice( "C", inDaily, -1); // gives you Yesterdays 
Close
YV = TimeFrameGetPrice( "V", inDaily, -1); // gives you Yesterdays 
Volume


/////////////////////////////////////////////////////////////////////
//////////////////////////////
TO = TimeFrameGetPrice( "O", inDaily, 0); // gives you Today's Open 
TH = TimeFrameGetPrice( "H", inDaily,0); // gives you Today's High
TL = TimeFrameGetPrice( "L", inDaily,0); // gives you Today's Low
TC = TimeFrameGetPrice( "C", inDaily,0); // gives you Today's Close
TV = TimeFrameGetPrice( "V", inDaily,0); // gives you Today's Volume




--- In amibroker@xxxxxxxxxxxxxxx, "quexos0" <quexos0@xxxx> wrote:
> 
> How do u code the High/Low of each trading day?
> Say if I want to code a system that sell/cover all positions if 
the 
> price reaches high/low of yesterday.
> 
> Thanks a lot!





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> 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/