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 FrazMann, Today, 11:21 AM
        0 responses
        1 view
        0 likes
        Last Post FrazMann  
        Started by geddyisodin, Yesterday, 05:20 AM
        8 responses
        51 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        10 responses
        36 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by DayTradingDEMON, Today, 09:28 AM
        4 responses
        24 views
        0 likes
        Last Post DayTradingDEMON  
        Started by George21, Today, 10:07 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X