TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int CopyClose ( string  symbol_name,
int  timeframe,
int  start_pos,
int  count,
out double[]  close_array 
)

Returns into close_array the history data of bar close 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

Parameters
symbolSymbol the data of which should be used to calculate indicator. NULL means the current symbol
timeframeTimeframe. It can be any of following values:
PERIOD_CURRENT0Current timeframe
PERIOD_M111 minute
PERIOD_M555 minutes
PERIOD_M151515 minutes
PERIOD_M303030 minutes
PERIOD_H1601 hour
PERIOD_H42404 hours
PERIOD_D114401 day
PERIOD_W1100801 week
PERIOD_MN1432001 month
PERIOD_M222 minutes
PERIOD_M333 minutes
PERIOD_M444 minutes
PERIOD_M666 minutes
PERIOD_M101010 minutes
PERIOD_M121212 minutes
PERIOD_M202020 minutes
PERIOD_H21202 hours
PERIOD_H31803 hours
PERIOD_H63606 hours
PERIOD_H84808 hours
PERIOD_H1272012 hours
start_posThe start position for the first element to copy
countData count to copy
close_arrayArray of double type
Returns
Returns the number of element in the array or -1 in case of an error.

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.