Code for strategy

For 14 Period Ease of Movement indicator, i have following strategy

Buy- Condition #01: when indicator turns up from -ve to +ve, mark HIGH of that particular price candle

Condition # 02: Buy once that HIGH is crossed 

Buy Stop- LOW of the signal candle

Sell- Condition #01: when indicator turns DOWN from +ve to -ve, mark LOW of that particular price candle
Condition # 02: Sell once that LOW is crossed

Sell Stop- HIGH of the signal candle

Find the below code- 

***BUY- 
EOM(CLOSE,14)>0 and LAST> Ref(HIGH,1)

***BUY exit-
LOW

***SELL-
EOM(CLOSE,14)<0 and LAST<Ref(LOW,1)

***SELL Exit-
HIGH
1 Like