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 pdeering100, 07-14-2019, 09:43 AM
    9 responses
    1,151 views
    0 likes
    Last Post Joshua 1:8  
    Started by LeroyO, Today, 04:09 PM
    0 responses
    5 views
    0 likes
    Last Post LeroyO
    by LeroyO
     
    Started by sidlercom80, Today, 04:57 AM
    2 responses
    30 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Tartagliagroup, Today, 02:11 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by rickyblah12, Today, 01:33 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X