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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X