Indicator · Pine Script v5 · On the chart

ODIE AT-DDT

by gocaman

ODIE AT-DDT combines an Arnaud Legoux Moving Average (ALMA) and an AlphaTrend indicator into a single price chart overlay.

View on GitHub

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code775
Settings40inputs
LicenceNone stated
Last updatetoday28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

ODIE AT-DDT calculates trend direction using ALMA smoothing alongside an ATR-based AlphaTrend that utilizes MFI or RSI. Visual buy and sell signals are generated when ALMA shifts color or when AlphaTrend lines cross over. Settings allow users to adjust ALMA parameters, ATR multipliers, volume calculations, and visual elements.

Details

Published by

gocaman on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Trend, Moving averages, Volatility & bands, Support & resistance

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Grup seçstring1grupSec
PERİYOTtimeframeper
Konum Ayarıint20loc
ALMA-1int14len55
Sourcesourceclosesrc22
ALMA Offsetfloat0.85offset
ALMA Sigma Valueint6sigma
Multiplierfloat1coeff
Common Periodint14AP
src5sourceclosesrc5
Show Signals?booltrueshowsignalsk
Change calculation (no volume data)?boolfalsenovolumedata
Show all 40 settings
SettingTypeDefaultVariable
ATR Periodint10Periods
Sourcesourcehl2src88
ATR Multiplierfloat3.0Multiplier
Change ATR Calculation Method ?booltruechangeATR
Show Buy/Sell Signals ?booltrueshowsignals
Highlighter On/Off ?booltruehighlighting
History bars backint300history_bars
Resolution (bars)int6xx1
Swing High/Low Lengthint10swing_length
History To Keepint20history_of_demand_to_keep
ARZ/TALEP KUTUSU GENİŞLİĞİfloat10box_width
Show Zig Zagboolfalseshow_zigzag
Show Price Action Labelsboolfalseshow_price_action_labels
DİRENÇcolorcolor.new(#e70000, 95)supply_color
Outlinecolorcolor.new(#ec0101, 1)supply_outline_color
DESTEKcolorcolor.new(#22aa00, 89)demand_color
Outlinecolorcolor.new(#2d00f8, 0)demand_outline_color
POI Labelcolorcolor.rgb(12, 11, 11)poi_label_color
Price Action Labelcolorcolor.blackswing_type_color
Zig Zagcolorcolor.new(#000000,0)zigzag_color
1symbolsb1
2symbolsb2
3symbolsb3
4symbolsb4
5symbolsb5
6symbolsb6
7symbolsb7
8symbolsb8
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

MA Envelope (MAE)

by mihakralj
99 stars

The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p

Indicator v6 Moving averagesSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of MA Envelope (MAE)

Trend Compass 4H

by chris-c-thomas
14 stars

Trend Compass 4H plots a multi-EMA ribbon (10/21/50) along with higher-timeframe reference levels on the price chart. It classifies trend phase into six states and calculates a composite weighted trend score. The script detects RSI and MACD divergences, analyz

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass 4H
10 stars

My Macro Cycle Indicator plots daily and weekly simple and exponential moving averages on the price chart, plus Pi Cycle and Mayer Multiple levels derived from the 200-day average. Optional toggles add support-band fills, a Keltner channel, CME futures gaps, a

Indicator v4 Moving averagesVolatility & bands
Updated 5 years ago · None stated GitHub repository of My Macro Cycle Indicator

This indicator plots a double-smoothed Supertrend baseline on the price chart, combining a Supertrend midline with WMA and EMA smoothing to show trend direction. Direction uses an ATR-scaled baseline slope with hysteresis, while percentile-ranked slope magnitu

Indicator v6 TrendMoving averages
Updated yesterday · MIT GitHub repository of Smooth Trend Radar [WavesUnchained]

SRI Indicator ft. MSB

by kingmalitha
7 stars

This indicator overlays an all-in-one technical analysis toolkit on the price chart. It plots multiple moving averages, including standard EMAs, SMAs, and a Trend Regularity Adaptive Moving Average, alongside Bollinger Bands, Supertrend, Nadaraya-Watson envelo

Indicator v5 Moving averagesTrend Repaints
Updated 3 years ago · None stated GitHub repository of SRI Indicator ft. MSB

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers