Robert: There is many cases that I want see 1.0000 or 1.0 in in IndicatorDigits
and Comment but MT4/5 doing NormalizeDouble that omitting zero.
Please explain in more detail and show the code in question as well as the resulting visuals with some screenshots, to help us understand your problem, or else we cannot decipher your post in order to help you!
If you want to display a number with a specified number of digits, even if they are all zeros then use the function DoubleToString().
double dblBid = SymbolInfoDouble( _Symbol, SYMBOL_BID ); Comment( "Bid: ", DoubleToString( dblBid, _Digits ) );
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
@MetaQuotes Software Corp.
There is many cases that I want see 1.0000 or 1.0 in in IndicatorDigits and Comment but MT4/5 doing NormalizeDouble that omitting zero.