Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 alifarahani, Today, 09:40 AM
        6 responses
        31 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by Kaledus, Today, 01:29 PM
        5 responses
        14 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Waxavi, Today, 02:00 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by gentlebenthebear, Today, 01:30 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X