problem with function : unbalanced left parenthesis.

 

Hello,

Does anyone can explain to me what is the problem with the following function ? It says to me : end_of_program : unbalanced left parenthesis.


void fStopLimitMin(double iStop, double iLimite)
{
if ( iStop < MarketInfo(Symbol(), MODE_STOPLEVEL)
iStop = MarketInfo(Symbol(), MODE_STOPLEVEL);
if ( iLimite < MarketInfo(Symbol(), MODE_STOPLEVEL))
iLimite = MarketInfo(Symbol(), MODE_STOPLEVEL);

}


Thank you !

 
nikky:

Hello,

Does anyone can explain to me what is the problem with the following function ? It says to me : end_of_program : unbalanced left parenthesis.


void fStopLimitMin(double iStop, double iLimite)
{
if ( iStop < MarketInfo(Symbol(), MODE_STOPLEVEL)
iStop = MarketInfo(Symbol(), MODE_STOPLEVEL);
if ( iLimite < MarketInfo(Symbol(), MODE_STOPLEVEL))
iLimite = MarketInfo(Symbol(), MODE_STOPLEVEL);

}

Thank you !

Use SRC button for displaying code like this

void fStopLimitMin(double iStop, double iLimite)
{
if ( iStop < MarketInfo(Symbol(), MODE_STOPLEVEL)         //<==  your error you can find here  missing one  ")"
iStop = MarketInfo(Symbol(), MODE_STOPLEVEL); 
if ( iLimite < MarketInfo(Symbol(), MODE_STOPLEVEL)) 
iLimite = MarketInfo(Symbol(), MODE_STOPLEVEL);

}
Reason: