Here is the code I added and it's working in OnChartEvent()
request.price = SymbolInfoDouble(Symbol(), SYMBOL_ASK);
Also don't forget to add ZeroMemory() function.... something like that... especially when you want to modify orders:
MqlTradeRequest request; ZeroMemory(request); ... ... ... MqlTradeResult result; ZeroMemory(result);
JDeel:
Also don't forget to add ZeroMemory() function.... something like that... especially when you want to modify orders:
Thank you! I will always remember!
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
Here is the code I used and it's working in OnInit(),but not working in OnChartEvent()... return code is 10013...I get the 4756 error...
Why?
Please help.