"Open Parenthesis Expected" compiling error in MT5
-
Hi Everyone,
Can anybody help me out with the following code for MT5. I'm not a programmer, but I think it solves the issue of having different pip values for brokers that have different number of digits in their charts (e.g. 0.0001 or 0.00001)//++++ These are adjusted for 5 digit brokers. double pips2points; // slippage 3 pips 3=points 30=points //double dPips2dbl; // Stoploss 15 pips 0.0015 0.00150 //int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips) if (Digits == 5 || Digits == 3) { // Adjust for five (5) digit brokers. dPips2dbl = Point*10; pips2points = 10; //Digits.pips = 1; } else { dPips2dbl = Point; pips2points = 1; //Digits.pips = 0; }It compiles fine in MT4 - but I'm getting the following error when compiling it for MT5. Could it be a sintax issue?:

-
Are you compiling a fxDreema project?
-
@l-andorrà yes
-
Then this goes beyond my knowledge, sorry. Maybe roar can help.