Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

VerticalLine properties

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

    VerticalLine properties

    Hi,
    documentation shows that a VerticalLine has properties of DashStyleHelper, Brush etc.
    This is confirmed by intellisense in the Editor.

    However, at compilation no such properties can be found.

    See image which shows the problem. This is latest NT8 version 8.0.17.2.

    I'm trying to set the DashStyleHelper and the Brush after creating the vertical line (because I want to use the signature that includes the IsGlobal property).

    Thanks for your assistance.

    saltminer
    Click image for larger version

Name:	Annotation 2019-03-05 162050.jpg
Views:	204
Size:	118.6 KB
ID:	1050277

    #2
    Hello saltminer,
    Thanks for your post.

    You should use the Line interface to change the stroke of the line. This snippet seemed to work for me:

    Code:
    VerticalLine vl = Draw.VerticalLine(this, "test", 0, true, "");
    vl.Stroke.DashStyleHelper = DashStyleHelper.Dash;
    https://ninjatrader.com/support/help...roke_class.htm
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Ah yes, of course.
      Need more coffee.

      Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      331 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      549 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X