Daily Ranges

spreader_legger

Well-known member
Messages
447
Likes
38
This is probably quite an obvious question.

But does anyone know how to get metatrader to calculate previous and current period ranges and highs & lows?
 
double h = High[iHighest(Symbol(), 0, 10, 0));
double l = Low[iLowest(Symbol(), 0, 10, 0));

Gives you high\low of range of ten previous bars.
 
Thanks for that.

I've pressed double h, but nothing seems to happen.
Do I have to code something in?
 
Top