[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 75
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Put a closing parenthesis after the profit and a semicolon after it. The rest is scrap.
MAGIC - screw it.
Magic and slip are not that important, as normal orders go without them.
double PriceBuy = iHigh(Symbol(),60, 1);
OrderSend(Symbol(), OP_BUYSTOP, Lot, PriceBuy, StopLoss, TakeProfit, "Order", 0, Green);The compiler thinks that"Order" isthe value oftakeprofitparameter, and it should be of double type.
takeprofit should be the seventh parameter, but it is the sixth, because slippage is missing.
This is the problem.
Thank you! I understand the logic. But how can it be fixed?
I've redone it. Seems to be technically correct, but looks a bit Hindu.
Reworked. Seems to be technically correct, but looks a bit Hindu.
it's better this way:
Exactly! Thank you for your help.
it's better this way:
Just less, not less or equal.
Yes, that's right. I was copying and didn't pay attention to that place
Hi all! As the topic is for newbies help:
Variable name in the board to change, so that in MT4 the name is different and the file itself will change! Thanks
Hi all! As the topic is for newbies help:
Variable name in the board to change, so that in MT4 the name is different and the file itself will change! Thanks