Multiple Trades Closing At Different Times
-
I am still trying to figure out how to get it where 2 of my trades will close when it crosses the midline of a trendline while the other two will then create a trailing stop, for some reason it either creates massive amounts of trades or simply doesnt work, I will post a screen shot of kind what it looks like right now.

-
@laneciar https://imgur.com/YrFDkrQ there is the direct link if it is clearer to read.
-
@laneciar It’s set up wrong, the conditions are activating on every single tick, and every single tick the conditions are passing to buy or close trades or create trailing stops. Use the once per bar button before the buy, close, trailing etc.
-
@johnle1024 How are the conditions passing? If the price only crosses the midline once why would it do it over and over again?
-
@laneciar because it keeps trying to close trades and create trailing stops every single tick. probably is doing the same thing with your buys. See below:
-
@johnle1024 Ahh thank you!! I see now
-
@johnle1024 I need the first buy trade to close when it crosses the midline buffer as in the picture i will post, I dont see an option to set it to trigger the take profit once it crosses? https://imgur.com/a/7SyKqnX
-
@laneciar create a candle cross condition and attach to trade exit. Or insert the value of the trend line.
-
@laneciar Everything in "Buy now" block happens at the time when the trade is created. Except the expiration settings, because I wrote a system that would check the time on every tick outside this block. But SL and TP are just levels and they will be placed at certain level and that's all. To close the trade on indicator signals, then you need to do it outside this block - to detect the signal (with Condition for example) and then to close it (with "Close trades").
But when you use "Close trades", it's important to NOT allow this block to close any trade immediately after the trade is created. Many people make this error, because the conditions to close the buy are the same as the conditions to sell, and the conditions to close the sell are the same as the conditions to buy. A loop happens and the EA buys and sells non stop. Take a look at the third example here - https://fxdreema.com/examples - where I used two "Close trades", but because of the settings in the blocks no such deadly loop happens.