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:	212
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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      155 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      307 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      244 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      345 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      176 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X