Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninja script context awerness

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

    Ninja script context awerness

    Hello,
    I want to add an additional time frame to my script based on the current context (time frame) it is called.
    So for example , if the script is called from a 10 min context I would like to add a 30 min time frame , if it is called from a 5 min context I would like to add a 15 min time frame.
    In order to this I need to have some indication on what is the main time frame or context the script was invoked., e.g 5 min, 10 min etc.
    Is there some kine of variable holding this information ?
    thanks

    #2
    Hi Leope, this would be given by BarsPeriod - https://www.ninjatrader.com/support/...barsperiod.htm

    However it could not be accessed in Initialize() where you would need to do your Add() calls.

    Best would be therefore to have for example a user input where the values needed are fed into the script.

    Comment


      #3
      Thanks a lot for the quick accurate and great reply !
      As usual your support is incredible !
      Thanks !!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      566 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X