Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Wizard for Importing NinjaScript ChartStyles or direct .cs import

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

    Wizard for Importing NinjaScript ChartStyles or direct .cs import

    I've found this ChartStyles from the NinjaScript File Sharing

    https://ninjatrader.com/support/foru...91#post1172791

    I've restructured it properly with a text compare tool. The .cs new file is shared in attachment.

    I've added it via NinjaScript Editor > + button > New Chart Style with no compile error. But the New ChartStyle does not appear in Chart Windows ChartStyle Drop Down Menu.
    I've checked then the Control Center Log Tab and got those errors:

    03/02/2022 21:06:23 NinjaScript Multiple ChartStyles with the same ChartStyleType were found. Ignoring NinjaTrader.NinjaScript.ChartStyles.bbb
    I've found then this post about the error but with no solution
    https://ninjatrader.com/support/foru...ors#post768957


    How can I get it imported or installed via the the Wizard? Thanks
    Attached Files

    #2
    Hello PaulMohn,

    Each chart style has a unique id, you just need to edit the ID in the copy you made to one that is not in use.

    If you look at line 148 you would need to change the 511 to some other number:

    Code:
    ChartStyleType        = (ChartStyleType) 511;
    to

    Code:
    ChartStyleType        = (ChartStyleType) 122345;
    JesseNinjaTrader Customer Service

    Comment


      #3
      It worked thanks Jesse.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AndyM, Yesterday, 11:34 AM
      3 responses
      27 views
      0 likes
      Last Post AndyM
      by AndyM
       
      Started by ラリー, 11-22-2022, 04:57 AM
      13 responses
      78 views
      0 likes
      Last Post ラリー  
      Started by gotturbo, Yesterday, 06:41 PM
      1 response
      25 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by fromagno, Today, 02:30 AM
      0 responses
      15 views
      0 likes
      Last Post fromagno  
      Started by FrederLksenn, Today, 02:18 AM
      0 responses
      13 views
      0 likes
      Last Post FrederLksenn  
      Working...
      X