Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Warming Message with ChartStyle

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

    Warming Message with ChartStyle

    Hello,

    I am getting the following warning message when I compile my custom ChartStyle:

    Type of 'NinjaTrader.NinjaScript.ChartStyles.myCandleStyle .DashStyleWick' is not CLS-compliant CS3003
    In Properties I use:
    Code:
    public SharpDX.Direct2D1.DashStyle DashStyleWick
    { get; set; }
    Can you please provide the correct syntax for this? Thank you. Much appreciated.

    #2
    Hello Zeos6,

    Thank you for the post.

    Please decorate the property with the [CLSCompliant(false)] decorator. That should clear the warning. You can see it used in the @Lines.cs file.

    Please let me know if I can assist further.

    Comment


      #3
      Thank you very much ChrisL. That did the trick. Very helpful. Appreciate it.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      328 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      210 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      196 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      285 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      241 views
      0 likes
      Last Post CarlTrading  
      Working...
      X