Need help with indicator please

 

Hi,

Im a total newbie when it comes to programming.

So please if anyone can help , then it would be much appreciated.

I am trying to draw a straight line every time a condition is met.

the condition is once a candle closes the open of the next candle is compared to the open of the previous candle.

If it is the same then a line is drawn from the previous candle close (not open ) through the new candle open then continue for up to a distance of at least the next 50 candles.

in the example picture , you see two possible examples.

you see in both A and B candles numbered 1 and 2

The lines in both cases once the condition is met , starts at candle 1 close through candle 2 open and then there after to continue for a predictive 40 candles..

lines to be coloured as per the picture red for down and blue for up.

thanks for any help.

much appreciated.

 

ok i done.

message your mail

 

Mladen, please could you delete fibo levels from this indicator? I want to see only bands

Best Regards

 
tomitom06:
Mladen, please could you delete fibo levels from this indicator? I want to see only bands Best Regards

tomitom06

Try it out : auto_fibo_coodonates_mtf_no_fibo.mq4

Reason: