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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X