- 1st Exit: Profit Target
- 2nd Exit: Exit Rule
Generally when I lose the trade because it hits the Exit Rule before hitting Profit Target,
It doesn't close both positions at the same bar; one closes the exit day as expected, but the second position closes the next day like the attached picture.
Status changed from New to Waiting for information
Let's say I have opened two positions long.
One exit is meant to close 50% the position at a fixed profit, let's say when price hits 5 ATR from initial price: https://i.imgur.com/FB98EYu.png
The second exit is meant to close the remaining 50% on the exit rule: https://i.imgur.com/YFmcdy7.png
If the trade hits the profit target before hitting the exit rule, it will look good as expected : https://i.imgur.com/aQYsaBU.png
But if the trade hits the exit rule before hitting the profit target, it look like this:
https://i.imgur.com/C4Zqeok.png
https://i.imgur.com/6OUsSpg.png
In both cases, the first position closes at the exit rule as expected but the second position will close always the next day, causing a major loss.
It would be nice if both positions had closed at the same bar when the exit rule is triggered before hitting profit target.
From only the screenshots it is not sure why it closed on the next day, it could have been StopLoss.
Can you attach your strategy?
Attachment Test 3.sqx added
https://i.imgur.com/RgCNluU.png
The trades you can see the issue are:
Trade #7: https://i.imgur.com/WMGf4hB.png
Trade #23: https://i.imgur.com/XHrtKI0.png
Trade #27: https://i.imgur.com/0iHDkri.png
Also I've noticed today that there's a difference between Builder and AlgoWizard using the same ATM configuration and strategy:
Builder: https://i.imgur.com/OtV5vFo.png
AlgoWizard: https://i.imgur.com/gOU2B7j.png
Status changed from Waiting for information to Fixed
I fixed one bug there, but the way ATM is behaving together with Exit rules is probably different than you expect. ATM doesn't disable the exit rule, so when exit rule is triggered it should close your full position, not only half of it.
It works as you expect only if PT is reached before exit rule is triggered. I added a note about this to ATM Settings documentation.
If you'd want to ignore exit rule for ATM it would have to be made in a special way, I'm not sure this is something people would want.
To the contrary, exit rule always should close all positions when exit rule triggers, but the same day.
The bug I saw was in the case we don't reach the profit target yet and exit rule is triggered, so one of the positions closes as expected but the remaining position closes the next candle.
I found ATM useful, but I think it will be more useful when we could apply SL, Trailing Stop, SL to BE and SL to BE Add Pips to every position, independently.
Do you know if this feature will be available for Build 132?
Attachment image-0.png added
It should be changed like in the screenshot.