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:	210
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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      57 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      78 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      41 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      101 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      61 views
      0 likes
      Last Post PaulMohn  
      Working...
      X