Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Weird plot problem. Start of plot always invisible, but is present.

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

    Weird plot problem. Start of plot always invisible, but is present.

    Hello,

    Weird problem! Per the topic. I have a couple plots, that the data is present for, but for some reason the first chunk of bars is always missing after session start. I know the data is there as I have verified it in debug. also, if you click the plot, per the attached image, the data shows both as highlighted, and with the correct data in the data box if you use the middle mouse button. The plot is set to orange in the indicator plot defaults, though the indicator does change to red/green, depending on it an up or down bar. There is NO setting to other colours such as transparent anywhere, so I am at a loss as to why the initial bars are always set that way. I have had the indicator set every single bar to orange, but the initial bars still never show! There are no errors reported anywhere and the indicator works perfectly, bar the initial bars never plot with colour. All 3 plots are based off a single $TICK data sereis added to the chart. It is just dataset 1, 2 indicator plots.

    Any suggestions? I am sure I must be missing something obvious... Thanks.


    #2
    Hi pjsmith, thanks for your note.

    This is caused by your BarsRequiredToPlot property. You can change this from within State.SetDefaults in OnStateChanged.

    Kind regards.

    Comment


      #3
      Originally posted by NinjaTrader_ChrisL View Post
      Hi pjsmith, thanks for your note.

      This is caused by your BarsRequiredToPlot property. You can change this from within State.SetDefaults in OnStateChanged.

      Kind regards.
      Perfect! thanks for the heads up!

      For info though, it's still a bit weird. BarsRequiredToPlot is not set or mentioned anywhere in my script. I set it in state.defaults, but it made no difference (presumably as it is already set). I set it to BarsRequiredToPlot = 1 in State.Configure though, and the bars now show.

      So, thanks for the nudge in the right direction!

      Comment


        #4
        Hi pjsmith,

        I'll check that since it claims you can set BarsRequiredToPlot in State.SetDefaults in the help guide.

        Comment


          #5
          Hello pjsmith,

          I am able to set BarsRequiredToPlot through State.SetDefaults.

          Please let me know if I can assist further.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          633 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          567 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X