Announcement

Collapse
No announcement yet.

Highest high

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

  • #16
    Kirk,

    To do that you need to do a couple of things.

    1. keep track of the most recent peak value and bar index.
    2. calculate the equation of a line to extend it past the last peak into the future.

    Both of those are relatively simple when you know what you're doing

    Attached is a file that will draw a dashed trendline from the last 2 peaks.

    Steve
    Attached Files

    Comment


    • #17
      Steve,

      That's awesome! I'm still studying bar indexes...


      Once again, I appreciate your help!

      kz

      Comment


      • #18
        And to complete the set, here's the valley version of the efs.

        Steve
        Attached Files

        Comment


        • #19
          you spared me alot of testing to make that one work.

          thanks, Steve.

          kz

          Comment


          • #20
            Steve,
            Great studies! Thanks for sharing!
            Diane

            Comment


            • #21
              You are most welcome.

              I hope you can learn some new tricks from the code.

              Steve

              Comment


              • #22
                Steve, do you think it`s possible to display the value of the level of the lines on the right scale? (like the quote or the level of the moving averages)
                thanks

                Comment


                • #23
                  It would be possible if the script returned a value instead of just drawing on the chart. You would have to make an array with each line's price value in it and return that array.

                  Then eSignal will display the price for you.

                  Steve

                  Comment


                  • #24
                    Thank you,Steve.
                    Do you have a suggestion, where and how to change the code?

                    Comment


                    • #25
                      See this post for an example of adding numeric text labels to the lines.

                      You would add the code to display the numeric values right below the draw line code.

                      Steve

                      Comment

                      Working...
                      X