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:	208
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 cmoran13, 04-16-2026, 01:02 PM
      0 responses
      43 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      25 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      163 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      98 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      158 views
      2 likes
      Last Post CaptainJack  
      Working...
      X