Download MetaTrader 5

My indicator alert shows the price with 4 digits but i want to show 5 digits how can i make this?

To add comments, please log in or register
zedzed1
667
zedzed1  

Hello i have an indicator thats have a put or buy alert, it also shows the price. Only its always .0000 or less but i want to see 5 digits.

 This is the alert ................ ",Symbol()," 3-5 MIN "," METATRADER PRICE@", Bid); the bid price needs to be 5 digits and not 4 

 how can i change that? 


Thanks a lot 

Sergey Dzyublik
5170
Sergey Dzyublik  

 use NormalizeDouble

 ",Symbol()," 3-5 MIN "," METATRADER PRICE@", NormalizeDouble(Bid, 5)); 

Alain Verleyen
Moderator
32858
Alain Verleyen  
Nothing to do with NormalizeDouble. Use DoubleToString(Bid,5).
To add comments, please log in or register