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

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 wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    26 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 04-23-2024, 09:53 PM
    2 responses
    49 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    193 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,235 views
    0 likes
    Last Post xiinteractive  
    Working...
    X