OPEN-SOURCE SCRIPT

Multi-Factor Consensus

457
MFC (Market Field Coherence)
A Triumph of Complexity: The Fusion of Three Professional Engines to Visualize the Unified

Mind of the Market

█ OVERVIEW: BEYOND THE INDICATOR
This is not another lagging indicator. This is a command suite.
MFC (Market Field Coherence) is not a single tool, but a seamless integration of three professional-grade, independent analytical engines fused into a singular, awe-inspiring system. It's a masterwork of signal processing and applied mathematics designed to visualize the invisible—the collective, underlying state of the market.

It moves beyond the simplistic analysis of individual price bars to measure something far more profound: the degree of emergent coherence across an entire ensemble of market oscillators. While traditional tools see the market as a series of disconnected data points, MFC sees it as a dynamic, fluctuating field of forces. By deploying its three specialized engines, MFC identifies moments of critical transition when disparate, chaotic market inputs converge into a single, unified, and tradable state of being. It measures the very instant the "noise" becomes a "symphony," and generates signals only when all three engines are in unanimous agreement.

█ A TRINITY OF SYSTEMS: THREE INDICATORS IN ONE
MFC's unparalleled precision comes from its unique tripartite architecture. It is not a monolithic tool. It is a fusion of three distinct, professional-grade analytical engines, each performing a critical and independent function. Their synergy is what produces the high-quality, filtered signals and the profound analytical clarity.

ENGINE 1: The Quantum Coherence Engine
The heart of the system. This is a pure regime-detection indicator. Its sole purpose is to perform the heavy lifting of converting the oscillator ensemble into complex-plane phasors and calculating the two most critical metrics: the Coherence Index (CI) and the Dominant Phase. It constantly works to answer the primary question: "How unified is the market, and in which direction is it leaning?"

ENGINE 2: The Multi-Layer Confirmation Matrix
A high CI from the first engine is not enough. This second, independent engine acts as the ultimate quality filter. It is, in essence, a sophisticated confirmation indicator that runs two rigorous, non-negotiable checks: the Phase-Lock Detector (is the alignment tight enough?) and the Pairwise Entanglement Web (is the alignment broad-based and not a fluke?). This is a purely logical system designed to reject ambiguity, eliminate false positives, and validate the findings of the Coherence Engine. It answers the crucial follow-up question: "Is this detected coherence real, or is it a statistical ghost?"

ENGINE 3: The Advanced Visualization Suite
Raw data is meaningless without interpretation. This third engine is a full-fledged visual indicator in its own right, dedicated to translating the abstract mathematics from the other two engines into an intuitive, multi-dimensional language. Featuring the revolutionary Circular Orbit Plot, the atmospheric Quantum Field Cloud, and deep-dive analytical grids, it allows you to see the market's state in a way that numbers alone never could. It answers the final question: "What does this confirmed state of coherence actually look like?"

An Ignition Signal only fires when all three of these independent systems reach a unanimous conclusion. This is the source of MFC's power and precision.

█ THE PHILOSOPHY & THEORETICAL FOUNDATION
MFC is built upon a synthesis of advanced mathematical frameworks, each chosen for its unique ability to extract a deeper layer of truth from market data. Their combination across the three engines creates a system far greater than the sum of its parts.

1. The Kernel: Gaussian-Weighted Smoothing for Intelligent Lag Reduction
Simple and Exponential Moving Averages are primitive tools. MFC's engines reject them. We employ a Gaussian Kernel for all internal smoothing. This "bell curve" weighting assigns the most significance to the most recent data, gracefully decaying influence for older data. The result is a beautifully smooth yet highly responsive measure of coherence, fundamentally reducing the lag that plagues other systems.

The formula for the weight w at a distance i from the center μ is:
w(i) = exp(- (i - μ)² / (2 * σ²))

2. The Lens: Sigmoid Normalization for Non-Linear State Definition
To compare an RSI of 80 to a MACD of 0.5, MFC utilizes the robust and mathematically elegant Sigmoid (Logistic) Function. Its non-linear, "S-shaped" curve squashes any input into a perfect, bounded range, creating extreme sensitivity near the neutral midpoint and gracefully compressing values at the extremes. This provides a crystal-clear distinction between "weak," "strong," and "extreme" conditions.

f(x) = 1 / (1 + exp(-k * x))

3. The Engine: Complex-Plane Phasors for Coherence Measurement
This is the heart of Engine 1. Each normalized oscillator is transformed from a single scalar value into a two-dimensional vector (a phasor) in the complex plane, capturing its magnitude (strength) and its phase angle (position and velocity).
Resultant Vector (R) = Σ e^(iφₙ) = Σ cos(φₙ) + i·Σ sin(φₙ)
The Coherence Index (CI) is the magnitude of this resultant vector, normalized by the number of oscillators N:

CI = |R| / N

This mathematical blending—Gaussian smoothing for clean data, Sigmoid normalization to define state, and Complex-Plane Analysis to measure collective coherence—is what allows MFC to generate insight that is simply impossible to achieve with conventional tools.

█ THE INPUTS MENU: YOUR COMMAND & CONTROL
Every parameter is exposed, allowing you to fine-tune MFC's three engines to any instrument, timeframe, or trading style. Here is an exhaustive guide:

