OPEN-SOURCE SCRIPT

Market Force Oscillator Elite Pro

536
Market Force Oscillator Elite Pro is a single-pane oscillator that combines acceleration, volume-weighted force, trend alignment, divergence logic, and multi-method cycle diagnostics.

How components work together:
- Force engine estimates buy/sell pressure from candle position, relative volume weighting, and optional momentum factor.
- Oscillator core combines acceleration with force and normalizes using robust scale logic (stdev with MAD fallback when stdev is unstable).
- Dynamic levels compute adaptive OB/OS using ATR percent with timeframe-aware auto calibration and a soft-cap transform.
- Trend filter compares LTF and HTF EMA direction before allowing directional signals.
- Signal quality gate combines oscillator magnitude, relative volume, and optional alignment weighting.
- Divergence module uses confirmed pivots with one-shot/cooldown modes.
- Cycle module computes Original Ehlers, Zero-Crossing, Peak-to-Peak, Autocorrelation, and Composite estimates.

What is new/original in this version (from current code):
- Multi-method cycle detector with Composite mode.
- Timeframe-aware ATR auto calibration for dynamic OB/OS behavior.
- ATR soft-cap compression to avoid overly wide bands on higher timeframes.
- Robust oscillator normalization with MAD fallback when stdev becomes outlier-like.
- Oscillator-pane marker anchoring (`location.absolute`) to prevent autoscale distortion from price-anchored shapes.

How to Use quickstart
1. Add the script to chart and start with `Preset = Balanced`.
2. Set `Cycle Detector Mode = Composite` for combined cycle diagnostics.
3. Enable `Show Detected Cycle (data window)` to inspect cycle outputs.
4. Enable advanced settings only if you need to tune quality gates, trend filter, and cooldowns.
5. Configure alerts from the 5 built-in alert conditions after threshold tuning.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.