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

Add second symbol of same PeriodType, Period

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

    Add second symbol of same PeriodType, Period

    Hello,

    Is it possible to use Add(string instrument, PeriodType periodType, int period)
    that somehow detects the periodType and period of the first instrument and uses that. Then, I can install it on any chart and not have to worry.

    Thanks,

    Folls

    #2
    Please try BarsPeriod.Id and BarsPeriod.Value

    Comment


      #3
      Thank you!

      Thanks. It worked.

      Folls

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by elirion, Today, 01:36 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by DJ888, 04-16-2024, 06:09 PM
      5 responses
      14 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by samish18, Yesterday, 08:31 AM
      4 responses
      14 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by funk10101, Yesterday, 09:43 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by TheWhiteDragon, 01-21-2019, 12:44 PM
      5 responses
      551 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X