Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

B11 BarsRequiredToPlot=0 not working

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

    B11 BarsRequiredToPlot=0 not working

    Scenario:
    You have an indicator that can start plotting immediately.
    So you put
    Code:
    BarsRequiredToPlot=0;
    into if (State == State.SetDefaults)

    Bug:
    But visual plotting does not start until 2nd bar (CurrentBar==1).
    Oddly the correct value does show in Data Box for Bar index 0 (so its just a cosmetic bug in plot).

    In NT7 using BarsRequired=0 visual plotting started as expected at first bar.

    An example indicator might be called BarBodyMid with following code in OnBarUpdate
    Code:
    Value[0] = (Close[0]+Open[0])/2.0;
    Last edited by DaveE; 06-02-2016, 10:58 AM. Reason: B11

    #2
    Hello DaveE,

    Thank you for writing in.

    I was able to reproduce this on my end and will be reporting this. Thank you for catching this!

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    669 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    378 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X