Most functions use these parameters below, so they will be explained only once.
-
General parameters
- Name: applied_price
- Type: ENUM_APPLIED_PRICE
- Description: Basic ENUM from MQL5 language, select the price (HIGH,LOW,CLOSE,OPEN) , you can see more in this link.
- Name: symbol
- Type: string
- Description: The name of symbol to be read
- Name: time_frame
- Type: ENUM_TIMEFRAMES
- Description: Timeframes of the charts, you can see more in this link.
- Name start_pos
- Type: int
- Description: The number of most recent candles you want disregard. If you want get the most recent candle put 0 in this param.
- Name count
- Type: int
- Description: The number of candles you want to consider.
- Name: applied_price
-
Class Methods
- Name: GetCandles
- Return: int
- Parameters: (ENUM_APPLIED_PRICE,const string symbol,ENUM_TIMEFRAMES,int start_pos,int count,double &ret_array[])
- Description: Will copy the applied price of the candles sample to the parameter ret_array, and will return the number of copied prices. If any error occurs, will return -1.
- Name: GetMaxPrice
- Return: double
- Parameters: (ENUM_APPLIED_PRICE applied_price,const string symbol,ENUM_TIMEFRAMES time_frame,int start_pos,int count)
- Description: Return the max price of the candles sample, the max price is in relation the applied price.
- Name: GetMinPrice
- Description: Equal 'GetMaxPrice' method, but return min price.
- Name: GetCandles