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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    134 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    119 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    114 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    92 views
    0 likes
    Last Post CarlTrading  
    Working...
    X