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 kujista, Today, 06:23 AM
        0 responses
        1 view
        0 likes
        Last Post kujista
        by kujista
         
        Started by traderqz, Yesterday, 04:32 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by f.saeidi, Today, 05:56 AM
        1 response
        4 views
        0 likes
        Last Post Jltarrau  
        Started by Jltarrau, Today, 05:57 AM
        0 responses
        4 views
        0 likes
        Last Post Jltarrau  
        Started by Stanfillirenfro, Yesterday, 09:19 AM
        7 responses
        53 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X