• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BarsPeriodType Number

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

    BarsPeriodType Number

    I noticed when you make a new barstype it assigns a # for BarsPeriodType

    What happens if this conflicts with another barstype ?

    #2
    Hello NinjaCustomer,

    Thank you for your note.

    Each of your bar types should have a different number passed, otherwise the 2nd duplicate will be ignored. In the statement below it would be as simple as changing 666 to another number.

    Code:
    BarsPeriod					= new BarsPeriod { BarsPeriodType = (BarsPeriodType) 666, BarsPeriodTypeName = "AlanPercentBarType", Value = 1 };
    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Option Whisperer, 12-07-2019, 11:50 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Jakub, Yesterday, 11:52 AM
    2 responses
    19 views
    0 likes
    Last Post Jakub
    by Jakub
     
    Started by Johnny Santiago, Today, 07:06 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Tyler  
    Started by HiddenPhilosopher, Today, 04:37 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Started by aprendiz, Today, 06:44 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X