![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Today I didn't recompile while running the EA and those errors didn't really crop up. The only one I got once was the "Pending Hedge long failed:130|1.3187|stop:1.3147|Take:1.3217" which is linked to error code 130. I'm not sure why I'm still getting this since I now create my orders with a stoploss and takeprofit of 0 and modify them immediately afterwards.
Also, can someone tell me how to account for the spread correctly in this code? It seems that when a level is reached, the opposing hedge wont be created until the price has moved about 1 pip further which is highest spread I currently have on the GBPJPY where I noticed this happening.