Indicators: Horizontal line for max/min prices of the last 2 years

 

Horizontal line for max/min prices of the last 2 years:

Example code on how to draw an horizontal line for maximum and minimum prices of the last 2 years.

Example code on how to draw an horizontal line for maximum and minimum prices of the last 2 years.

Author: Alain Verleyen

 

Hello Alain,

Do you have the MT4 version of this indicator, and can we use it with variable input of start time & end time?

Appreciate very much for your attention.

 
Taufiq:

Hello Alain,

Do you have the MT4 version of this indicator, and can we use it with variable input of start time & end time?

Appreciate very much for your attention.

I provided this code for free, you can change it as you want.

If you can't do it yourself, please use the Freelance service.

 
Thank you. I will go there.
 
Thank you for providing the index,excuse me:How to modify the line color.
 
xy618z #:
Thank you for providing the index,excuse me:How to modify the line color.

Add such code in the indicator :

ObjectSetInteger(0,...,OBJPROP_COLOR,YourColor);

Replace the dots by the object name.

Reason: