Download MetaTrader 5
To add comments, please log in or register
How to buy a product in MetaTrader AppStore? Read the article!
Automated-Trading
Admin
98900
Automated-Trading 2012.10.12 08:30 

Daily Range:

This indicator calculates and shows daily highest and lowest prices, display them as two set of lines.

Daily Range

Author: Liping Wang

Rogerio Figurelli
Moderator
39469
Rogerio Figurelli 2012.10.12 18:38  
Thanks Liping, good work.
jmfx
10
jmfx 2012.10.14 10:35  

Hello,

is it possible to add in your indicator the hightest and the lowest price of week ?

instead of the day 

or have the possibility to enter this variable, for exemple :

input...=day; // lasthigh of day

input...=month; 

... 

choose the highest of the day, month, 2 months or 3 months ago, 6 months 

 

Thank you for your return 

makk
27
makk 2016.09.30 07:56  

Thanks for this useful indicator. 

There is a small bug however: for older days it shows wrong ranges. to fix, please change the line

if(mdtDay.day==mdt.day)

to

if( mdtDay.day == mdt.day && mdtDay.mon == mdt.mon && mdtDay.year == mdt.year )

.

/
To add comments, please log in or register