Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ScottWalsh, Today, 04:29 PM
    0 responses
    5 views
    0 likes
    Last Post ScottWalsh  
    Started by rtwave, 04-12-2024, 09:30 AM
    2 responses
    22 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    70 views
    0 likes
    Last Post tsantospinto  
    Started by cre8able, Today, 03:20 PM
    0 responses
    7 views
    0 likes
    Last Post cre8able  
    Started by Fran888, 02-16-2024, 10:48 AM
    3 responses
    49 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Working...
    X