simple ea coding help please...

 

Hi,

The attached indicator draws red and blue bars. I hope somebody here can help me out because im wanting to create and ea based on this indicator but dont know how to code...

I want the ea to be totally simple, i want it to open a buy on the opening of the third consecutive blue bar then close this position and open a sell on the opening of the third consecutive red bar and visa versa....

I really hope someone could help me out i'd definitely greatly appreciate it.

Thanks,

oliver

Files:
Reason: