My Martingale Logics is not working my EA. Please help me to check
Sodiq Kayode Hammed:
Note codes written by an AI or ChatGPT are often treated with ridicule in this forum. They are always full of wrong syntax and try to combine mt4 and mt5 codes.
However, OnTradeTransaction is not guaranteed to work, and if i remember correctly, I think that it is not supposed to work in strategy tester, if that is what you meant by "its not working".
Please anyone should help me out on this EA.
It's opening perfectly based on the indicator signal but i added a martingale feature which will happen after a loss trade. but it's not working . please check the code.