Why does my strategy take 3 positions at the same time?
Forums › ProRealTime English forum › ProOrder support › Why does my strategy take 3 positions at the same time?
- This topic has 9 replies, 5 voices, and was last updated 1 year ago by ZeroCafeine.
-
-
05/12/2023 at 9:33 AM #214572
I need help to understand CumulateOrders = True
Why does my strategy take 3 positions at the same time? Se attached
12345678DEFPARAM CumulateOrders = TruePositionSize=1 //1=746 EURIf RSI[14](close) < 70 thenbuy PositionSize CONTRACT AT MARKETSET STOP %LOSS 2set target %profit 2Endif05/12/2023 at 9:35 AM #21457405/12/2023 at 9:35 AM #21457505/12/2023 at 9:40 AM #21457705/12/2023 at 9:48 AM #21457905/12/2023 at 9:50 AM #21458005/12/2023 at 9:52 AM #2145813 positions at the same time?
It doesn’t for me, see attached, EURUSD 1 Hour TF.
05/12/2023 at 10:15 AM #214584Code is read only once at Close, so BUY should be made only once and therefore no cumulation on the same bar.
What you observed are orders closed at the same time by your breakeven or trailing stop SELL orders. If you want to get the precise time of entries of your BUY orders, look at “Orders list” in the detailed report.
05/12/2023 at 10:30 AM #21458505/12/2023 at 11:52 AM #214599yes this may well be the cause as the condition is still true, I discovered this same issue a few days ago before tearing my hair out 😆
-
AuthorPosts
Find exclusive trading pro-tools on