MT4 server issues in algo trading can be because of the following reasons.
Investor vs Trader Account
If you are able to place orders in strategy tester but not able to place orders in live trading, check your login whether it is via investor credential or trader credential in MT4.
Note- if you are logged in via investor credential then it’s not possible to place orders and you need to log in via trader credential. Some indian data vendor that give trader credential are Impulse technical, MT4 guru, etc
Margin Issue
Similarly, If you are able to place orders in strategy tester but not able to place orders in live trading; And MT4 server issues error comes you do not have sufficient margin, then check the symbol in which MT4 server allow you to place order. Go for forex stock like EUDCAD and place single order in it if it gets placed then change the function “symbol ()” in OrderSend function with – ”EURCAD”. With semicolon like shown in example.
This is order send function without changes:
OrderSend(Symbol(),OP_BUY,0,0,0,0,0,”RDE”,”123654″,0,clrAliceBlue);
This is order send function with required changes:
OrderSend(“EURCAD”,OP_BUY,0,0,0,0,0,”RDE”,”123654″,0,clrAliceBlue);
Do you want coding help to deploy your own strategy for live trading? Check our coding assistance.
Hi there,
I am using MT4 platform with a builtin strategy. Can I connect Algo Trading with my MT4 platform? Will it work on both Automatic or manual trading?
Please let me know.
Thanking you and awaiting your early response.
truly
Nilesh Asher
Yes ofcourse, try using free version of APIBridge. It all depends on your EA code, so you will need to test.