OPEN-SOURCE SCRIPT
Tragad00

TanTechTrades — Trendilo with Moving Average + Divergences (Tragad00)
Inspired by Trendilo, this oscillator reworks the original logic and adds:
A selectable Moving Average (SMA/EMA/WMA/SMMA/VWMA) applied to the oscillator itself
Adaptive bands for overbought/oversold zones
Regular bullish & bearish divergence detection with labels
A full set of alert conditions for signals and state changes
What it does
This indicator transforms price into an ALMA-smoothed percent-change oscillator and compares it to an adaptive volatility band:
Oscillator (avpch)
Computes % change of your chosen Source, optionally smoothed, then smooths it again with ALMA (length, offset, sigma).
Adaptive bands (±rms)
Uses a root-mean-square of the oscillator over a band length (Lookback or custom) scaled by Band Multiplier.
Values above +rms suggest overbought pressure; below −rms suggest oversold pressure.
Trend coloring
Line (and optional bars) turn lime when avpch > +rms, red when avpch < −rms, and gray otherwise.
Optional fill highlights the dominant side.
Overlay MA on the oscillator
A selectable MA of the oscillator (maPlot) helps time signals relative to the Trendilo line.
Regular Divergences
Bullish: price makes a lower low while the oscillator makes a higher low.
Bearish: price makes a higher high while the oscillator makes a lower high.
Lookback windows are configurable and divergence labels are plotted on the oscillator.
Signals & how to read them
Trend Bias
Bull Zone: avpch above +rms (lime)
Bear Zone: avpch below −rms (red)
Neutral: between the bands (gray)
Cross Signals
Long Entry: MA crosses above the Trendilo line (maPlot ↑ over avpch)
Short Entry: MA crosses below the Trendilo line (maPlot ↓ under avpch)
Midline Cross: avpch crossing 0 flags shifts in momentum regime
Divergences
Bullish Divergence label (“Bull”) may mark potential bottoms
Bearish Divergence label (“Bear”) may mark potential tops
Tip: Combine divergence with a subsequent midline cross or MA cross for confirmation.
Alerts included (ready to use)
Overbought / No Longer Overbought
Oversold / No Longer Oversold
Long Entry (MA crosses above Trendilo)
Short Entry (MA crosses below Trendilo)
Midline Cross Up / Midline Cross Down
Bullish Divergence / Bearish Divergence
Set alerts from the “Conditions” menu using the titles above.
Inputs
Core
Source (default: Close)
Smoothing (pre-change smoothing)
Lookback (ALMA length)
ALMA Offset, ALMA Sigma
Band Multiplier
Custom Band Length? + Custom Band Length
Display: Highlight, Fill, Bar Color
Oscillator MA
MA Length
MA Type: SMA / EMA / WMA / SMMA (RMA) / VWMA
Divergences
Pivot Lookback Left / Right
Max/Min Lookback Range (window for valid pivots)
Plot Bullish Divergence / Plot Bearish Divergence
Suggested workflow
Trend context: Use band color (lime/red) to gauge dominant pressure.
Timing: Look for MA ↔ Trendilo crosses in the direction of the current zone.
Reversals: Watch for divergence labels; seek confirmation via midline (0) cross or a band exit.
Risk: Overbought/oversold alerts can warn of exhaustion—tighten stops or scale out.
Notes & credits
Built by TanTechTrades.
Inspired by the Trendilo concept; this version focuses on an ALMA-smoothed percent-change oscillator with adaptive RMS bands, an oscillator MA, and regular divergence detection.
This is a tool, not financial advice. Always combine with price action, structure, and risk management.
Inspired by Trendilo, this oscillator reworks the original logic and adds:
A selectable Moving Average (SMA/EMA/WMA/SMMA/VWMA) applied to the oscillator itself
Adaptive bands for overbought/oversold zones
Regular bullish & bearish divergence detection with labels
A full set of alert conditions for signals and state changes
What it does
This indicator transforms price into an ALMA-smoothed percent-change oscillator and compares it to an adaptive volatility band:
Oscillator (avpch)
Computes % change of your chosen Source, optionally smoothed, then smooths it again with ALMA (length, offset, sigma).
Adaptive bands (±rms)
Uses a root-mean-square of the oscillator over a band length (Lookback or custom) scaled by Band Multiplier.
Values above +rms suggest overbought pressure; below −rms suggest oversold pressure.
Trend coloring
Line (and optional bars) turn lime when avpch > +rms, red when avpch < −rms, and gray otherwise.
Optional fill highlights the dominant side.
Overlay MA on the oscillator
A selectable MA of the oscillator (maPlot) helps time signals relative to the Trendilo line.
Regular Divergences
Bullish: price makes a lower low while the oscillator makes a higher low.
Bearish: price makes a higher high while the oscillator makes a lower high.
Lookback windows are configurable and divergence labels are plotted on the oscillator.
Signals & how to read them
Trend Bias
Bull Zone: avpch above +rms (lime)
Bear Zone: avpch below −rms (red)
Neutral: between the bands (gray)
Cross Signals
Long Entry: MA crosses above the Trendilo line (maPlot ↑ over avpch)
Short Entry: MA crosses below the Trendilo line (maPlot ↓ under avpch)
Midline Cross: avpch crossing 0 flags shifts in momentum regime
Divergences
Bullish Divergence label (“Bull”) may mark potential bottoms
Bearish Divergence label (“Bear”) may mark potential tops
Tip: Combine divergence with a subsequent midline cross or MA cross for confirmation.
Alerts included (ready to use)
Overbought / No Longer Overbought
Oversold / No Longer Oversold
Long Entry (MA crosses above Trendilo)
Short Entry (MA crosses below Trendilo)
Midline Cross Up / Midline Cross Down
Bullish Divergence / Bearish Divergence
Set alerts from the “Conditions” menu using the titles above.
Inputs
Core
Source (default: Close)
Smoothing (pre-change smoothing)
Lookback (ALMA length)
ALMA Offset, ALMA Sigma
Band Multiplier
Custom Band Length? + Custom Band Length
Display: Highlight, Fill, Bar Color
Oscillator MA
MA Length
MA Type: SMA / EMA / WMA / SMMA (RMA) / VWMA
Divergences
Pivot Lookback Left / Right
Max/Min Lookback Range (window for valid pivots)
Plot Bullish Divergence / Plot Bearish Divergence
Suggested workflow
Trend context: Use band color (lime/red) to gauge dominant pressure.
Timing: Look for MA ↔ Trendilo crosses in the direction of the current zone.
Reversals: Watch for divergence labels; seek confirmation via midline (0) cross or a band exit.
Risk: Overbought/oversold alerts can warn of exhaustion—tighten stops or scale out.
Notes & credits
Built by TanTechTrades.
Inspired by the Trendilo concept; this version focuses on an ALMA-smoothed percent-change oscillator with adaptive RMS bands, an oscillator MA, and regular divergence detection.
This is a tool, not financial advice. Always combine with price action, structure, and risk management.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。