wrong parameter count error

ulong ticket = OrderSend(Symbol(), ORDER_TYPE_SELL, LotSize, ask, 0, stopLoss, takeProfit, "Sell EURGBP", 12345, 0, clrRed, 0, 0);

I wonder what's wrong in this code?


Place the cursor on OrderSend and press F1 read and understand even the example.


got it, in case you also are stuck, here's

if (OrderSend(request, result))

now the last hurdle...

if (!SymbolIsSynchronized("EURUSD", "EURGBP", "GBPUSD", true, false)),

wrong parameter  count again


the solution

 if (!SymbolIsSynchronized(Symbol())) 
again a hurdle, its not opening positions in backtesting
pcindia: I wonder what's wrong in this code?

Please insert your code properly using the CODE button (Alt-S).

Code button in editor

EDIT: And please use proper spacing between words in your text.

Your topic has been moved to the section: Expert Advisors and Automated Trading — In the future, please consider which section is most appropriate for your query.


anyone know how to fix this     

request.ticket = ticket;

'ticket' - undeclared identifier PP.mq5 32 12

We don't provide support for ChatGPT generated code. Ask for help to ChatGPT.