OPEN-SOURCE SCRIPT
Güncellendi _Trinity Matrix_

Short description
A structured multi-layer oscillator built around a refined Trinity Wave core, MFI regime columns, confidence scoring, divergence filtering, and TF / HTF context.
Full publication description
Trinity Matrix is a multi-layer oscillator designed to read continuation, reversal quality, regime strength, and divergence context inside a single panel.
It combines a refined Trinity Wave core, MFI regime structure, confidence scoring, mode-based signal filtering, divergence logic, and a compact TF / HTF dashboard into a unified workflow.
The name is a nod to layered market context: not a single signal, but a structured matrix of wave state, regime strength, confidence, and divergence.
Core Structure
Trinity Wave core with additional smoothing and soft limiting to reduce extreme spikes while preserving directional character
MFI Columns to separate baseline participation from stronger expansion phases
Strong zone highlighting to visually distinguish stronger bullish and bearish regime expansion
Confidence engine that blends Trinity Wave continuation and MFI continuation into a normalized directional score
Signal modes for different levels of selectivity: None, Early, Standard, and Strict
ATR-gated divergence filtering for cleaner divergence structures
TF / HTF confidence dashboard for comparing active timeframe conviction against a selected higher timeframe
Built-in alerts for buy, strong buy, elite buy, sell, strong sell, and elite sell conditions
How to Read It
Trinity Wave is the main directional layer. Green indicates bullish state, red indicates bearish state.
MFI Columns show regime participation.
White columns = baseline MFI flow
Shiny white columns = stronger bullish expansion
Orange columns = stronger bearish expansion
Average MFI bands help show where positive or negative regime strength is building relative to recent memory.
Confidence Dashboard summarizes directional conviction on both the active timeframe and the selected higher timeframe.
Row 1 = TF / HTF labels
Row 2 = confidence percentage
Row 3 = qualitative tag: Weak / Moderate / Strong
Signal Modes
None hides signal output
Early is faster and more aggressive
Standard is more balanced
Strict applies the strongest filtering and usually produces the fewest signals
Divergence Module
The divergence layer uses Trinity Wave turning points, confidence filtering, pivot distance control, and optional ATR gate filtering.
It can draw on the oscillator and, if enabled, on price as well.
The goal is not to maximize divergence count, but to keep the structures more selective and readable.
Alerts
This script includes separate alert conditions for:
TW Buy
TW Buy Strong
TW Buy Elite
TW Sell
TW Sell Strong
TW Sell Elite
Suggested Use
Trinity Matrix works best as a structured reading tool rather than a one-click decision engine.
A practical workflow is:
Read Trinity Wave direction and location
Check whether MFI is in baseline flow or strong expansion
Use confidence and HTF context to judge continuation or reversal quality
Use signal mode based on your desired aggressiveness
Use divergence as a contextual filter, not as a standalone trigger
Important Notes
Signal frequency changes significantly with the selected signal mode
HTF confidence reflects the live state of the selected higher timeframe
Divergence output is intentionally filtered and selective
This is an indicator framework, not a full trading strategy
Attribution
Core WaveTrend-style formulation was adapted from the open-source WaveTrend Oscillator by LazyBear, then extended with additional smoothing, soft limiting, MFI regime logic, confidence scoring, divergence filtering, dashboard structure, and alert workflow.
Acknowledgement
Built through many rounds of testing, refinement, and iteration — with a little help from ChatGPT and CodeGPT along the way.
Disclaimer
For educational and analytical use only. Not financial advice.
Sürüm Notları
This update is a major visual and usability refresh for Trinity Matrix.The script now offers a cleaner reading experience, a more compact dashboard, improved MFI presentation, and a clearer signal flow for faster decision-making.
What’s new
Fully redesigned Trinity Matrix dashboard with a cleaner and more compact visual structure.
Added optional Compare Mode with two side-by-side panels for multi-pair or multi-timeframe analysis.
Panel 1 follows the active chart, while Panel 2 can track a user-selected pair and timeframe.
Simplified dashboard structure for faster state reading:
Pair, Timeframe, Trend, Confidence, MFI, Signal
Added persistent last-signal memory to the dashboard with a minimal dot-based signal display.
Improved MFI readability with cleaner polarity-based coloring and refined average band behavior.
Refined dashboard layout, spacing, alignment, and publication-facing visuals for a more polished experience.
Sürüm Notları
The signal structure has been optimized. Overbought and oversold zones have been made more distinct. Trinity Wave has been adjusted to remain within the boundaries of these zones. The numbers 1, 2, and 3 indicate signal confirmation levels; 1 represents early/weak confirmation, 2 represents medium confirmation, and 3 represents high confirmation.Sürüm Notları
TW update is live.This version brings minor bug fixes and a subtle Fibonacci touch for better consistency.
From the first version to now, the code has been evolving in a really positive direction. Thanks to everyone following the process.
Sürüm Notları
Patch Notes — Trinity Matrix UpdateTrinity Wave has been substantially refined to deliver a smoother, more stable momentum structure with cleaner directional transitions.
Trinity Wave engine recalibrated
The previous TW smoothing structure has been replaced with a Double SuperSmoother-based model.
This reduces small jagged movements and filters out minor false micro-turns, resulting in a cleaner and more composed wave behavior.
New default Trinity Wave profile
TW Length: 13
Signal Length: 8
Soft compression range: 34 → 70
These values now form the new default balance between smoothness, readability, and momentum sensitivity.
TW Length and Signal Length added to the settings panel
Users can now fine-tune the main wave sensitivity and the signal wave distance directly from the indicator settings.
Signal Wave added
A new optional Signal Wave layer has been introduced beneath Trinity Wave controls.
When enabled, it displays both:
the signal lane,
and the dynamic fill area between the main TW line and the signal lane.
This creates a clearer visual reading of momentum expansion, contraction, and directional shifts.
Divergence module retired
The previous divergence structure has been removed to keep the indicator aligned with the newly refined Trinity Wave behavior and to avoid lower-quality divergence outputs under the updated smoothing model.
Dashboard simplified
The former SIGNAL row has been removed from the dashboard, as older signal states could remain displayed long after they were no longer contextually relevant.
The dashboard now focuses only on current-state information:
Pair
Timeframe
Trend
Confidence
MFI
Work on the new signal engine is still in progress.
A Note for Our Followers
Going forward, our public indicator lineup will remain focused on two core projects only: Neo and Trinity.
We do not plan to release additional standalone scripts beyond these two.
Instead, our goal is to keep refining, testing, and expanding Neo and Trinity through meaningful updates, stronger internal logic, and more polished user experience.
Both indicators will continue to evolve over time as we push them to a higher level with each new iteration.
Your support, feedback, and continued interest mean a lot to us.
Thank you for being part of this journey.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.