Closing trade
-
Hi all
Does anyone know how to close an open trade based on candle close below/above moving average?
Apologies if asked before but I can't seem to find anything. Cheers -
-
That's great thanks. Would that then take away the need for stop loss/take profit?
-
Also, do I use 'for each trade' instead of 'no trade'?
-
@technodroid Well, it depends on what you need? This is just a suggestion for your initial question. What is the full strategy supposed to do?
-
@l-andorrà I want to buy when price is above 200 ema and when it's above 8 ema - 2 conditions
and opposite for sell. Then rather than using stop loss or take profits to close trades (just initial stop and maybe break even once in profit so many pips) just close the trade when candle close's below the 8 ema for buy and above for sell. This would be on 4 hr chart.
The idea is to try and catch swings whilst trading with the main trend. -
@technodroid In that case my suggestion should do the job. Jusr try it and let us know.
-
@l-andorrà Hi, I can't work out how to link this up to the buys and sells. I'm thinking maybe buy and sell if candle closes above or below moving averages then use trailing stop for closing trades. Would that be easier?
-
@technodroid Can you please share the link to your project?
-
-
@l-andorrà Try this one https://fxdreema.com/shared/Ku0pWn0be
-
@technodroid These are my suggestions:
- That time filter block should be connected ABOVE the 'no trade' block and not below it.
- Specify candle ID 1 on all operands of all 'condition' blocks.
- You are not using my suggested structure. The only way to exit trades is by hitting the SL. Is that what you want?
-
@l-andorrà I've changed time filter now thanks.
Is candle ID 1 the previous candle and would that be better to prevent false signals?
I thought the trailing stop might lock in more profit rather than wait for a candle close below or above.
If I used your structure would there 2 of those for buys and sells and that's it? -
@technodroid Correct. You are right.
-
@l-andorrà
I'm trying to create a 5 min scalping ea with the conditions listed and using the structure you suggested. I need it to buy when conditions are met (MA's CCI) and close trade when candle close below/above MA. I haven't used stops as candle close will do that.
Here is link https://fxdreema.com/shared/Pc4ZVxveeIs this correct?
Would you advise I use a safety stop initially to minimize risk, say 25 pips? -
Sorry try this link instead I forgot to update some blocks https://fxdreema.com/shared/BZp9XiHtd
-
@technodroid You should do the following changes.
- Disconnect blocks 1 and 3 on the left and 2 and 8 on the right.
- Use a 'No trade' block for buys only on top blocl 3 and another one for sells only on top of block 8.
I cannot offer any special advise on minimizing risk. If the strategy is good enough, minimizing risk is a lesser issue.
