TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int ArrayCopySeries< T > ( TMXArray< T >  array,
int  series_index,
string  symbol = null,
int  timeframe = 0 
)

Copies a series array to another one and returns the count of the copied elements

Template Parameters
TType of array elements
Parameters
arrayDestination array of double type
series_indexSeries array identifier. It can be any of the Series array identifier enumeration values:
MODE_OPENOpen price
MODE_LOWLow price
MODE_HIGHHigh price
MODE_CLOSEClose price
MODE_VOLUMEVolume, used in iLowest() and iHighest() functions
MODE_TIMEBar open time, used in ArrayCopySeries() function
symbolSymbol name
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
Returns
The function returns copied elements amount, or -1 if failed