+ Reply to Thread
Results 1 to 5 of 5

ZigZag Indicator Calculation

  1. #1
    Registered User
    Join Date
    06-05-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    46

    ZigZag Indicator Calculation

    I am trying to reproduce ZigZag % indicator in Excel. I can't seem to get my head around how I can program/calculate this in Excel.

    Here is where I am stuck: (refer to attached file)

    - Heading "Point" is the reference for all outputs and calculations.
    - Now I take the starting point, which is row 3, and calculate % difference all the way down ("Point" is the numerator and "New Base" is the denominator).
    - "New Base" is only to be formed when the old base value is either greater than or less than +/- 5%.
    - Now when the "New Base" point has a new value I want the denominator to take the new base value and disregard the old value for % diff calculation. That is where my problem is. How can I make Excel understand to take the latest base value from the data? Right now I have done it manually in the file attached.

    Any help is much appreciated. Thank you

    ZigZag.xlsx

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: ZigZag Indicator Calculation

    Is the current spreadsheet structure, where you calculate and display "new base" only once, necessary? I would reformulate column H so that "new base" carries down the column, changing when needed. Then, column G could use a relative reference, instead of the absolute reference. Something like:
    Please Login or Register  to view this content.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    06-07-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: ZigZag Indicator Calculation

    h.noor: I would recommend you to use two similar columns of New Base. One will calculate the values on a daily basis. The second one will display only changed values (IF<>). Have a look at this Zig Zag file and images: http://www.technicalindicators.net/t...-zag-indicator

  4. #4
    Registered User
    Join Date
    03-20-2020
    Location
    Palestine
    MS-Off Ver
    2015
    Posts
    1

    Re: ZigZag Indicator Calculation

    thanks thanks

  5. #5
    Registered User
    Join Date
    07-05-2020
    Location
    London, England
    MS-Off Ver
    13
    Posts
    3

    Re: ZigZag Indicator Calculation

    Have you checked on the google ?

    There is some free ZigZag indicator available from this link:

    <www>.algotrading-investment.com/2020/05/10/algorithm-and-prediction-for-artificial-intelligence-time-series-forecasting-and-technical-analysis/

    I guess that their zigzag indiactor comes as the part of technical analysis package. Hence, you can use other technical indicators together like RSI and CCI and MACD and Moving average, etc.

    They are all free fortunatley.

    I really like this free one.

    Hope it helps you too.

    Note: just remove < > from above link.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Key Performance Indicator (KPI)
    By wiewie002 in forum Excel General
    Replies: 4
    Last Post: 09-11-2015, 01:46 PM
  2. Progress bar or indicator to display calculation percentage
    By Dan27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2013, 01:13 PM
  3. Sorting a table Zigzag manner
    By aasswwiinn in forum Excel General
    Replies: 2
    Last Post: 03-20-2013, 05:59 AM
  4. Progess Indicator - "Circle" Indicator By Andy Pope
    By NaNaBoo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2009, 10:48 AM
  5. smooth zigzag line
    By excel_try in forum Excel General
    Replies: 1
    Last Post: 10-11-2008, 06:20 AM
  6. smooth zigzag line
    By excel_try in forum Excel General
    Replies: 0
    Last Post: 10-11-2008, 05:43 AM
  7. Data transforming and zigzag figure poltting
    By yoyo2000 in forum Excel General
    Replies: 0
    Last Post: 09-13-2005, 12:22 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1