[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 1...676869707172737475767778798081...432 New comment ilunga 2013.01.11 12:41 #731 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 Alex Afan 2013.01.11 12:43 #732 MikeM: What is the message? ordersend error 130 and invalid double number as parameter 7 for ordersend function (just noticed) MikeM 2013.01.11 12:47 #733 gain: ordersend error 130 and invalid double number as parameter 7 for ordersend function (only noticed) So you missedthe slippage Alex Afan 2013.01.11 12:51 #734 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. MikeM 2013.01.11 12:53 #735 OrderSend(Symbol(), OP_BUYSTOP, Lot, PriceBuy, 0, StopLoss, TakeProfit, "Order", 0, Green); Alex Afan 2013.01.11 12:56 #736 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... MikeM 2013.01.11 12:58 #737 Put a closing parenthesis after the profit and a semicolon after it. The rest goes to waste. Alex Afan 2013.01.11 13:01 #738 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 MikeM 2013.01.11 13:04 #739 Give a code snippet and the compiler message Mikhail Kozhemyako 2013.01.11 13:09 #740 MikeM: OrderSend(Symbol(), OP_BUYSTOP, Lot, PriceBuy, 0, StopLoss, TakeProfit, "Order", 0, Green); Where is the MAGIC? 1...676869707172737475767778798081...432 New comment
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?