"ON TRADE" event works badly?
-
Hi there! Can someone check if i have made any mistakes?
Let me explain: at each stop loss there is a lot increase. This is ok in backtesting but not in live trading, why? Please see the account history.the project https://fxdreema.com/shared/zIe7tSepe


-
The broker is probably reseting your terminal so the variable reset. you should update it following miros save to file post so they are saved and can be read back
-
@hadees Please, it is not a broker issue, it also happens on platforms of several other brokers
-
Your terminal is resetting which is causing the variable to reset.
-
-
@hadees thanks for spend your time, but please, check the same behavior without variables
https://fxdreema.com/shared/bvdainWdd


-
@Hadees seems that the "on trade" interrupt him work and "on tick" opens the initial trade
-
@ambrogio Create a boolean variable initially as false before block 22. Then change it into true after block 22. That way those blocks on the 'on tick' tab will not interefere anymore until the EA ir reset.
-
@l-andorrà Already tried something like this, it looks like "trade closed" block does not do his duty because at some point does not pass the buy / sell order in the "on trade" event.
-
@ambrogio That's weird because that block works perfectly fine to me in all my EAs. Honesntly I cannot seen any falw in the logic.