OPEN-SOURCE SCRIPT

Weighted Moving Range with Trend Signals (WMR-TS)

Weighted Moving Range with Trend Signals (WMR-TS)

Technical analysis involves analyzing statistical trends from trading activity, such as price movement and volume, to make trading decisions. Technical indicators are mathematical calculations based on the price, volume, or open interest of a security or contract. They are used by traders to analyze price movements and predict future market behavior. The WMR-TS indicator combines weighted moving averages and range calculations to identify key trading levels and generate buy/sell signals. It dynamically adjusts to market conditions, offering traders insights into potential support, resistance, and trend reversal points. Key levels are color-coded for quick interpretation. It utilizes weighted moving averages (WMA) and range calculations to determine these levels, making it a robust tool for both trending and ranging markets.

SUMMARY
Parameters:
  1. WMA Length: Determines the length for the primary weighted moving average.
  2. Highest High Length: Sets the period for calculating the highest high.
  3. Lowest Low Length: Sets the period for calculating the lowest low.
  4. Range Corrector: Adjusts the range calculation slightly for fine-tuning.
  5. Top Level: Multiplier for determining the top level from the calculated range.
  6. Bottom Level: Multiplier for determining the bottom level from the calculated range.
  7. Levels Visibility: Sets how many recent bars will display the levels.

Trading Zones:
  1. Short Area: Highlighted zone indicating potential shorting opportunities.
  2. Long Area: Highlighted zone indicating potential buying opportunities.

The Levels:
  1. Wave (Yellow): Midpoint of the calculated range, adjusted by WMA.
  2. Top Level (Red): Calculated upper boundary of the trading range.
  3. Sell Level (Pink): Intermediate sell level.
  4. Resistance Level (Magenta): Immediate resistance level.
  5. Support Level (Cyan): Immediate support level.
  6. Buy Level (Light Green): Intermediate buy level.
  7. Bottom Level (Dark Green): Calculated lower boundary of the trading range.

Interpreting the Signals:
  • Hammer Signal: Red circles above bars indicate potential sell signals.
  • Rocket Signal: Green circles below bars indicate potential buy signals.


KEY CONCEPTS
  • Highest High and Lowest Low:
    These values represent the highest high (HH) and lowest low (LL) over a specified number of periods.

  • Support Level:
    This is the lower boundary of the trading range. It is a price level where demand is strong enough to prevent the price from falling further. As the price approaches the support level, it is likely to bounce back up.

  • Resistance Level:
    This is the upper boundary of the trading range. It is a price level where supply is strong enough to prevent the price from rising further. As the price approaches the resistance level, it is likely to pull back down.


THE USE OF MULTIPLIERS:
The script uses several multipliers to adjust and fine-tune the calculated support and resistance levels, as well as to control the range and sensitivity of these levels. Here is a detailed explanation of these multipliers and their purpose:
  1. Range Corrector: This multiplier adjusts the calculated high (H) and low (L) levels, adding flexibility to how these levels are positioned relative to the highest high and lowest low. It ranges from -1 to 1, with a default value of 0. The use of positive values increase the range, making the calculated levels further apart. Thus, using negative values decrease the range, bringing the calculated levels closer together.
  2. Top Level: This multiplier adjusts the distance of the top level from the calculated high H) level. It fluctuates from 0 to 2, with a default value of 0.382. Higher values will push the top level further above the high level, while lower values will bring it closer.
  3. Bottom Level: This multiplier adjusts the distance of the bottom support level from the calculated low support level. Ranging from 0 to 2, with a default value of 0.214, the higher values will push the bottom level further below the low level, while lower values will bring it closer.

