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 kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      30 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      30 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      27 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      141 views
      0 likes
      Last Post SalmaTrader  
      Working...
      X