Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

"shares_outstanding"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "shares_outstanding"

    Is there the equivalent to (TecStock.com code)

    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

    #2
    Hello Joe,

    Thank you for your post.

    What instruments are you trying to use with the Kinetick EOD?

    Additionally, this would only be available for live data only.

    Kinetick EOD does not provide intraday data, only daily data.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by inanazsocial, Today, 01:15 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by rocketman7, Today, 02:12 AM
    0 responses
    6 views
    0 likes
    Last Post rocketman7  
    Started by dustydbayer, Today, 01:59 AM
    0 responses
    1 view
    0 likes
    Last Post dustydbayer  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    23 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Working...
    X