The script plots the support and resistance levels on the chart, allowing traders to visualize the trading range. Color-coded zones are used to indicate areas where buying or selling opportunities may arise based on the current price relative to the trading range. A trading range refers to the area between a price's support and resistance levels over a specific period of time. Within this range, the price of the security fluctuates up and down but does not break out above the resistance or below the support. Support and resistance levels to make trading decisions. Buying near the support level and selling near the resistance level is a common strategy. When the price moves above the resistance level, it is called a breakout. A breakout often indicates that the price may start a new upward trend. Conversely, when the price moves below the support level, it is called a breakdown. A breakdown often indicates that the price may start a new downward trend. By understanding and utilizing trading ranges, traders can make more informed decisions, optimize their trading strategies, and manage risk more effectively.

Understanding Moving Averages
A moving average (MA) is a widely used technical indicator that helps smooth out price data by creating a constantly updated average price. The main purpose of using a moving average is to identify the direction of the trend and to reduce the "noise" of random price fluctuations. The Weighted Moving Average (WMA) assigns different weights to each period, with more recent periods typically given more weight. A 10-day WMA might give the most recent day a weight of 10, the second most recent day a weight of 9, and so on. It is useful for traders who want to emphasize recent price data more than older data. When the price is above the moving average, it suggests an Bullish trend. A Bearish Trend is expected to take place when the price is below the moving average. Understanding the price reactions around these levels can be used to make trading decisions.

APPLYING CONCEPTS

Support and Resistance Calculations in the Script:
The script calculates dynamic support and resistance levels using weighted moving averages (WMAs) and the highest high and lowest low over specified periods. Buy (Rocket) and sell (Hammer) signals are generated based on the crossing of the price with calculated top and bottom levels.These signals help traders identify potential entry and exit points within the trading range.

Weighted Moving Average (WMA) Application in the Script
This script calculates a special trendWMA using the close price that helps in creating a more dynamic moving average that considers both high and low price actions. This modified WMA is used in conjunction with highest high and lowest low values over specified periods to calculate dynamic support and resistance levels.

Explanation of the Levels in the Script
By understanding these levels, traders can make more informed decisions about where to enter and exit trades, manage risk, and anticipate potential market movements. The script incorporates several key levels levels that traders can use to better anticipate price movements and make more informed trading decisions. Leveraging the principles of Fibonacci retracement ratios (23.6%, 38.2%, 50%, 61.8%, and 100%) to identify key support and resistance zones can also serve for gauging the overall market sentiment.
  • Top Level and Sell Level: Used to identify potential resistance zones where the price may reverse or pause.
  • Support Level and Buy Level: Used to identify potential support zones where the price may bounce.
  • Upper and Lower Pivot Values: Serve as intermediate levels for possible price retracements or extensions within the trading range.
  • Wave Level: Indicates the central trend direction, which can be useful for gauging the overall market sentiment.

Alerts are a crucial part of the script as they notify traders of potential buy and sell signals based on predefined conditions. There are two main alerts: one for a "Hammer" signal (sell condition) and one for a "Rocket" signal (buy condition).

Adjust the input parameters to fit your trading style and the specific asset being analyzed. Shorter lengths may be more responsive to price changes but can produce more false signals, while longer lengths provide smoother signals but may lag. Always backtest the indicator on historical data to understand its behavior and performance. Also remember that different markets may require different parameter settings for optimal performance.

Keep in mind that by nature like all moving averages, WMAs lag behind price action. This means that signals may be delayed. The indicator performs differently in various market conditions. Always consider the overall market context when interpreting signals.

Adjusting parameters like the range corrector and visibility can help tailor the indicator to specific market conditions or trading strategies, improving its effectiveness. The script uses the calculated levels to plot lines and fill zones on the chart, helping traders visualize potential support, resistance, and trend reversal points. The use of multipliers allows for dynamic adjustment of these levels, making the indicator flexible and adaptable to different market conditions.

I think traders can make more informed decisions about where to enter and exit trades, manage risk, and anticipate potential market movements following this code. Stay safe and always remember that market is always changing. Use this tool if you want, please stay informed and plan safe trades,

D.
Pivot PointsSupport and ResistanceWeighted Moving Average (WMA)

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Feragatname