LeafAlgo

Consensus Oscillator with ADX (LeafAlgo)

LeafAlgo 업데이트됨   
This indicator creates a normalized consensus from a set of other indicators -- Chande Momentum Oscillator (CMO), Detrended Price Oscillator (DPO), Momentum (MOM), Rate of Change (RoC), Relative Strength Index (RSI), the True Strength Index (TSI) Value line, Volume Oscillator, and a normalized Z-score.

The consensus is created by giving ranged values to each individual indicator. These individual values are added together, then put through a normalization function to create a 0-100 range. The scoring for each indicator is as follows:

CMO:
- If chandeMO <= -50, then the score is valued at -2
- If chandeMO > -50 and chandeMO <= -25, then the score is valued at -1
- If chandeMO > -25 and chandeMO < 25, then the score is valued at 0
- If chandeMO >= 25 and chandeMO < 50, then the score is valued at 1
- If chandeMO >= 50, then the score is valued at 2

DPO:
- If dpo <= -0.005, then the score is valued at -2
- If dpo > -0.005 and dpo <= -0.0025, then the score is valued at -1
- If dpo > -0.0025 and dpo < 0.0025, then the score is valued at 0
- If dpo >= 0.0025 and dpo < 0.005, then the score is valued at 1
- If dpo >= 0.005, then the score is valued at 2

MOM:
- If mom <= -0.05, then the score is valued at -2
- If mom > -0.05 and mom <= -0.025, then the score is valued at -1
- If mom > -0.025 and mom < 0.025, then the score is valued at 0
- If mom >= 0.025 and mom < 0.05, then the score is valued at 1
- If mom >= 0.05, then the score is valued at 2

ROC:
- If roc <= -20, then the score is valued at -2
- If roc > -20 and roc <= -10, then the score is valued at -1
- If roc > -10 and roc < 10, then the score is valued at 0
- If roc >= 10 and roc < 20, then the score is valued at 1
- If roc >= 20, then the score is valued at 2

RSI:
- If rsi <= 20, then the score is valued at -2
- If rsi > 20 and rsi <= 40, then the score is valued at -1
- If rsi > 40 and rsi < 60, then the score is valued at 0
- If rsi >= 60 and rsi < 80, then the score is valued at 1
- If rsi >= 80, then the score is valued at 2

TSI Value:
- If tsi <= -20, then the score is valued at -2
- If tsi > -20 and tsi <= -10, then the score is valued at -1
- If tsi > -10 and tsi < 10, then the score is valued at 0
- If tsi >= 10 and tsi < 20, then the score is valued at 1
- If tsi >= 20, then the score is valued at 2

Volume Oscillator:
- If vo <= -20, then the score is valued at -2
- If vo > -20 and vo <= -10, then the score is valued at -1
- If vo > -10 and vo < 10, then the score is valued at 0
- If vo >= 10 and vo < 20, then the score is valued at 1
- If vo >= 20, then the score is valued at 2

Normalized (-1 to +1) Z-Score:
- If z_n <= -0.5, then the score is valued at -2
- If z_n > -0.5 and z_n <= -0.25, then the score is valued at -1
- If z_n > -0.25 and z_n < 0.25, then the score is valued at 0
- If z_n >= 0.25 and z_n < 0.5, then the score is valued at 1
- If z_n >= 0.5, then the score is valued at 2

The consensus line is colored depending on the closing value of the line. The color is shown as lime if above 70, a darker green between 55 and 70, yellow between 45 and 55, orange between 30 and 45, and red below 30.

Additionally, there is a normalized ADX line added into the indicator to give further confirmation to trend strength. The normalized ADX line is shown as green if above 40, yellow between 40 and 20, and red below 20.

Horizontal lines have been added at 20/30 and 50/60 as semi-important levels to watch.
릴리즈 노트:
In this updated version, I added an option to use dynamic thresholds for scoring the consensus. You can enable the "Use Dynamic Thresholds" input parameter to activate this feature. Two additional input parameters, "High Threshold" and "Low Threshold," allow you to customize the threshold levels. The consensus oscillator will be colored based on the dynamic thresholds if enabled, or it will use the predefined color scheme if dynamic thresholds are disabled.

Using dynamic thresholds can provide more flexibility in adapting the scoring to different market conditions. By adjusting the high and low threshold values, you can control the sensitivity and accuracy of the consensus oscillator. Higher thresholds may result in fewer signals but with higher confidence, while lower thresholds can generate more signals with potentially lower accuracy. Experimenting with different threshold levels can help fine-tune the indicator to your preferred trading style and market conditions.

However, it's important to note that dynamic thresholds introduce subjectivity into the scoring process, as the threshold values are user-defined. It requires careful observation and testing to determine the optimal threshold levels for your trading strategy. Additionally, relying solely on dynamic thresholds may not always guarantee improved accuracy, as market conditions can change, and historical performance may not always repeat in the future.

Take your trading to new heights with LeafAlgo Premium Indicators and Strategies. Use code SSMS4MGK at checkout for a 50% discount on your first purchase at www.LeafAlgo.com !

Join our Discord community today!
www.discord.gg/rNQ2QW59Pn
보호된 스크립트입니다
이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.
면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?