OrderOpenPrice error

To add comments, please log in or register
apleasewouldbenice boom
59
apleasewouldbenice boom  

Hello everyone. I need some help


if (OrderSelect(1,SELECT_BY_POS,MODE_TRADES)== true) 
   
   {
   
  OrderModify(OrderTicket(), OrderOpenPrice, Bid,0,0,0);

   }


I don't know why I get this error, which is:

'OrderOpenPrice'  - Undeclared Identifier.

Thanks.

Marco vd Heijden
Moderator
12478
Marco vd Heijden  

its a function so add ()

Marius Ovidiu Sunzuiana
1763
Marius Ovidiu Sunzuiana  
Hello, you can cancel ==true only if(....) Because if itself is a boolean expression true or false
apleasewouldbenice boom
59
apleasewouldbenice boom  
Marco vd Heijden:

its a function so add ()

Ah my bad. Apparently i need a good sleep. :) Thanks you
apleasewouldbenice boom
59
apleasewouldbenice boom  
Marius Ovidiu Sunzuiana:
Hello, you can cancel ==true only if(....) Because if itself is a boolean expression true or false
Hello :) I just wanted to make sure that I have at least one open position so it wont crash or something ( I am new learner so I don't know is it really necessary though.) thank you.
apleasewouldbenice boom
59
apleasewouldbenice boom  
apleasewouldbenice boom:
Hello :) I just wanted to make sure that I have at least one open position so it wont crash or something ( I am new learner so I don't know is it really necessary though.) thank you.
Oh I understand know. Yes it is unnecessary thanks again.
To add comments, please log in or register