|
TradeMUX SDK Documentation
1.0
TradeMUX SDK Documentation
|
| int CopyLow | ( | string | symbol_name, |
| int | timeframe, | ||
| int | start_pos, | ||
| int | count, | ||
| out double[] | low_array | ||
| ) |
Returns into low_array the history data of lowest bar prices for the selected symbol-period pair in the specified quantity.
It should be noted that elements ordering is from present to past, i.e., starting position of 0 means the current bar
| symbol | Symbol the data of which should be used to calculate indicator. NULL means the current symbol | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| timeframe | Timeframe. It can be any of following values:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| start_pos | The start position for the first element to copy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| count | Data count to copy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| low_array | Array of double type |
If the whole interval of requested data is out of the available data on the server, the function returns -1.
If data outside TERMINAL_MAXBARS (maximal number of bars on the chart) is requested, the function will also return -1. If requested timeseries are not yet built or they need to be downloaded from the server, the function will immediately return -1. If you need to return value corresponding to the current uncompleted bar, you can use the first form of call specifying start_pos=0 and count=1.