Indicators: Daily Range

 

Daily Range:

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

Daily Range

Author: Liping Wang

 
Thanks Liping, good work.
 

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 

 

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 )

.

Reason: