OPEN-SOURCE SCRIPT
已更新 Chimera [theUltimator5]

In myth, the chimera is an “impossible” hybrid—lion, goat, and serpent fused into one—striking to look at and formidable in presence. The word has come to mean a beautiful, improbable union of parts that shouldn’t work together, yet do.
Chimera is a dual-mode market context tool that blends a multi-input oscillator with classic ADX/DI trend strength, plus optional multi-timeframe “gap-line” tracking. Use it to visualize regime (trend vs. range), momentum swings around an adaptive midline, and higher timeframe (HTF) reference levels that auto-terminate on touch/cross.
Modes
1) Oscillator view
A smoothed composite of five common inputs—RSI, MACD (oscillator), Bollinger position, Stochastic, and an ATR/DI-weighted bias. Each is normalized to a comparable 0–100 style scale, averaged, and plotted as a candle-style oscillator (short vs. long smoothing, wickless for clarity). A dynamic midline with standard-deviation bands frames neutral → bearish/bullish zones. Colors ramp from neutral to your chosen Oversold/Overbought endpoints; consolidation can override to white.
Here is a description of the (5) signals used to calculate the sentiment oscillator:
All five are normalized and averaged into one composite, then smoothed (short/long) and compared to an adaptive midline with bands.

2) ADX view
Shows ADX, +DI, –DI with user-defined High Threshold. Transparency and color shift with regime. When ADX is strong, a directional “fire/ice” gradient fills the area between ADX and the high threshold, biased toward the dominant DI; when ADX is weak, a soft white fade highlights low-trend conditions.

HTF gap-line tracking (optional; both modes)

