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 Mindset, Today, 06:46 AM
    0 responses
    9 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X