mail4kafi:
int val_index=iHighest("EURUSD",5,MODE_HIGH,650,600);
the code above printing 1220 but the index value should be something between 650 to 600.
Read the manual https://docs.mql4.com/series/ihighest
iHighest - Timeseries and Indicators Access - MQL4 Reference
- docs.mql4.com
iHighest - Timeseries and Indicators Access - MQL4 Reference
mail4kafi: the index value should be something between 650 to 600.
The index value should be between [600 … 1249] assuming you have at least 1250 bars.
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
I am experiencing a strange problem using iHighest to find out the index of the highest bars.
It works for smaller number of bars, but if i test it with large number of bars then its giving me meaningless index value.
int val_index=iHighest("EURUSD",5,MODE_HIGH,650,600);
Print(val_index);
the code above printing 1220 but the index value should be something between 650 to 600.