Confirmation / repaint notes
Visual cues & effects
Inputs (high-level)
Alerts (built-in)
Alerts evaluate on the close of the relevant timeframe.
How to read it (quick guide)
The uniqueness from this indicator comes from multiple areas:
1. A unique multi-timeframe algorithm detects gap fill zones and plots them on the chart.
2. Visual effects for both visual modes were hand crafted to provide a visually stunning and intuitive interface.
3. The algorithm to determine sentiment uses a unique blend of weight and sensitivity adjustment to create a plot with elastic upper and lower bounds based off historical volatility and price action.
Chimera is a dual-mode market context tool that blends a multi-input oscillator with classic ADX/DI trend strength, plus optional multi-timeframe “gap-line” tracking. Use it to visualize regime (trend vs. range), momentum swings around an adaptive midline, and higher timeframe (HTF) reference levels that auto-terminate on touch/cross.
Modes
1) Oscillator view
A smoothed composite of five common inputs—RSI, MACD (oscillator), Bollinger position, Stochastic, and an ATR/DI-weighted bias. Each is normalized to a comparable 0–100 style scale, averaged, and plotted as a candle-style oscillator (short vs. long smoothing, wickless for clarity). A dynamic midline with standard-deviation bands frames neutral → bearish/bullish zones. Colors ramp from neutral to your chosen Oversold/Overbought endpoints; consolidation can override to white.
Here is a description of the (5) signals used to calculate the sentiment oscillator:
- RSI (14): Measures recent momentum by comparing average gains vs. losses. High = strength after advances; low = weakness after declines. (Z-score normalized to 0–100.)
- MACD oscillator (12/26/9): Uses the difference between MACD and its signal (histogram) to gauge momentum shifts. Positive = bullish tilt; negative = bearish. (Z-score normalized.)
- Bollinger Bands position (20, 2): Locates price within the bands (0–100 from lower → upper). Near upper suggests strength/expansion; near lower suggests weakness/contraction. (Then normalized.)
- Stochastic (14, 3, 3): Shows where the close sits within the recent high-low range, smoothed via %D. Higher values = closes near highs; lower = near lows. (Scaled 0–100.)
- ATR/DI composite (14): Volatility-weighted directional bias: (+DI − −DI) amplified by ATR as a % of price and its relative average. Positive = bullish pressure with volatility; negative = bearish. (Rank/scale normalized.)
All five are normalized and averaged into one composite, then smoothed (short/long) and compared to an adaptive midline with bands.
2) ADX view
Shows ADX, +DI, –DI with user-defined High Threshold. Transparency and color shift with regime. When ADX is strong, a directional “fire/ice” gradient fills the area between ADX and the high threshold, biased toward the dominant DI; when ADX is weak, a soft white fade highlights low-trend conditions.
HTF gap-line tracking (optional; both modes)
- Detects “gap-like” reference levels after weak-trend consolidation flips into a sudden DI jump.
- Anchors a line at the event bar’s open and auto-terminates upon first touch/cross (tick-size tolerance).
- Auto-selects up to three higher timeframes suited to your chart resolution and prints non-overlapping lines with labels like 1H / 4H / 1D. Lower-priority duplicates are suppressed to reduce clutter.
Confirmation / repaint notes
- Signals and lines finalize on bar close of the relevant timeframe.
- HTF elements update only on the HTF bar close. During a forming bar they may appear transiently.
- Line removal finalizes after the bar that produced the touch/cross closes.
Visual cues & effects
- Oscillator candles: Open/High = long smoothing; Low/Close = short smoothing (no wicks).
- Adaptive bands: Midline ± StdDev Multiplier × stdev of the blended series.
- Consolidation tint: Optional white backdrop/candles when the consolidation condition is true (balance + low ADX).
- Breakout VFX (optional): With strong DI/ADX and Bollinger breaks, renders a subtle “fire” flare above upper-band thrusts or “ice” shelf below lower-band thrusts.
Inputs (high-level)
- Visual Style: Oscillator or ADX.
- General (Oscillator): Lookback Period, Short/Long Smoothing, Standard Deviation Multiplier.
- Color (Oscillator): Oversold/Overbought colors for gradient endpoints.
- Plot (Oscillator): Show Candles, Show Slow MA Line, Show Individual Component (RSI/MACD/BB/Stoch/ATR).
- Table (Oscillator): Show Information Table & position (compact dashboard of component values + status).
- ADX / Gaps / VFX (both modes): ADX High Threshold, Highlight Backgrounds, Show Gap Labels, Visual Overlay Effects, and color choices for current-TF & HTF lines.
- HTF selection: Automatic ladder (3 tiers) based on your chart timeframe.
Alerts (built-in)
- Buy Signal – Primary: Oscillator exits oversold.
- Sell Signal – Primary: Oscillator exits overbought.
- Gap Fill Line Created (Any TF)
- Gap Fill Line Terminated (Any TF)
- ADX Crossed ABOVE/BELOW Low Threshold
- ADX Crossed ABOVE/BELOW High Threshold
- Consolidation Started
Alerts evaluate on the close of the relevant timeframe.
How to read it (quick guide)
- Pick your lens: Oscillator for blended momentum around an adaptive midline; ADX for trend strength and DI skew.
- Watch extremes & mean re-entries (Oscillator): Approaches to the top/bottom band show persistent momentum; returns toward the midline show normalization.
- Check regime (ADX): Below Low = low-trend; above High = strong trend, with “fire/ice” bias toward +DI/–DI.
- Track gap lines: Fresh labels mark new reference levels; lines auto-remove on first interaction. HTF lines add context but finalize only on HTF close.
The uniqueness from this indicator comes from multiple areas:
1. A unique multi-timeframe algorithm detects gap fill zones and plots them on the chart.
2. Visual effects for both visual modes were hand crafted to provide a visually stunning and intuitive interface.
3. The algorithm to determine sentiment uses a unique blend of weight and sensitivity adjustment to create a plot with elastic upper and lower bounds based off historical volatility and price action.
發行說明
Minor updates.-Fixed bug with background highlight not working on the sentiment mode
-Updated code to turn off min/mid/top lines in oscillator mode when both lines and candles are disabled.
發行說明
Added volume voids and low volume zone detection logic. Disabled by default. You should not see any difference to your chart unless you specifically enable the void detection logic.發行說明
Added tooltips to user input variable that didn't have any. This was requested in the comments and was a great suggestion, so I added it.發行說明
Added user inputs to control the (5) oscillator signals.Added additional visual options to oscillator display. You can now choose to see the fast and slow lines, have a fill between them, or the default 'DNA' style candles.
發行說明
Reinstated bull/bear crosses on overlay.Removed alternate slow MA options since it exceeds max plot count. Concessions need to be made to include all capabilities.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。