EA identify three or more bull/bear candles in a row

Back to topics list To post a new topic, please log in or register
avatar
4
sebwelch 2015.09.14 05:56
 

Hi,

 

I am trying to code and EA that identifies three or more bull/bear candles in a row.

I am having trouble trying to plan it out and code it.

 

Any help will be greatly appreciated

Thank you in advance

avatar
120
DeanDeV 2015.09.14 20:15 #
 
sebwelch:

Hi,

 

I am trying to code and EA that identifies three or more bull/bear candles in a row.

I am having trouble trying to plan it out and code it.

 

Any help will be greatly appreciated

Thank you in advance

if(Open[3]<Close[3] && Open[2]<Close[2] && Open[1]<Close[1])   //3 bulls
 {

 }

if(Open[3]>Close[3] && Open[2]>Close[2] && Open[1]>Close[1])   //3 bears
 {

 }
Alternatively, write a loop.
Back to topics list  

To add comments, please log in or register