Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding Indicators/Timeframes

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

    Adding Indicators/Timeframes

    Hi,
    I was wondering if there was a way to force an internal indicator to CalcOnBarClose false when the main indicator is set to CalcOnBarClose true.

    IE:

    In the Initialize()

    {
    Add(PeriodType.Minute,5); /// <- I want an SMA on this timeframe to update on each tick instead of on the close of the 5 min bar
    }

    Explicitly setting the SMA's CalcOnBarClose to false value doesn't seem to work.

    I suspect the SMA is only being fed data on the 5 minute on close of each bar.

    Jeremy
    Jeremytang
    NinjaTrader Ecosystem Vendor - Shark Indicators

    #2
    jeremytang,

    Generally, an indicator would inherit this setting from the indicator calling it.

    The CalculateOnBarClose property of indicators embedded within a strategy are overriden by the CalculateOnBarClose property of the strategy for example.

    Maybe someone else has a work around here to offer.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    599 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    344 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    557 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X