Normalise has nothing to do with the situation. If you have a 5 digit broker, then data will have the 5 digits. The problem in many custom indicators' code, including yours, is that they do not set the number of digits to be displayed in the OnInit event handler.
IndicatorSetInteger( INDICATOR_DIGITS, _Digits );
Forum on trading, automated trading systems and testing trading strategies
How to trim to i.e. 2 decimal places in the Data window?
Fernando Carreiro, 2022.02.10 19:03
Please read the documentation. That is not the way to use the "IndicatorSetInteger" function. That function is used to set properties of an indicator, not to adjust the digits of a variable.
ID
Description
Property type
INDICATOR_DIGITS
Accuracy of drawing of indicator values
int
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have created a MACD histogram but it is only showing 4 decimal places such as 0.0013 and I would like 0.00130 so one more place or more. I have tried to use NormalizeDouble but no change... Does anyone know how to add a decimal place to get more accurate readings? Regards.