Want ommit NormalizeDouble in IndicatorDigits and Comment

To add comments, please log in or register
Robert
113
Robert  

@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.

Fernando Carreiro
5016
Fernando Carreiro  
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 ) );
To add comments, please log in or register