Job finished
Specification
I want to create a EA with the requirement show on the attach file.
Long entry: Price close above EMA
Close long when price close below EMA, this also count as Stoploss for long
Short entry: Price close below EMA
Close long when price close above EMA, this also count as stoploss for short
EMA long short strategy with setting
- STOPLOSS:
+ 1st option close at specific setting price
+ 2nd option stoploss at highest price of signal candle for SHORT and stoploss at lowest price for LONG
- TAKE PROFIT at specific setting price
- BREAKEVEN: when price close at a certain price then the breakeven is active, the SL will move to offsetting price.
- TRAILING TRIGGER: when price close at a certain price, trailing stoploss will active
- TRAILING DISTANCE: Distance of the trailing stop-loss from current price.SL will be opened at trail distance after trailing trigger is met.
- TRAILING STEP : Moves trailing stop-loss once price close at favourable by a specified number of pips.
examble for trailing step: trailtrig=12,traildist=8,trailstep=3
Interpretation
With trailtrig=12, the first instance of trailing SL will be when price moves favourably for 12 pips (entry+12).
The SL will be placed 8 pips lower at (entry+12-8).
With trailstep=3, the second instance of trailing SL is when price moves favourably for another 3 pips (entry+12+3).
The SL will be placed at 8 pips lower at (entry+12+3-8).
The third instance will be when price moves another 3 favourable pips (entry+12+3+3)
The SL will be placed 8 pips lower at (entry+12+3+3-8), and so on.
- TRADING TIME : buy or sell only active during active hours are setting.
- Daily profit and daily loss setting
- Close on reverse : this funtion is like hedging mode. I can turn this on off if i want to. For example when a Long trade open, it will be close when short open, and short will close when long open.