TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int iHighest ( string  symbol,
int  timeframe,
int  type,
int  count = WHOLE_ARRAY,
int  start = 0 
)

Returns the shift of the maximum value over a specific number of bars depending on type

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
typeSeries array identifier. It can be any of the Series array identifier values:
MODE_OPEN0Open price
MODE_LOW1Low price
MODE_HIGH2High price
MODE_CLOSE3Close price
MODE_VOLUME4Volume, used in iLowest() and iHighest() functions
MODE_TIME5Bar open time, used in ArrayCopySeries() function
countNumber of bars (in direction from the start bar to the back one) on which the search is carried out
startShift showing the bar, relative to the current bar, that the data should be taken from
Returns
The shift of the maximum value over a specific number of bars or -1 if error. To check errors, one has to call the GetLastError() function.