Home | Trading Alchemy Manual | Alchemy Functions IndexAlchemyOHLC (Function)AlchemyOHLC is a multiple-output function that provides the session open, high, low and closing prices as well as the session open, high, low and closing bar numbers. AlchemyOHLC (DaysAgo,StartT,EndT,XDayOfWeek,oSessOp,oSessHi,oSessLo,oSessCl,oSessOpBar,oSessHiBar,oSessLoBar,oSessClBar) Parameters
|
DaysAgo |
Specifies the session period that the open, high, low, close prices are based on, whereas 0 uses the current periods open, high, low close, 1 uses the previous periods open, high, low close and so fourth. |
StartT |
Specifies the session start time. This is a special feature that gives this function the flexibility to specify the session times. With this feature, the prices can be calculated based on the high, low and close of a predetermined day session while plotted on an all sessions symbol. A negative setting uses TradeStation's day high, day low and day close function that is based on a calendar day. |
EndT |
Specifies the session end time. This is a special feature that gives this function the flexibility to specify the session times. With this feature, the prices can be calculated based on the high, low and close of a predetermined day session while plotted on an all sessions symbol. A negative setting uses TradeStation's day high, day low and day close function that is based on a calendar day. |
XDayOfWeek |
Specifies a certain day of the week to be excluded from a session to be used for a prices calculation. 0=Sunday, 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday and a negative value disables this feature. |
oSessOp |
Variable that receives the session opening price. |
oSessHi |
Variable that receives the session high price. |
oSessLo |
Variable that receives the session low price. |
oSessCl | Variable that receives the session closing price. |
oSessOpBar |
Variable that receives the session opening bar number. |
oSessHiBar | Variable that receives the session high bar number. |
oSessLoBar | Variable that receives the session low bar number. |
oSessClBar | Variable that receives the session closing bar number. |
ReturnsAlchemyOHLC returns a fixed number of 1. The session opening price is passed by reference back to the oSessOp. The session high price is passed by reference back to the oSessHi. The session low price is passed by reference back to the oSessLo. The session closing price is passed by reference back to the oSessCl. The session opening bar number is passed by reference back to the oSessOpBar. The session high bar number is passed by reference back to the oSessHiBar. The session low bar number is passed by reference back to the oSessLoBar. The session closing bar number is passed by reference back to the oSessClBar.
|