• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 - http://www.ninjatrader.com/support/h...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.
    BertrandNinjaTrader Customer Service

    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 bvgdcvhf, Today, 07:06 AM
      0 responses
      1 view
      0 likes
      Last Post bvgdcvhf  
      Started by bvgdcvhf, Today, 07:04 AM
      0 responses
      2 views
      0 likes
      Last Post bvgdcvhf  
      Started by bosajin, Yesterday, 06:27 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by stefanrvc, Today, 04:59 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by 7robert, Yesterday, 08:30 PM
      2 responses
      16 views
      0 likes
      Last Post NinjaTrader_Marco  
      Working...
      X