Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot DashStyle

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

    Plot DashStyle

    Greetings,

    I guess this 6.5 plot is not supported in NT7?

    Is there a workaround?

    Thanks

    Code:
    Plots[5].Pen.DashStyle = DashStyle.Dot;

    #2
    Can you clarify what you feel is not working? I ask since this is pure .NET and not NinjaScript. It should work no problem.... I believe.
    RayNinjaTrader Customer Service

    Comment


      #3
      Ray,

      I discovered that I had an important component missing in the declarations statement.

      Adding that resolved the issue.
      If others make this simple error, here is the code.

      Original:
      Code:
      using System;
      using System.ComponentModel;
      using System.Drawing;
      using System.Xml.Serialization;
      using NinjaTrader.Data;
      using NinjaTrader.Gui.Chart;
      Revised:
      Code:
      using System;
      using System.Diagnostics;
      using System.Drawing;
      using System.Drawing.Drawing2D;
      using System.ComponentModel;
      using System.Xml.Serialization;
      using NinjaTrader.Cbi;
      using NinjaTrader.Data;
      using NinjaTrader.Gui.Chart;
      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      421 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      279 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      238 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      325 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      288 views
      0 likes
      Last Post CarlTrading  
      Working...
      X