Oscillator Settings (Engine 1)
Enable/Disable Toggles & Lengths: Construct the perfect ensemble for your market. Shorter lengths for scalping (e.g., 5m chart), longer lengths for swing trading (e.g., 4H chart). Disable any oscillator that consistently acts as an outlier to reduce noise.
Normalization Anchors: Define the "extreme" boundaries for the Sigmoid function. Widen these anchors (e.g., RSI 80/20) for highly volatile assets to better capture the larger price swings.

Coherence & Confirmation Settings (Engines 1 & 2)
CI Smoothing Window: Controls the Gaussian Kernel for the final Coherence Index. A short window (2-4) offers a fast reaction for scalpers. A longer window (5-10) creates a smoother CI line for swing traders.

Ignition Threshold: The CI level needed to activate a signal check. A lower threshold (0.70) generates more signals. A higher threshold (0.85) produces fewer, but extremely high-conviction signals.

Phase Lock Tolerance & Min Entangled Pairs: These are the core parameters for the Confirmation Engine (Engine 2). Use tighter tolerances (e.g., 25°) and a higher number of pairs (e.g., 5+) to demand an incredibly high standard for signal confirmation.
█ THE DASHBOARD: YOUR QUANTITATIVE READOUT
The dashboard provides a real-time, numerical dissection of the market field, summarizing the outputs of all three engines.

CI (Coherence Index): What it is: The master metric from Engine 1. How to interpret: < 40% (Chaos): The market is disjointed. 40-70% (Coherent): A regime is forming. > 70% (Ignition Zone): High consensus.

Dom Phase (Dominant Phase): What it is: The "average" direction from Engine 1. How to interpret: The arrow gives the immediate directional bias.

Field Strength: What it is: CI × Average Amplitude. How to interpret: Measures alignment with conviction. A high Field Strength is the signature of a powerful, aggressive trend.

Entangled Pairs & Phase Lock: What they are: The direct readouts from the Confirmation Engine (Engine 2). How to interpret: The 🔒 symbol and a high pair count are the final "green lights" before a signal can be generated.

State: What it is: A real-time classification of the market's condition based on the combined output of all engines. How to interpret:
🚀 IGNITION: All three engines are in unanimous, bullish/bearish agreement.
⚡ COHERENT: The trend is healthy and coherence is stable.
💥 COLLAPSE: The regime's integrity is compromised.
🌀 CHAOS: The market is unpredictable.


Collapse Risk: What it is: A 0-100% gauge measuring the rate of recent CI decay. How to interpret: A leading indicator for trend exhaustion. A value rising above 50% is a powerful signal to tighten stops.

█ THE VISUALS: THE ART OF ANALYSIS (ENGINE 3)
The Visualization Suite (Engine 3) translates the complex calculations into an intuitive visual language. Learning to read these displays is like learning to see the market in a new dimension.

The Circular Orbit Plot: The soul of MFC. A polar grid showing each oscillator as a labeled vector.
Angle = Phase, Length = Amplitude. Watch for Convergence: when scattered vectors cluster into a single quadrant, you are witnessing the birth of a new regime in real-time.


The Quantum Field Cloud: An atmospheric overlay on the price chart.
Color = Dominant Phase (Green for bullish, Red for bearish). Opacity = Coherence Index. A dense, opaque cloud signifies an extremely strong, coherent regime.


The Entanglement Web Matrix & Phase-Time Heat Map: Deep-dive analytical tools. Use the Web to diagnose the quality and breadth of coherence. Use the Heat Map to identify historical patterns and pivotal moments of unified market phase.

█ THE DEVELOPMENT: A QUEST FOR TRUTH
MFC was not created to be just another tool. It was engineered to solve the fundamental ambiguity of technical analysis by creating a system of checks and balances between three specialized engines. I sought to replace subjective interpretation with objective, multi-stage mathematical measurement. The choice of Gaussian kernels, Sigmoid functions, and complex-plane analysis was a deliberate decision to embrace the multi-dimensional reality of market dynamics rather than simplifying it into a single, misleading number.

This is a tool for the discerning trader who understands that the market is not a random walk, but a complex, adaptive system. MFC provides a new set of senses to perceive the behavior of that system.

"The financial markets are generally unpredictable. So that one has to have different scenarios... The idea that you can actually predict what's going to happen contradicts my way of looking at the market."
— George Soros

MFC does not predict. It measures. Its three engines work in concert to provide a high-resolution image of the market's current state, allowing you to align yourself with moments of profound clarity and step aside during times of absolute chaos. Trade the coherence, not the forecast.

█ IMPORTANT WARNINGS & DISCLAIMER
This tool is designed for analytical and informational purposes. It identifies periods of high statistical confluence based on the behavior of technical oscillators. This is not a "signal" service and provides no financial advice.

RISK OF LOSS: All trading and investment activities involve substantial risk of loss. Do not trade with capital you cannot afford to lose.

NO GUARANTEE: This indicator does not guarantee profits or prevent losses. Past performance is not indicative of future results.

USE CONFIRMATION: "Ignition" markers denote a unanimous conclusion from all three internal engines, not explicit instructions to buy or sell. They should be used as one component within a comprehensive trading plan.

REGIME DEPENDENT: The effectiveness of this tool is dependent on market conditions. It performs best in markets with clear cyclical behavior.

Taking you to school. - Dskyz, Trade with probability. Trade with consensus. Trade with MFC.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.