only sell condition (8) executes? can anyone help please?
-
below is the shared link and I have 2 x buys and 2 x sells but only one sell (8) executes in a backtest on mt4. is there anybody that could please help me with this?
-
@gligroup The 'No trade' block on tp is the reason of it beacuse it is stopping buys and sellss at the same time. You need to move the 'once per bar' block on top and then duplicated the 'no trade' blocks, one for buys onlyand the other one for sells only.
-
thank you for that. will this be the same for the buy (17) and sell (23)?
-
https://fxdreema.com/shared/lFwOlDFee
like this??
-
@gligroup Much better now, but why did you remove tha 'once per bar' block? That was not necessary.
-
ok i will reinstate that block, in backtesting it still did only complete the sell (8) function without any buys again. i will add the block and post back here the results.
many thanks
-
-
@gligroup Blocks 1, 9, 17 and 24 are not specified to any group. You need to coordinate them with the respective group number at the botom of each tree block.
-
awesome thak you, would this just reflect their trade execution conditions? buy and sells
-
@gligroup Not sure what you mean. Defining groups allows the EA to specify different conditons for buys and sells, yes. Is that what you asked for?
-
i have defined the groups but the EA is still only executing one sell condition
-
@gligroup Can you please share the latest version?
-
-
@gligroup You haven't modified groups in blocks 1 and 9 yet, man!

-
block 9 with the sell condition attached executes although the 1st, 3rd and 4th blocks do not execute. for the no-trade block will it just be group 1 and group 2?
-
@gligroup This is weird. Maybe it will sound silly bit I recommend you to remove all blocks from 1 to 5 and create them again with exactly the same numbers. Try it and let me know.
