Don't mix up iHigh (=high of a bar) and iHighest (array index (shift) of the highest high of ...
Same with low!
Fx90:
I know what they do, my proble is that iHighest dont works in this indicator, on the chart is nothing. Just the iHigh Function works (or iLow)
I know what they do, my proble is that iHighest dont works in this indicator, on the chart is nothing. Just the iHigh Function works (or iLow)
You obviously don't know what they do!
iHighest does not return the high of a range, as gooly has already told you.
GumRai: You obviously don't know what they do! | Fx90: you obviously don't. |
Rangehigh[Count] = iHighest(NULL,PERIOD_H1,MODE_HIGH,30,1); = 15.00000 Rangelow[Count] = iLow(NULL,PERIOD_H1,0); = 1.12345Now look at the example from iLowest - MQL4 Documentation (iHighest has a pair of typos)
double val; //--- calculating the lowest value on the 10 consequtive bars in the range //--- from the 10th to the 19th index inclusive on the current chart int val_index=iLowest(NULL,0,MODE_LOW,10,10); if(val_index!=-1) val=Low[val_index];
WHRoeder:
Now look at the example from iLowest - MQL4 Documentation (iHighest has a pair of typos)
Sorry my english isnt the best at all.. It means, that you search with iHighest the (int) number of the candle, which is the lowest of the last 10 periods? and with the iHigh function you search for the (double) low?
GumRai: You obviously don't know what they do! | Fx90: you obviously don't. |
possible way of usage:
double hiHi = iHigh(NULL,0, iHighest(NULL,0, ..));
it's all in the reference!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
my problem is, that the iHigh function works fine for the horizontol line, but if i try to use the iHighest function it dont works, what is my fault?