OPEN-SOURCE SCRIPT

Three Anchored Moving Averages (VWAP / SMA / EMA)

Von IMGPro
Aktualisiert

This indicator allows users to anchor three types of moving averages (Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Average Price (VWAP)) to specific points in time (anchor points)

Key Features:

Select from three Moving Average Types:

Simple Moving Average (SMA): Averages the closing prices over a specified period.
Exponential Moving Average (EMA): Gives more weight to recent prices, making it more responsive to new information.
Volume Weighted Average Price (VWAP): Averages the price weighted by volume, useful for understanding the average price at which the asset has traded over a period.

Up to Three Anchor Points:

Users can set up to three different anchor points to calculate the moving averages from specific dates and times. This allows for analysis of price action starting from significant points or specific events. For example, you can anchor to the low and high of a move to identify key levels or to points where the price takes off from a previous anchored MA.

Customisable Sentiment Options:
Each anchor point can be associated with a sentiment input (Auto, Bull, Bear, None), which influences if the MAs are displayed as lines or zones/bands:

Auto: Automatically determines the sentiment based on whether anchor points are on pivot highs and lows. If anchored to a pivot high, the system will assume a bearish sentiment and display a red band or zone between the MA OHLC4 and High. Anchoring to a pivot low will display a green band (OHLC4 - Low).

Bull: Forces a bullish sentiment (Green Band - OHLC4 to Low)

Bear:Forces a bearish sentiment (Red Band - OHLC4 to High)

None: Ignores sentiment and displays a single line (OHLC4)

Chart Matching:
The indicator includes an option to display the moving averages only if the chart symbol matches a specified ticker. This feature ensures that the indicator is relevant to the specific asset being analysed.

How to Use the Indicator:

1. Set Anchor Points: When added to your chart, select three anchor points by point and click. If you only wish to anchor to a single point, click on that point three times and disable the other two in settings once the indicator is applied.

2. Select Moving Average Type: Choose between SMA, EMA, or VWAP using the dropdown menu. EMAs are the most responsive.

3. Enable/Disable Anchor Points: Use the checkboxes to enable or disable each anchor point.

4. Select Sentiment Type: Choose between Auto, Bull, Bear, or None.

5. Chart Matching: Optionally, specify a chart symbol to restrict the indicator's display to that particular asset.

6. Interpret the Plots: The indicator plots the high, mid, and low values of the selected moving average type from each anchor point. The fills between these plots help identify potential support and resistance zones. These should be used as points of interest for pullback reversals or potential continuation if the price breaks through.

Practical Applications:

Trend Analysis: Identify the overall trend direction from specific historical points.

Support and Resistance: Determine key dynamic support and resistance levels based on anchored moving averages.

Event-Based Analysis: Anchor the moving averages to significant events (e.g., earnings releases, economic data) to study their impact on price trends.

Multi Timeframe Analysis: Higher Timeframe Anchors can be used to identify longer term trend analysis. Switching to a lower timeframe for execution triggers at these points wont distort the MA levels as they are anchored to a specific point in time

Intraday or Swing Trading: trend analysis using anchor points can be used for any style of trading (Intraday / Swing / Invest). Use anchored levels as points of interest and wait for hints in price action to try and catch the next move.

Versionshinweise
1. Minor bug fixes
2. Added MTF functionality: Can anchor on lower timeframes and view on higher timeframes + vice versa
3. Added SMA-VWAP avg band

Versionshinweise
Added alerts
Versionshinweise
Updated SMA-VWAP Band logic to try and capture both, giving a bigger area to look for potential setups

if Bearish:
1. Display the highest of SMA High and VWAP High
2. Display the lowest of SMA and VWAP

opposite for bullish

AMAanchoredaveragesavwapdynamicExponential Moving Average (EMA)movingSimple Moving Average (SMA)supportSupport and Resistance
IMGPro
User Manual for the IMG Indicator Suite: img-pro.document360.io/docs

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss