Hello Pierre the digits are specified in the DoubleToString function as the second parameter.
Alert("The performance of "+_Symbol+" for the last "+IntegerToString(numberOfDays)+" days is "+DoubleToString(NormalizeDouble(performance,2),2));
Also:
Alert(StringFormat("The performance of %s for the last %d days is %.2f", symbol, numberOfDays, performance));
@Marco vd Heijden @Anthony Garot Thanks.

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,
I am looking for a MQL5 script calculating the performance of a product over X days.
I coded that, it must be improvable.
In particular how to remove the zeros after the 2 digits after the decimal point?
Regards,
Pierre