if (isBullish || isBearish)
{
string symbolName = _Symbol;
if (!trade.OrderSend(symbolName, orderType, LotSize, orderPrice, 10, sl, tp, "", 0, 0, clrNONE))
{
Print("Error placing order: ", trade.ResultRetcode());
}
else
{
PrintFormat("Order placed successfully: %s %s at price %f, SL: %f, TP: %f, Volume: %f",
(isBullish ? "Buy" : "Sell"), (isBullish ? "Stop" : "Stop"), orderPrice, sl, tp, LotSize);
}
}
}
I have an error ‘symbolName’ – parameter conversion not allowed
how can solve this?
I use chat gpt to coding my strategy and I have this problem only
New contributor
vahid bolvardi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.