Number of digits on graph output

 
First time poster with a first time question. I have an indicator set up to calculate a moving average and then two shifts of 33% and 99% away from the center, and this part functions flawlessly. The only concern is how do I set it so that it only displays a total of five digits on the graph output; IE 1.8653 for GBP/USD and 115.54 for USD/JPY. Right now it dumps out something like 115.5402 for USD/JPY which is also keeping me from being able to enable this to work as an EA. I know about the digits function to limit the number of digits [i]after[/i] the decimal point, but is there anyway to set the output so there's only five digits period?
 
Try DoubleToStr.

string DoubleToStr( double value, int digits)
Reason: