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

Drawing parallel lines

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

    Drawing parallel lines

    Hi Josh / Ray

    Please advise on the tool to be used for drawing parallel lines on the charts.

    I would like to use this tool to draw a parallel line in parallel to a trend line, drawn using the trendline indicator.

    Thanks,

    #2

    Use that. Just make sure the two lines have the same slope and then you'll have parallel lines.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Parallel line

      Can some one help me to develope a code for drawing a parallel line to an existing line in the chart?

      Appreciate your help.

      Thanks,

      Comment


        #4
        You will need to determine the slope of the trendline indicator's line and then do some math to draw your own line. Unfortunately I cannot provide exact code for you due to bandwidth reasons.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Is there any way to query an existing graphical object (such as a line) to get the endpoints of the line?

          MT4 lets you do this with "GetObjectData()" or something similar.

          Thanks,
          Ben

          Comment


            #6
            There could be ways to do it in C#, but unfortunately we cannot offer support for that level of programming.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cls71, Today, 04:45 AM
            0 responses
            1 view
            0 likes
            Last Post cls71
            by cls71
             
            Started by mjairg, 07-20-2023, 11:57 PM
            3 responses
            213 views
            1 like
            Last Post PaulMohn  
            Started by TheWhiteDragon, 01-21-2019, 12:44 PM
            4 responses
            544 views
            0 likes
            Last Post PaulMohn  
            Started by GLFX005, Today, 03:23 AM
            0 responses
            3 views
            0 likes
            Last Post GLFX005
            by GLFX005
             
            Started by XXtrader, Yesterday, 11:30 PM
            2 responses
            12 views
            0 likes
            Last Post XXtrader  
            Working...
            X