I am willing to pay anyone who can help me
-
I have a rule set up on my EA that only enter a new order when the previous one is already profitable. but when trading on a live account, the EA enters consecutive orders even though the old order has not taken profit yet. but when I load that period and backtest, the EA enters the order according to the rules (only enter a new order when the previous order has been profitable), I really don't understand why this is the case. and on a real account EA also regularly closes all trades even though it's not profitable, while I set up only closing and deleting all pending orders when the average profit is 0.3 money. Please give me suggestions. repair . this is my project https://fxdreema.com/shared/HWBhDILIb
image 1 is on real account , image 2 is me backtest on same time . When backtesting, the EA entered according to the rules I installed, but on the real account, it did not enter the installed rules correctly.

-
@gggvvvv I don't see the logic of duplicating the block on the 'on trade' tab when they are already active on the 'on tick' tab. Why do you need them there?
-
@l-andorrà yes , the purpose of the blocks on the " on trade " tap is to close and delete pending orders when they take profits . but the problem is that i used the " for each trade" block to prevent the EA from entering consecutive trades, i just want it to enter the next trade when the previous one has taken profits and closed all the previous trades. although it works perfectly on backtest , but on real account it enters consecutive orders even though the previous order has not been closed , and the EA also often automatically closes and deletes all orders when the take profit level has not been reached ( I set the middle average price is 0.3 money) . I have tried many ways such as changing the ask price to the bid price , changing the broker with very small spread , increasing the tp and sl level , but none of them worked . I look forward to your help , any suggestions are very valuable to me , I am very stuck .
-
@l-andorrà if i concatenate the "no trade " block with the " for each posttlon" block like this, can the error be solved?

-
@gggvvvv You should never connect a 'for each position' block below a 'no trade' block. That will stop them. Additionally, are combining mq4 and mq5 blocks, maybe? That 'no trade' block is correct for mq4, but the 'for each position' one will not work correctly here. It is used on mq5.
-
@l-andorrà thank you
-
@gggvvvv You're welcome.