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); }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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 !