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.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by rocketman7, Today, 02:12 AM
            5 responses
            22 views
            0 likes
            Last Post rocketman7  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            7 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by samish18, 04-17-2024, 08:57 AM
            17 responses
            66 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by briansaul, Today, 05:31 AM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by PaulMohn, Today, 03:49 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X