Download MetaTrader 5

error 154: '}' - semicolon expected

To add comments, please log in or register
Sherif Hasan
7387
Sherif Hasan  
if (((AccountStopoutMode() == 1)
&& (AccountFreeMarginCheck(Symbol(), OP_BUY, Lots) > AccountStopoutLevel()))
|| ((AccountStopoutMode() == 0)
&& (((AccountFreeMarginCheck(Symbol(), OP_BUY, Lots)/AccountEquity()) * 100) > AccountStopoutLevel())))

What could be the issue?

i would like to perform the following check before executing OrderSend()

honest_knave
Moderator
2328
honest_knave  
if (((AccountStopoutMode() == 1)
&& (AccountFreeMarginCheck(Symbol(), OP_BUY, Lots) > AccountStopoutLevel()))
|| ((AccountStopoutMode() == 0)
&& (((AccountFreeMarginCheck(Symbol(), OP_BUY, Lots)/AccountEquity()) * 100) > AccountStopoutLevel())))
{
 // do something
};

You've left it open-ended. 

Sherif Hasan
7387
Sherif Hasan  
honest_knave:

You've left it open-ended. 

 

oops. Thanks. got it.
To add comments, please log in or register