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) [B]666[/B], 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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    382 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    249 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    210 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    297 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    259 views
    0 likes
    Last Post CarlTrading  
    Working...
    X