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 genevievpate, Today, 10:54 PM
      0 responses
      2 views
      0 likes
      Last Post genevievpate  
      Started by rtwave, 09-14-2023, 11:51 PM
      6 responses
      30 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Started by KingCandy, Today, 06:31 PM
      0 responses
      17 views
      0 likes
      Last Post KingCandy  
      Started by xmess777, Today, 05:32 PM
      0 responses
      6 views
      0 likes
      Last Post xmess777  
      Started by peterpanou, 09-07-2023, 04:33 PM
      16 responses
      171 views
      0 likes
      Last Post max333
      by max333
       
      Working...
      X