market_cap := (finance("shares_outstanding")*close / 1e6));
Seems TecStock has this in a relatively easy to get form. I'd like to use this info in my NinjaTrader indicator, working with Kinetick EOD ticker information.
I've read where shares outstanding is available, but with the caveat that the method is for advanced programmers only and only for "real time" data. I believe Kinetick has the info available, according to an excel document I downloaded via another post. The data wouldnt seem to be beyond the scope of EOD; how many shares outstanding, er, left?
The given example (below) just blows me out of the water; I've never got it to print anything for me in my indicator. Hard to understand the context with which it operates also; if it's AverageDailyVolume or PriceEarningsRatio? Where is either asked for in the first place? What if I want it to be just SharesOutstanding?
code ---
protected override void OnFundamentalData(FundamentalDataEventArgs e)
{
// Print some data to the Output window
if (e.FundamentalDataType == FundamentalDataType.AverageDailyVolume)
Print("Average Daily Volume = " + e.LongValue);
else if (e.FundamentalDataType == FundamentalDataType.PriceEarningsRatio)
Print("P/E Ratio = " + e.DoubleValue);
Thanks and best regards,
Joe
Comment