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

Getting enough data...

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

    Getting enough data...

    I am working on an indicator that needs 756 bars to plot.

    I've tried setting BarRequiredToPlot to this value, but cannot seem to get more than 707 bars.

    Historical data is plotting on price chart going back to 9/15/2015, so I have enough data.

    What am I doing wrong.

    #2
    Hello RandyT,

    Thanks for the post.

    Who is your data provider and what type of bars are you requesting in the script?

    I look forward to your reply.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Historical data provider is IQFeed.

      I've found that requesting 1024 Day bars was not enough. By increasing this to a ridiculous number like 2048, I am getting the required 756 bars needed. Not sure why.

      Comment


        #4
        Hello RandyT,

        Thanks for the reply.

        In your data series menu, you can set "Load data based on" to "Bars" to load a specific amount of bars onto the chart instead of a date range.

        I tested the behavior on Kinetick by renaming the SMA indicator, then setting its BarsRequiredToPlot to 756. The SMA plotted exactly at the 756th bar. Ensuring you can pull this amount of data from your data provider is suggested as well.

        I look forward to assisting further.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Kaledus, Today, 01:29 PM
        0 responses
        3 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by PaulMohn, Today, 12:36 PM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by yertle, Yesterday, 08:38 AM
        8 responses
        36 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by rdtdale, Today, 01:02 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by alifarahani, Today, 09:40 AM
        3 responses
        18 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X