Need help for this very very simple indicator

 

Hi,

I'm not a good programmer. Please help me for this indicator.

1) Highest high of N period - N2

2)Lowest low of N period + N2

so inputs are two values: N for the highest high and the other N (N2)

1)green

2)red

many many thanks in advance

 
 
newdigital:
It was coded here https://www.mql5.com/en/forum/general

thanks but what I want is different.... I would like an indicator that give me the difference between the highest high of N bars and a number that I will put in the settings.....And the addition between the lowest low of N bars and the number

 

Look at this standard zigzag indicator's explanation here https://www.mql5.com/en/forum/173514

May be zigzag indicator is what you want ...

 
newdigital:
Look at this standard zigzag indicator's explanation here https://www.mql5.com/en/forum/173514 May be zigzag indicator is what you want ...

no,that is not

thanks again

 
canados:
no,that is not thanks again

for example..in metastock the formula is

hhv(h,10)-0.0040

settings are 10 and 0.0040 and I can choose them by the window

 

Canados indicator

Hi, Canados

is this what you want ?

Files:
 
breakmov:
Hi, Canados is this what you want ?

Thank you Breakmov, you're great....Yes it is. If I can help you in something please contact me.Happy trading

 

how can I shift it of 1?

 

Can u post a screen shot?

 

......

breakmov

Files:
Reason: