Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Period value

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

    Period value

    Hi! I'd like to know, how can I get the value/Type of Period of the chart in the script? The Value of the period can be accessed in DateTime format? Thank. Ron

    #2
    Hello Ron,
    You can get the periodicity information of the chart from the BarsPeriod class.

    Code:
    BarsPeriod.Id
    BarsPeriod.Value


    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 04:57 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    6 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X