Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding Higher Time Frame

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

    Adding Higher Time Frame

    In my strategy I'm trying to add a higher time frame period using the following code (Initialize section). When I add it the strategy cannot be "enabled" ... if I remove the Add statement, it's enabled. Can I use this command in a strategy? tx

    Add(PeriodType.Minute, 5);

    #2
    Hello FCatan,

    Yes, you can use Add(PeriodType.Minute, 5); in the script.

    When adding a secondary series, have you ensured your code is processing during the proper BarsInProgress?


    Are you checking that you are not calling a bar that does not exist causing an indexing error?


    What is the error message that you getting?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    45 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
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X