Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thank you! I understand the logic. But how can it be fixed?
You leave return (true), but instead of all return (false) you do one AFTER the loop
What is the message?
ordersend error 130 and invalid double number as parameter 7 for ordersend function (just noticed)
ordersend error 130 and invalid double number as parameter 7 for ordersend function (only noticed)
So you missedthe slippage
So you missedslippage
Nah, it's the same, I think the seventh parameter should be there, I'll look at the ready-made examples now.
OrderSend(Symbol(), OP_BUYSTOP, Lot, PriceBuy, 0, StopLoss, TakeProfit, "Order", 0, Green);
I did it this way, it was of no use.
I've seen some code somewhere, there is something after the profit...
Put a closing parenthesis after the profit and a semicolon after it. The rest goes to hell.
This way the compiler won't skip
OrderSend(Symbol(), OP_BUYSTOP, Lot, PriceBuy, 0, StopLoss, TakeProfit, "Order", 0, Green);
Where is the MAGIC?