Download MetaTrader 5
To add comments, please log in or register
Sign up for MQL5.community to post your Forum topic
Luca
14
Luca 2009.01.30 11:51 
How to calculate high or low of current day of an indicator (e.g. RSI) ?
Thank you in advance for your help.
No_More
25
No_More 2009.01.30 18:17  
lucone wrote >>
How to calculate high or low of current day of an indicator (e.g. RSI) ?
Thank you in advance for your help.

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 periods depending on type.

Parameters:

symbol - Symbol the data of which should be used to calculate indicator. NULL means the current symbol.
timeframe - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
type - Series array identifier. It can be any of the Series array identifier enumeration values.
count - Number of periods (in direction from the start bar to the back one) on which the calculation is carried out.
start - Shift showing the bar, relative to the current bar, that the data should be taken from.

Sample:
  double val;
  // calculating the highest value on the 20 consequtive bars in the range
  // from the 4th to the 23rd index inclusive on the current chart
  val=High[iHighest(NULL,0,MODE_HIGH,20,4)];
https://docs.mql4.com/series/iHighest
 
 
 
marneni kondalarao
9
marneni kondalarao 2014.02.18 14:04  
StraightTrader:

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 periods depending on type.

Parameters:

symbol - Symbol the data of which should be used to calculate indicator. NULL means the current symbol.
timeframe - Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
type - Series array identifier. It can be any of the Series array identifier enumeration values.
count - Number of periods (in direction from the start bar to the back one) on which the calculation is carried out.
start - Shift showing the bar, relative to the current bar, that the data should be taken from.

Sample:

In the new MetaTrader IDE the above conversion is not working will you please help me how we calculate. Compiler showing Implicit convertion number to string not possible
whroeder1
13644
whroeder1 2014.02.18 15:24  
  1. lucone: How to calculate high or low of current day of an indicator (e.g. RSI) ?
    Read the RSI values into an array (for loop,) find the highest value in the array (ArrayMinimum.)
  2. StraightTrader:
    int iHighest( string symbol, int timeframe, int type, int count=WHOLE_ARRAY, int start=0)
    RTFM iHighest returs the index of the highest bar. OP asked about the highest value of an indicator.
  3. geevansubhiksha: Compiler showing Implicit convertion number to string not possible
    What is you question to do with the original post? Don't hijack threads with off topic posts. Open your own. And show your code.
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.02.18 17:14  
geevansubhiksha:

In the new MetaTrader IDE the above conversion is not working will you please help me how we calculate. Compiler showing Implicit convertion number to string not possible

Thread start date: 2009.01.30

/
To add comments, please log in or register