I am using printdebug to print various outputs of my trading system on a screen. Is there a way to print formatted numbers with a given number of digits before and after "."? I found the string.format function, but I don't see examples of using it with numbers.
Size:
Color:
Size:
Color:
Thank you. That helped.
Size:
Color:
QUOTE:
Is there a way to print formatted numbers with a given number of digits before and after "."?
While superticker's answer is correct, gpwr9k95's task can be solved even easier than using String.Format. Check out Bars.
FormatValue in the QuickRef (F11 key in Wealth-Lab). Although it's not as flexible as string.Format is, it automatically adjusts to the number of Decimal Places you have specified in Wealth-Lab's Preferences >
Advanced Options.
Size:
Color: