指定
I want to create an EA like this:
- Long entry: Price close above EMA
Close long when price close below EMA
- Short entry: Price close below EMA
Close long when price close above EMA
EMA long short strategy with setting
- STOPLOSS:
+ 1st option close at specific setting price
+ 2nd option stoploss at highest price of signal candle.
- TAKE PROFIT at specific setting price
- BREAKEVEN: when price move to a certain price the breakeven is active, the SL will move to offsetting price.
- TRAILING TRIGGER: when price move to a certain price, trailing stoploss will active
- TRAILING DISTANCE: Distance of the trailing stop-loss from current price.SL will be opened at traildist after trailtrig is met.
- TRAILING STEP : Moves trailing stop-loss once price moves to 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.
QUESTION: with the trailling stoploss can you set at close price. For example, when price close 12 pips over entry then the trailing trigger is active and so on for other trailing distance and trailing step.