Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to add 2 dashes

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

    how to add 2 dashes

    Good day i have an indicator that plots 1 dash to a bar
    I will like to add two dashes how can the code be?

    this is what i have... Color.Green, DashStyle.Solid, 2);


    thanks

    #2
    Hello misalto,

    Thank you for writing in.

    Are you wishing to place another line over or below the existing drawn line?

    You'll need to call another Draw method and change your startY and endY parameters to either below or above your previous Draw method's parameters. Ensure you are also using a different tag as to not overwrite your previous line.

    If this is not the case, do note that using DashStyle.Solid is just going to draw a solid line. If you wish to draw a dashed line, you'll want to change your DashStyle to any of the other styles:
    DashStyle.Dash
    DashStyle.DashDot
    DashStyle.DashDotDot
    DashStyle.Dot

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Zachary thanks for your response
      what i need is to add lengthen by adding another dash.
      not above nor below ...in the same line

      Comment


        #4
        Hello misalto,

        You will need to adjust the startBarsAgo/endBarsAgo or startTime/endTime parameters of your Draw() method in order to lengthen the drawn object.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 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
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X