• 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 morrnel, Today, 01:13 PM
      0 responses
      2 views
      0 likes
      Last Post morrnel
      by morrnel
       
      Started by babouin77, Today, 12:41 PM
      3 responses
      13 views
      0 likes
      Last Post babouin77  
      Started by punkiy2111, Today, 12:17 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Tabor  
      Started by GLFX005, Today, 11:22 AM
      3 responses
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by mintxom, Today, 10:25 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Melissa  
      Working...
      X