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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    46 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X