OPEN-SOURCE SCRIPT

MA Shift (Offset Only + Flip Dots)

216
Indicator Overview
This custom moving average indicator shifts the SMA away from price by a fixed percent or ATR multiple. It delivers a clear, uncluttered view of trend direction and momentum while keeping the price bars visible. A single offset line glows in semi-transparent shading and changes color based on trend state. When the price crosses the base SMA, a small dot marks the flip point.

Key Features
Adjustable Length
Choose any SMA period (default six) to suit your time frame and trading style.

Flexible Offset Mode

Percent mode places the line a fixed percentage above or below the SMA.

ATR mode spaces the line dynamically based on market volatility.

Direction Toggle
Shift the line up or down away from candles.

Glow Effect
A wide, semi-transparent band highlights the offset line for easy visibility.

Trend-Flip Dots
A tiny circle appears below the bar when the trend turns up and above the bar when it turns down, helping you spot reversals at a glance.

Custom Candle and Bar Coloring
Bars and candles recolor to reflect the current trend, reinforcing visual clarity.

How It Works
Base SMA Calculation
The indicator computes a standard SMA on your chosen source (high+low 2 by default).

Offset Application
It then adds or subtracts the percent or ATR-based distance to create a second line.

Trend Detection
When price moves above the SMA, the offset line and bars turn to your “up” color. When price drops below, they switch to your “down” color.

Flip Signals
On the bar that triggers a color change, a dot marks the exact reversal point.

Trading Signals and Usage
Trend Confirmation
Use the offset line as a clean trend guide. Price consistently above the line with green bars signals a bullish regime. Price below the line with orange bars signals bearish control.

Entry and Exit

Long Entry: Wait for a flip-up dot and a green close above the offset line.

Short Entry: Watch for a flip-down dot and an orange close below the offset line.

Stops and Targets: Place stops just inside the offset line on pullbacks for dynamic risk management.

Avoiding Whipsaws
The visual separation helps you ignore minor noise around price. Combine flip dots with bar color to filter false turns.

Confluence with MACD
Pair this offset SMA with the MACD for stronger signals:

MACD Trend Filter
Require the MACD line to be above its signal line (and histogram above zero) before taking a long flip-up from the offset MA.

Momentum Confirmation
When the offset SMA flips to a downtrend, look for the MACD histogram to turn negative. That alignment avoids fade-against-momentum trades.

Entry Timing
Use the MACD crossover as a lead-in filter and the offset SMA flip as the actual trigger. This two-step approach keeps you on the right side of larger moves.

Publishing Tips on TradingView
Description: Summarize features and usage in the indicator’s “About” field.

Inputs: List each setting clearly so users know how to tweak period, offset mode, percent/ATR values and color choices.

Examples: Include a chart snapshot showing a long setup with both the offset SMA flip and a confirming MACD crossover.

Release Notes: Mention version defaults (six-period SMA, ten-percent offset) and invite feedback for improvements.

Tags: Use relevant keywords like “Moving Average,” “Offset Indicator,” “Trend Filter,” and “MACD Confluence” to make it easy to find.

With its simple dot signals and customizable glow, this offset SMA becomes a powerful visual tool—especially when paired with MACD—for spotting clean trend entries and exits.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.