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 MacDad, 02-25-2024, 11:48 PM
            7 responses
            158 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Today, 09:29 PM
            0 responses
            7 views
            0 likes
            Last Post Belfortbucks  
            Started by zstheorist, Today, 07:52 PM
            0 responses
            7 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            151 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            6 views
            0 likes
            Last Post mattbsea  
            Working...
            X