Announcement

Collapse
No announcement yet.

Connecting Top and Bottom of ZIG ZAG

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

  • Connecting Top and Bottom of ZIG ZAG

    Code
    Attached Files

  • #2
    Hello

    I'm trying to Connect the Top and the Bottom of the ZIG ZAG together. Everything I've tried failed or not even close.

    Example and code for zig zag below

    Thank you very much

    Ketoma
    Attached Files

    Comment


    • #3
      Hi Ketoma,

      Originally posted by ketoma21
      I'm trying to Connect the Top and the Bottom of the ZIG ZAG together. Everything I've tried failed or not even close.
      It can be done, however as you see, it is not trivial.

      FWIW, I have already coded something similar described here. The Pivot Tool from the shUtilities v1 library plots pivots of highs and/or lows of almost any study or price series. It has many levels of adjustment which you may leverage to fine tune as required.

      I hope this helps.

      Comment


      • #4
        Thank you very much stevehare2003

        I will try to work on it, it looks good. It looks a little bit complicated but I will give it a go.

        Thank you very much again

        Comment


        • #5
          ketoma21:

          Can you please explain how you calculate your pivot?

          This code is very close to a TradeStation indicator I want to convert.

          I used your zigzag code but I need to change the parameters of when it determines a pivot.

          Your length and strength don't seem to work when I change their values.

          THANKING YOU IN ADVANCE FOR YOUR HELP.

          Comment


          • #6
            My Xd Xu EFS

            Here's an EFS that I had made that projects the last swings rather than connects them. It may help with what you are trying to do.
            Attached Files
            OpaBert

            Comment


            • #7
              Avery

              Does this code help?
              Attached Files

              Comment

              Working...
              X