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

how to recall the time frame within strategy

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

    how to recall the time frame within strategy

    Hi NT support

    how do i recall the time frame within a strategy?

    lets say I am running a 60 min chart, I would like to be able to

    Print( xxx);
    Output window:
    60

    and will this be an int or string?

    #2
    Use BarsPeriod.Value.

    Comment


      #3
      Originally posted by coolmoss View Post
      Use BarsPeriod.Value.
      thanks very useful.

      is there a way to call the secondary time frame if I am in MTF?
      Thanks

      Comment


        #4
        sburtt, there's a corresponding BarsPeriods as well - http://www.ninjatrader.com/support/h...arsperiods.htm
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by knighty6508, Today, 01:20 AM
        1 response
        6 views
        0 likes
        Last Post brucerobinson  
        Started by franatas, Today, 01:53 AM
        0 responses
        1 view
        0 likes
        Last Post franatas  
        Started by knighty6508, Today, 01:17 AM
        0 responses
        6 views
        0 likes
        Last Post knighty6508  
        Started by tierraany, Today, 01:06 AM
        0 responses
        4 views
        0 likes
        Last Post tierraany  
        Started by Wilmarobyi, Today, 12:48 AM
        0 responses
        3 views
        0 likes
        Last Post Wilmarobyi  
        Working...
        X