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".

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.