|
Navigation: Function Reference > User Script Functions > Symbol.ohlc4() Symbol.ohlc4() |
Top Previous Next |
Symbol.ohlc4( offset: Integer ) : Double;
Symbol.ohlc4 : TEStream;
If called with an offset, returns the midpoint (open+high+low+close)/4 price value (as a double) as of that offset. If called with no offset then returns the midpoint price stream for the driving symbol.
Parameters
offset |
integer value (0 or negative offset into stream) |
myPrice := Symbol.ohlc4(-10);
myStream := Symbol.ohlc4;