Hello Unaiz. I attempted version2 of this EA but it does not seem to work. It only works if I remove these two conditions (when setting a buy):
if(Low_1gt;EMA_1 Envelope_Range*Point)// closed bar didn't touch MA envelope
if(Low_2gt;EMA_2 Envelope_Range*Point)// 2nd previous closed bar didn't touch MA envelope
and also if I eliminate these two conditions (if setting a sell):
if(High_1lt;EMA_1-Envelope_Range*Point)// closed bar didn't touch MA envelope
if(High_2lt;EMA_2-Envelope_Range*Point)// 2nd previous closed bar didn't touch MA envelope
Even then it requires far too many inaccurate trades. I've tried distinct parameters like envelope range, stop lossetc, to no avail.
Any assistance will be greatly valued.
Thanks.