Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get the chart's period from the chart's dataseries in NT8

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

    Get the chart's period from the chart's dataseries in NT8

    I am converting this indicator from NT7 to NT8. In NT7 I was using

    Bars.Period.Id
    PeriodType.Minute
    Bars.Period.Value

    But now NT8 it gives me error that there is no definitoin for Period.

    What should I use to yeild the same information in NT8 code?

    Thanks

    -Stearno

    #2
    Bars.Period.Id = Bars.BarsPeriod.BarsPeriodType
    PeriodType.Minute = BarsPeriodType.Minute
    Bars.Period.Value = Bars.BarsPeriod.Value


    Originally posted by stearno View Post
    I am converting this indicator from NT7 to NT8. In NT7 I was using

    Bars.Period.Id
    PeriodType.Minute
    Bars.Period.Value

    But now NT8 it gives me error that there is no definitoin for Period.

    What should I use to yeild the same information in NT8 code?

    Thanks

    -Stearno

    Comment


      #3
      Originally posted by Serialcoder View Post
      Bars.Period.Id = Bars.BarsPeriod.BarsPeriodType
      PeriodType.Minute = BarsPeriodType.Minute
      Bars.Period.Value = Bars.BarsPeriod.Value
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Gerik, Today, 09:40 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by RookieTrader, Today, 09:37 AM
      2 responses
      10 views
      0 likes
      Last Post RookieTrader  
      Started by alifarahani, Today, 09:40 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by KennyK, 05-29-2017, 02:02 AM
      3 responses
      1,285 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by AttiM, 02-14-2024, 05:20 PM
      11 responses
      186 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X