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 mgco4you, Today, 09:46 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by wzgy0920, Today, 09:53 PM
    0 responses
    3 views
    0 likes
    Last Post wzgy0920  
    Started by Rapine Heihei, Today, 08:19 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by Rapine Heihei, Today, 08:25 PM
    0 responses
    6 views
    0 likes
    Last Post Rapine Heihei  
    Started by f.saeidi, Today, 08:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X