[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 1...858859860861862863864865866867868869870871872...1145 New comment usver 2010.09.25 10:24 #8641 Dimka-novitsek: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? while(разница>Размах) OrderSend (NULL,OP_BUY,0.1,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"",12345,0,Red); while(0-разница>Размах) OrderSend (NULL,OP_SELL,0.1,Bid,3,Ask+stoploss*Point,Ask-takeprofit*Point,"",12345,0,Black); techno 2010.09.25 10:32 #8642 usver: Maybe just remove all variable declarations? while(разница>Размах) OrderSend (NULL,OP_BUY,0.1,Ask,3,Bid-stoploss*Point,Bid+takeprofit*Point,"",12345,0,Red); while(0-разница>Размах) OrderSend (NULL,OP_SELL,0.1,Bid,3,Ask+stoploss*Point,Ask-takeprofit*Point,"",12345,0,Black); Не NULL, а Symbol() Dimka-novitsek 2010.09.25 10:39 #8643 Thanks!!!!!!! I'm going to try and put it in the code. Dimka-novitsek 2010.09.25 11:20 #8644 Cool!!!Seems to compile!!!! Dimka-novitsek 2010.09.25 11:21 #8645 Thank you!!!! Dimka-novitsek 2010.09.25 12:00 #8646 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!!! Please help me : error 'char' - unexpected 'OnInit' - unexpected token [Deleted] 2010.09.25 12:13 #8647 Dimka-novitsek: 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]; Юрий 2010.09.25 14:27 #8648 Hello! Can you please suggest an antipode for OrderProfit(), but to return a loss value for the selected (open) order. Thank you! techno 2010.09.25 14:53 #8649 Lim1:Hello! Can you please suggest an antipode for OrderProfit(), but it should return the loss value of the selected (open) order. Thank you! if the OrderProfit() function returns a negative value, this will be the amount of loss on the selected order, whether it is open or not Dimka-novitsek 2010.09.25 15:06 #8650 Thank you!!! I'm such a jerk!!! I'm sorry! 1...858859860861862863864865866867868869870871872...1145 New comment
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!