Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom chart style in version 8.1.4.1

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

    Custom chart style in version 8.1.4.1

    Hello NinjaTrader team,

    I use a custom OHLC chart style. Since I updated to the current version 8.1.4.1 I get following message in the log: "MultipleChartStyles with the same ChartStyleType were found. Ignoring NinjaTraderNinjaScriptChartStyles.[...]".

    I cannot choose my custom chart style in charts any more. How can I fix this? What is it about "the same ChartStyle Type"? Of course there is the built-in OHLC. But my custom chart style worked until the latest update.

    Thank you.

    Andreas

    #2
    Hello Andreas,

    With custom bar types and with custom chart styles a unique ID must be chosen. If two scripts use the same ID, only one of them will show in the 'Type' list if a bar type, or the 'Chart Styles' list if a Chart Style.

    The first 17 IDs for BarsPeriodType are reserved by NinjaTrader.
    The first 13 ChartStyle IDs are reserved by NinjaTrader.

    Example from the help guide:
    BarsPeriod = new BarsPeriod { BarsPeriodType = (BarsPeriodType)123456, BarsPeriodTypeName = "MyCustomBars", Value = 1 };


    ChartStyleType = (ChartStyleType) 80;


    Below is a link to helpful script that lists the IDs for each bar type.
    This is just a simple script which prints the BarsTypes and their BarsPeriodType ID as an integer. This is to aid in finding BarsPeriodType ID’s for the use with AddDataSeries syntax. For more apps from this user, check out the Trendline Detection tool!


    As well as a link that lists the IDs for each chart style.


    Please let me know if this does not resolve your inquiry.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Chelsea,

      thank you very much, that solved my problem!

      Regards,
      Andreas

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      556 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X