What should we build?
Describe your strategy in your own words — English, Hinglish, however you think about it. You will get a complete MetaTrader 5 Expert Advisor you can paste into MetaEditor.
Compile it, and if MetaEditor shows an error, paste the error back here and it will be fixed.
Test every EA on a demo account first. Code that compiles is not code that has been proven to trade the way you intended.
Generated code is not financial advice and has not been tested on your account. Trading carries risk and most retail accounts lose money.
