OPEN-SOURCE SCRIPT

Chimera [theUltimator5]

316
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:
  1. 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.)
  2. 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.)
  3. 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.)
  4. 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.)
  5. 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)
  1. Visual Style: Oscillator or ADX.
  2. General (Oscillator): Lookback Period, Short/Long Smoothing, Standard Deviation Multiplier.
  3. Color (Oscillator): Oversold/Overbought colors for gradient endpoints.
  4. Plot (Oscillator): Show Candles, Show Slow MA Line, Show Individual Component (RSI/MACD/BB/Stoch/ATR).
  5. Table (Oscillator): Show Information Table & position (compact dashboard of component values + status).
  6. ADX / Gaps / VFX (both modes): ADX High Threshold, Highlight Backgrounds, Show Gap Labels, Visual Overlay Effects, and color choices for current-TF & HTF lines.
  7. 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.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.