[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 74

 
silhouette:
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
 
MikeM:

What is the message?


ordersend error 130 and invalid double number as parameter 7 for ordersend function (just noticed)
 
gain:


ordersend error 130 and invalid double number as parameter 7 for ordersend function (only noticed)

So you missedthe slippage
 
MikeM:

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);
 
MikeM:
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 waste.
 
MikeM:
Put a closing parenthesis after the profit and a semicolon after it. The rest goes to hell.

This way the compiler won't skip
 
Give a code snippet and the compiler message
 
MikeM:
OrderSend(Symbol(), OP_BUYSTOP, Lot, PriceBuy, 0, StopLoss, TakeProfit, "Order", 0, Green);

Where is the MAGIC?