Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy doesn't work when daily period is added

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

    Strategy doesn't work when daily period is added

    Hi,
    I have a strategy that runs on 1 minutes bars. However when I add

    Code:
    Add( PeriodType.Day,1);
    the strategy stops working. I can add different minutes period, but not daily.

    I don't see any errors in the output window or the log tab.

    The first line in OnBarUpdate isn't executed (I wrote a simple Print line and it's not getting there).

    Any help would be appreciated (my data connection is Kinetick).

    PS I need to add daily bars to calculate some indicators such as SMA, ATR, etc on daily bars.

    #2
    Hello Benharper,

    Thank you for your note.

    I would advise increasing the number of days to load on the chart as well has having a CurrentBar check for the extra data series -
    http://www.ninjatrader.com/support/f...ead.php?t=3170
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    267 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    169 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    171 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    260 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    210 views
    0 likes
    Last Post CarlTrading  
    Working...
    X