Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get 52 week high and low prices

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

    Get 52 week high and low prices

    Hi,

    Ive managed to create a C# app that can get the last share price for an instrument. I'd also like to be able to get the 52 week high and low prices.

    Is there a way to do this with the client API?

    Thanks.

    #2
    Hello HarryScotter,

    Yes, you can do this with a multiple series indicator / strategy. Multiseries indicators were only added in version 7.
    Documentation for Multiseries indicators is available here.

    You add a weekly series, and then use MAX() function to return the highest value over 52 weeks.

    Add(PeriodType.Week, 1);

    double my52WeekHigh = MAX(High, 52)[0];
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply.

      My C# app uses the ATI NinjaTrader.Client DLL interface. What class object should I use to access the multiple series indicators? The only object I seem to have access to is the Client class and this does not have an Add method (documentation for it is here: http://www.ninjatrader.com/support/h...nt7/index.html)

      Thanks.

      Comment


        #4
        I see - thanks for the clarification. Unfortunately this is not supported with the client class in the Automated Trading Interface. The only supported functions are those listed in the help guide.

        In order to access NinjaScript objects, it must be through a NinjaScript indicator or strategy.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Ok thanks.

          Just thinking though that this information is usually available quite simply from the broker data. Is it something that you are considering adding into the ATI client interface? If not its pretty much a show stopper for me.

          Alternatively, have you considered making any of the NinjaTrader code Open Source. Particularly the Account Connection code and the ATI layer code? I imagine these are areas that would benefit a lot from open source community contributions. It is possible to do this and still maintain editorial authority.

          Comment


            #6
            Thanks for your feedback harryscotter, the ATI in NT is unfortunately not a full blown API.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            109 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            57 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            37 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            39 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            76 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X