The qusetion for OrderSend(),OnInit() and OnChartEvent()
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!
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.