Your topic has been moved to the section: Expert Advisors and Automated Trading
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
Hey,
I am quite new to coding in Meta Editor, but I have this code for a MA cross-over strategy, where it should generate orders every time the MA crosses and terminate the orders, when it crosses the opposite way. It does work somtimes, but if I backtest on real data it seems that it is only sometimes it executes and terminates the orders on the MA crossings. I don't understand why it just seems to ignore the crossings at times. I am currently testing it on the 1MIN timeframe for USDJPY back from 2020-01-01. On the photo is an example of one of the orders it creates and two crossings afterwards. The picture is attached.