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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    160 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    308 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X