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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.