Indicator to dictate Buy/Sell

 

Basically I would like to know how to use an indicator to dictate an "EA's" actions.

i.e.

//buy and sell at the "turning points".

if indicator > 0

{

Buy();

}

if indicator < 0

{

sell();

}


 
ricloud:

Basically I would like to know how to use an indicator to dictate an "EA's" actions.


You use iCustom to get at the Indicator's buffers and take decisions based on the values in the Buffers.
Reason: