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 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
        150 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        6 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        6 views
        0 likes
        Last Post tkaboris  
        Working...
        X