[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 865
![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
Please tell me what "OP BUY"-variable expected means
here while(difference>Span)
( OrderSend (string symbol, OP_BUY, volume, double price, slippage,Bid-stoploss*Point,
Bid+takeprofit*Point, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=Red) )
while(0-difference>Red)
( OrderSend (string symbol, OP_SELL, volume, double price, slippage,Ask+stoploss*Point,
Ask-takeprofit*Point, string comment=NULL, string comment=0, int magic=0, datetime expiration=0, color arrow_color=Black) )
Maybe just remove all variable declarations?
Maybe just remove all variable declarations?
Also, I'm sorry.
{ int C=I;
И++;
AND=C; }
Time[1]- Time[C]=K ;
int difference=Close [1]-Close [C];
Again the error, technically it seems to be correct 'Time' - unexpected token C:\metatrader\experts\Time of Dimon 2.mq4 (40, 13)
'Time' - unexpected token C:\Metatrader\experts\Time of Dimon 2.mq4 (40, 28)
Translated, didn't understand "Time" - unexpected sign, Help, please!!!
Also, I'm sorry.
{ int C=I;
И++;
AND=C; }
Time[1]- Time[C]=K ;
int difference=Close[1]-Close[C];
Again the error, technically it seems to be correct 'Time' - unexpected token C:\metatrader\experts\Time of Dimon 2.mq4 (40, 13)
'Time' - unexpected token C:\Metatrader\experts\Time of Dimon 2.mq4 (40, 28)
Translated, didn't understand "Time" - unexpected sign, Help, please!!!
It's simple, the function has to be done from left to right!
It's not Time[1]-Time[C]=K;
But K=Time[1]- Time[C];
Hello!
Can you please suggest an antipode for OrderProfit(), but to return a loss value for the selected (open) order.
Thank you!
Hello!
Can you please suggest an antipode for OrderProfit(), but it should return the loss value of the selected (open) order.
Thank you!