OPEN-SOURCE SCRIPT
已更新 Weekly Positive Directional Movement Index [Coff3eG]

The Weekly Positive Directional Movement Index (WPDMI) is a technical indicator designed to measure the strength of upward price movements on a weekly basis, specifically tailored for analyzing Bitcoin (BTC). This indicator is based on the Positive Directional Movement Index (DMI) concept developed by J. Welles Wilder, with adjustments to suit weekly data and the unique characteristics of Bitcoin.
Key Components and Functionality:
1. Timeframe Adjustment: The indicator adapts to different timeframes by calculating a divisor that converts various timeframes into a weekly equivalent. This ensures consistent calculations across different chart intervals.
2. Directional Movement Calculation:
3. Positive Directional Movement Index (WPDMI): The +DM values are smoothed using a moving average and normalized by the True Range to produce a percentage value that represents the strength of positive price movements.
4. Trigger Levels: Users can set custom top and bottom trigger levels to identify significant bullish or bearish conditions. These levels are highlighted on the chart with customizable colors for easy visual analysis.
5. Background Highlights:
Usage:
Customization Options:
Example Plot:
The WPDMI provides a clear and visual representation of the market's bullish momentum, making it a powerful addition to any technical analysis toolkit.
Key Components and Functionality:
1. Timeframe Adjustment: The indicator adapts to different timeframes by calculating a divisor that converts various timeframes into a weekly equivalent. This ensures consistent calculations across different chart intervals.
2. Directional Movement Calculation:
- Plus Directional Movement (+DM): Measures the positive price movement by comparing the current high with the previous high. If this value is greater than the corresponding negative movement and is positive, it is used in further calculations.
- Candle Range: Utilizes the True Range concept to calculate the range of price movement within a week, taking into account the maximum high-low difference and comparing it to previous close prices.
3. Positive Directional Movement Index (WPDMI): The +DM values are smoothed using a moving average and normalized by the True Range to produce a percentage value that represents the strength of positive price movements.
4. Trigger Levels: Users can set custom top and bottom trigger levels to identify significant bullish or bearish conditions. These levels are highlighted on the chart with customizable colors for easy visual analysis.
5. Background Highlights:
- Above Top Trigger: When the WPDMI value exceeds the top trigger level, the background color is highlighted in maroon to indicate strong bullish conditions.
- Below Bottom Trigger: When the WPDMI value falls below the bottom trigger level, the background color is highlighted in green to indicate potential bearish conditions.
Usage:
- The WPDMI is a valuable tool for traders and analysts who want to gauge the strength of upward price movements on a weekly basis. It helps in identifying potential bullish trends and can be used in conjunction with other technical indicators to make informed trading decisions. By setting custom trigger levels, users can tailor the indicator to their specific trading strategies and preferences.
Customization Options:
- Bottom Line Value: The threshold for the bottom trigger level.
- Top Line Value: The threshold for the top trigger level.
- Line Colors: Customizable colors for top and bottom trigger lines.
Example Plot:
- WPDMI Value: Plotted as a line with adjustable color and thickness.
- Top and Bottom Triggers: Plotted as lines at the specified threshold values, with customizable colors.
- Background Highlights: Visual cues for strong bullish or bearish conditions based on the WPDMI value.
The WPDMI provides a clear and visual representation of the market's bullish momentum, making it a powerful addition to any technical analysis toolkit.
版本注释
>..<版本注释
tooltips开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。