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

First event on a monthly chart

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

    First event on a monthly chart

    Via NinjaScript, on a monthly chart, is there a way to find out which event occurred first, the high or low of the bar?

    For example, the monthly chart of January 2016 for the SPX has a
    low of 1812.29 and a high of 2038.20, however the high occurred first.

    #2
    Hello eebene,

    Thank you for your post.

    This is possible by adding a secondary series to verify when the High was first created and when the Low was first created by comparing against the Monthly High and Low.

    For information on multiple bar series in your script you can visit the following link: http://ninjatrader.com/support/helpG...nstruments.htm

    Please let me know if you have any questions.

    Comment


      #3
      Thank you Patrick,

      Unfortunately, that requires that one load all that data in Initialize(). Having looked around, i found a method, NinjaTrader.Data.Bars.GetBars, in NinjaTrader 8, but is not documented or apparently supported. I am interested in loading the data for months that meets certain criteria, therefore it would be better to load the data from within OnBarUpdate(). Any suggestion how to proceed.

      Comment


        #4
        Hello eebene,

        Thanks for your reply.

        Please note that Ninjatrader 8 inquiries belong in the Ninjatrader 8 forum sections as our assumptions when posted here are based on NinjaTrader 7. If you have further questions on this topic, please do post in there. Thanks for your understanding and help in keeping the forums organized.

        To answer your question: GetBars can be found in the Ninjatrader 8 helpguide here: http://ninjatrader.com/support/helpG...us/?getbar.htm
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        6 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        8 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        19 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X