-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add depth parameter to ZigZag indicator #694
Comments
@islero thanks for contributing ideas. Please review our documentation for Zig Zag. I think the "depth" parameter you are seeking is called It may be confusing because there is a default value of 5, so the method can be used without specifying the parameter. |
@DaveSkender, thank you for your reply, I checked documentation and even code, but unfortunately, I've noticed that I've override GetZigZag extension method locally and simply skipped So, honestly I've no idea how to implement that so far |
Oh, I see, this is a setting that sets a minimum number of bars between pivots? |
@DaveSkender, this is a setting to set a min number of bars between extremums, like X bars between "H" and "H", same between "L" and "L", thanks :) |
See also discussion with @M22arius494 |
I'm seeing here that the TradeEasy and TradingView have two different APIs. TradeEasy also includes a |
This is what TradingView does with the last leg with a few depth variations. These don't look right to me:
I suspect you're trying to avoid this whipsaw scenario: Without the depth parameter, this would usually be fixed by increasing the Deviation value: |
There doesn't appear to be much standardization around this. Some sites indicate
Snippet from my implementation (where
I then use the min/max as extreme points to check for reversals instead of just looking one ahead. |
Hi, Started using your amazing library recently and also encountered a problem where results are different comparing to TradingView, probably due to depth parameter. Especially it can be seen on recent data, where small price fluctuations are being registered as ZigZag points. If I increase the param of the indicator then the most recent extremes are not registered as ZigZag points too. For example, the library still shows 1180.18 as the most recent low point but TradingView shows 1172.75. Thanks! |
Thanks for the info. I’ll take a closer look at Just an FYI to everyone, TradingView is not always a reliable standard nor is it a good source for basing accuracy. See #801 for some examples, including some obvious problems I’d shown above. We’ve been basing our definition on how it is described by Investopedia and by Chart School at stockcharts.com; but do agree that there’s no clear expert source author on this one. I usually defer to original expert author publications to clarify. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I still have a lot of uncertainty how What I hear is that you essentially want to ignore quick reversals — for example, you don’t want to eat ice cream every day, but once a week is okay. 🍦 Where I struggle with this concept: if ice cream arrives on Monday, Tuesday, and Wednesday, why would you want to arbitrarily rule out Tuesday or Wednesday as the best day in the week to eat ice cream? It doesn’t add up, logically. If your goal is to avoid whipsaw reversals, my recommendation is either increase your // use chaining to pre-smooth
// UPDATE: this is impossible, won’t work
var results = quotes
.GetAlma(..)
.GetZigZag(..); I’ll keep this issue open for a while longer to see if there’s any strong, compelling counter arguments to my logic, but am leaning towards skipping this one. |
And now I’ll eat my words. You can’t chain ALMA to ZIG ZAG, it needs a full quote! 😵💫 I can update Zig Zag to allow this chaining option, but you’ll not have a high/low option for |
@anthonypuppo I think has the best lead here. If I understood it correctly, he’s saying a reversal point also has to be a Williams Fractal, where |
Hi Dave. |
the depth parameter to zigzag indicator will allow to have less noise at the chart and the high and low points will be more obvious. Currently the depth option is not available and simply equals to 0, this means that almost each bar will be H or L if set percentage to 1.
https://tradeasy.tech/en/zig-zag/
The text was updated successfully, but these errors were encountered: