Description Usage Arguments Details Value Note Author(s) References Examples
Zig Zag higlights trends by removing price changes
smaller than change
and interpolating lines
between the extreme points.
1 2 |
HL |
Object that is coercible to xts or matrix and contains either a High-Low price series, or a Close price series. |
change |
Minimum price movement, either in dollars
or percent (see |
percent |
Use percentage or dollar change? |
retrace |
Is |
lastExtreme |
If the extreme price is the same over multiple periods, should the extreme price be the first or last observation? |
The Zig Zag is non-predictive. The purpose of the Zig Zag is filter noise and make chart patterns clearer. It's more a visual tool than an indicator.
A object of the same class as HL
or a vector (if
try.xts
fails) containing the Zig Zag indicator.
If High-Low prices are given, the function calculates the max/min using the high/low prices. Otherwise the function calculates the max/min of the single series.
Joshua Ulrich
The following site(s) were used to code/document this
indicator:
http://www.fmlabs.com/reference/default.htm?url=ZigZag.htm
http://www.linnsoft.com/tour/techind/zigzag.htm
http://www.linnsoft.com/tour/techind/zigosc.htm
http://www.equis.com/Customer/Resources/TAAZ/?c=3&p=127
http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:zigzag
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.