OPEN-SOURCE SCRIPT

KERPD Noise Filter - Kaufman Efficiency Ratio and Price Density

已更新
This indicator combines Kaufman Efficiency Ratio (KER) and Price Density theories to create a unique market noise filter that is 'right on time' compared to using KER or Price Density alone. All data is normalized and merged into a single output. Additionally, this indicator provides the ability to consider background noise and background noise buoyancy to allow dynamic observation of noise level and asset specific calibration of the indicator (if desired).

The basic theory surrounding usage is that: higher values = lower noise, while lower values = higher noise in market.

Notes: NON-DIRECTIONAL Kaufman Efficiency Ratio used. Threshold period of 30 to 40 applies to Kaufman Efficiency Ratio systems if standard length of 20 is applied; maintained despite incorporation of Price Density normalized data.

TRADING USES:
-Trend strategies, mean reversion/reversal/contrarian strategies, and identification/avoidance of ranging market conditions.
-Trend strategy where KERPD is above a certain value; generally a trend is forming/continuing as noise levels fall in the market.
-Mean reversion/reversal/contrarian strategies when KERPD exits a trending condition and falls below a certain value (additional signal confluence confirming for a strong reversal in price required); generally a reversal is forming as noise levels increase in the market.
-A filter to screen out ranging/choppy conditions where breakouts are frequently fake-outs and or price fails to move significantly; noise level is high, in addition to the background buoyancy level.
-In an adaptive trading systems to assist in determining whether to apply a trend following algorithm or a mean reversion algorithm.

THEORY / THOUGHT SPACE:
The market is a jungle. When apex predators are present it often goes quiet (institutions moving price), when absent the jungle is loud.
There is always background noise that scales with the anticipation of the silence, which has features of buoyancy that act to calibrate the beginning of the silence and return to background noise conditions.
Trend traders hunt in low noise conditions. Reversion traders hunt in the onset of low noise into static conditions. Ranges can be avoided during high noise and buoyant background noise conditions.
Distance between the noise line and background noise can help inform decision making.

CALIBRATION:
- Set the Noise Threshold % color change line so that the color cut off is where your trend/reversion should begin.
- Set the Background Noise Buoyancy Calibration Decimal % to match the beginning/end of the color change Noise Threshold % line. Match the Background Noise Baseline Decimal %' to the number set for buoyancy.
- Additionally, create your own custom settings; 33/34 and 50 length also provides interesting results.
- A color change tape option can be enabled by un-commenting the lines at the bottom of this script.

Market Usage:
Stock, Crypto, Forex, and Others

Excellent for: NDQ, J225, US30, SPX

Market Conditions:
Trend, Reversal, Ranging
發行說明
Simple post-publication updates to text/code.
發行說明
Updated chart to non-Heiken Ashi Candle Type
發行說明
Updated chart to reflect standard candles and normalization formula note.
發行說明
Having issues updating the chart to non-Heikin Ashi (HA) candles as requested by house rules; notably works with both types of candles, yet I prefer HA style candles. Minor code notes updated. Apologies.
發行說明
Updated code to Pinescript 6 standards. Removed in-script commentary and naming conventions for clarity.
發行說明
Updating due to HA candle in main image.
發行說明
Tape below indicator zero line added as permanent feature.
發行說明
Updated tape related naming conventions, plot comments, and code spacing to ensure simplicity for users. Tape plot can now be shown or hidden in settings.
densityefficiencyfiltermarketnoiseOscillatorspriceratiosentimenttrendTrend Analysis

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明