How i code the MA levels in a EA?!

 

I hope someone can help me codding this.


For my ea, i only trade when the price is outside of the level -1000/1000 of the Moving Average 1000.


double Buy1 = iMA(NULL, 0, 1000, 0, MODE_SMA, PRICE_CLOSE, Current + 0); ====>>>> maybe i have to join something????!!!!


sorry for my english.


thanks for your attention


bg

 
what u mean by -1000/1000 level?
 

iEnvelopes helps you

Reason: