Hutmacher42

Modified QQE-ZigZag [Non Repaint During Candle Building]

Hutmacher42 已更新   
V V V V V V V Please Read V V V V V V V

I ask Peter and he is fine, that im published this script
Tell me if you have some ideas or criticism about that sricpt

>>>>>>>>>> This is a modified Version of Peter_O's Momentum Based ZigZag <<<<<<<<<<<

This is only a test, and i want to share it with the community
It works like other ZigZags

Because Peters_O's original Version is only non repaint on closed historical Data ,
during a Candle building process it can still repaint (signal appears / 21 seconds later signal disapears / 42 seconds later signal appears again in the same candle / etc.),
but that isnt important for backtesting, its only important for realtime PivotPoints during a candle.

My goal for this zigzag was to make it absolute non repaint neither during a candle building process (current candle),
so once the signal is shown there is no chance that it disapers and shown a few seconds later again on that same candle, it can only show up one time per candle an thats it,
and that makes it absolute non repaint in all time frames.

Credits to:
==> Thanks to @glaz , for bringing the QQE to Tradingview <3
==> Thanks to @Peter_O , for sharing his idea to use the QQE as base for a Zigzag
and for sharing his MTF RSI with the Community <3

Changes:
- I changed the MTF RSI a little bit, you can choose between two version
- I changed the QQE a little bit, its now using the MTF RSI , and its using High and Low values as Source to make it absolute non repaint during a candle is building
- I added a little Divergence Calculation beween price and the MTF RSI that is used for the ZigZag

Colors :
- Green for HH / HL Continuation
- Red for LL / LH Continuation
- Yellow for Positive Divergence
- Purple for Negative Divergence

Important:
It is not possible to backtest this script correctly with historical Data, its only possible in Realtime,
because the QQE is using crossunders with RSILowSource and the QQE Line to find the Tops and,
because the QQE is using crossovers with RSIHighSource and the QQE Line to find the Bottoms,
and that means it is not possible to find the correct Time/Moment when that crossovers / crossunders happens in historical Data

=============> So please be sure you understand the Calculation and Backtest it in Realtime when you want to use it,
because i didn't published this script for real trading

=============> Im not a financial advisor and youre using this script at your own risk
=============> Please do your own research
版本注释:
Credits to:
- Thanks to @HeWhoMustNotBeNamed, for sharing his awesome Supertrend Library,
and for sharing his Divergence Detection Script with the Community <3

Update:
- Added Supertrend based on Highest / Lowest Values
- Added Lookback Range for PivotPoints in Div Calculation

Setting Info:
=> RSI
- Rsi-Type : Choose between Cutler's and Wilder's RSI
- Rsi-Len : Set the Length for the RSI
- MTF-Mult : Length Multiplier for RSI to get MTF Resolution
- QQE-Mult : Set the distance between QQE-Line and RSI (works similar like Supertrend)
- Smooth : Smooth the Rsi with EMA

=> Divergence
- Div-Src : choose source for different Rsi, but with the same settings as QQE-RSI
- PPs-Back : choose how many pivot points should be included in the calculation
- Bot-limit : Shows olny the Divs that are under that limit
- Top-limit : Shows olny the Divs that are over that limit

=> Supertrend
- Chl_len : Choose the Lookback range for Lowest / Highest Values
- Show : Hide The Supertrend
- Atr-Len : Choose the Average Length for the Atr
- Atr-Mult : Choose the Multiplier for the Atr
版本注释:
Update:

- some minor fixes
- added Info for all Parameters in the Settings
- added Convergence Calculation
- reworked supertrend Calculation, you can choose between 3 versions:
- SMA based
- EMA based
- Rolling HH / LL based
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?