error 154: '}' - semicolon expected

Back to topics list To post a new topic, please log in or register
avatar
273
sheriffonline 2015.10.21 20:48
 
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()

avatar
735
honest_knave 2015.10.21 20:59 #
 
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. 

 

avatar
273
sheriffonline 2015.10.21 21:09 #
 
honest_knave:

You've left it open-ended. 

 

oops. Thanks. got it.
Back to topics list  

To add comments, please log in or register