• 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 aligator, Today, 12:29 PM
    0 responses
    6 views
    0 likes
    Last Post aligator  
    Started by bob77713, Today, 11:30 AM
    0 responses
    0 views
    0 likes
    Last Post bob77713  
    Started by FMtrader, 03-15-2019, 02:30 AM
    6 responses
    38 views
    0 likes
    Last Post James108  
    Started by timko, Today, 08:18 AM
    0 responses
    2 views
    0 likes
    Last Post timko
    by timko
     
    Started by victorsmith, Today, 06:00 AM
    0 responses
    6 views
    0 likes
    Last Post victorsmith  
    Working...
    X