How to show other info on the chart?

how to show outstanding shares above on main chart after close field and percent value?

Original formula is:

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

@kiss1170, try this:

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) - Shares: %1.2fM - {{VALUES}}", 
	O, H, L, C, SelectedValue( ROC( C, 1 ) ), GetFnData( "SharesOut" ) /1000000.0 ));

Depending on the data stored in your database relating to the outstanding shares, you could evaluate a different type of numerical formatting or alternatively format the value as a string using %s.
The format used in my example is simpler than the one shown in the "Symbol Information" window, that based on the value convert it to a string appending a different suffix for Billions, Millions, etc.


tkank you so much...

That's Perfect in the formula and in Your explanation... !

Grazie Beppe :slight_smile:

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.