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

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.
    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 Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      2 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,771 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      31 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      945 views
      0 likes
      Last Post spwizard  
      Working...
      X