PrismEngine
- Indicatori
- Versione: 1.0
# PRISM — Adaptive Regime Confluence Engine
**Professional multi-factor trading indicator for MetaTrader 5**
---
## Overview
PRISM is a non-repainting, closed-bar confluence engine that classifies market regime, scores trade setups across 18 independent factors, and projects a full trade plan (entry / SL / TP1–TP3) directly on the chart. It combines dual-hypothesis arbitration (trend vs mean-reversion), causal trust grading, and self-learning factor weights — all in a single indicator with a built-in sci-fi HUD dashboard.
---
## Key Features
### Engine
- **18-factor confluence model** — MA, ADX, EMA slope, MACD, VWAP, Bollinger %B, Ichimoku, Z-score, RSI, Stochastic, Volume, Multi-TF agreement, Market structure, BBI, CCI, Donchian, OBV, CMF
- **Regime detection** — TRENDING / MEAN-REVERT / RANGING with stability metrics, switch count, and entropy
- **Dual-hypothesis arbitration** — trend and reversion paths scored separately, then arbitrated by regime + trust
- **Self-learning weights** — factor skill, decay, Pareto front, Bayesian confidence; persists across sessions
- **Redundancy de-weighting** — correlation matrix auto-suppresses overlapping factors
### Signals & Risk
- **Qualified signal gate** — threshold, min trust, confirmation bars, hysteresis, min quality, min agreement; blocks spread / news / quiet-hour noise
- **Trade plan on chart** — entry, SL (ATR-based), TP1/TP2/TP3, R-multiples, projected equity path
- **Risk helpers** — risk-based lot size, Kelly fraction (half-Kelly), margin estimate
- **Rolling statistics** — Win rate, Profit factor, Sharpe, Sortino (per-bar update, non-repainting)
### Dashboard (HUD)
- Live confluence score, trust, conviction, structure bias
- Factor table with sparklines, skill, correlation Δ, contribution
- Multi-timeframe radar (6 TFs), session / direction win-rate bars
- Signal log, market levels (PDH/PDL/PWH/PWL), session ranges
- Drag / collapse / scale; 3 UI modes (Minimal / Standard / Analyst)
- Theme presets: Tulip, Cyber, Mono, and more
### Alerts & Export
- Popup, push, email, custom sound per alert type
- Daily / weekly HTML report export (light or dark theme)
- CSV factor history with atomic write
- Keyboard shortcuts: **P** cycle preset, **A** cycle adapt, **S** sound test, **1/2/3** UI mode
### presets
| Preset | Style |
|--------|--------|
| Custom | Use your inputs |
| Scalping | M1–M15 |
| Intraday | M30–H1 |
| Swing | H4–D1 |
| Gold | Gold intraday |
| Conservative | Lower frequency, higher threshold |
---
## Technical Highlights
- **Non-repainting** — closed-bar only; buffers never rewritten on forming bar
- **30 indicator buffers** — buy/sell arrows, entry/SL/TP lines, score, regime, trust, rolling stats
- **Performance-conscious** — dirty-flag HUD redraw, downsampled glow effects, throttled animation
- **6 languages** — English, 中文, Русский, Español, Deutsch, 日本語
- **State persistence** — panel position, preset, adapt, UI mode, report day saved to CSV
- **Broker-agnostic** — netting & hedging; works on forex, metals, indices, crypto (as offered by your broker)
---
## Who Is It For
- Discretionary traders who want a **single glance** at regime + confluence + plan
- System traders validating **factor edge** before coding an EA
- Anyone tired of repaint-heavy “magic” indicators — PRISM shows its math
---
## Requirements
- MetaTrader 5 (build 3xxx+)
- No DLLs, no external dependencies
- Sound alerts use standard `Sounds\` folder (optional)
---
## Notes
- Default sound: `alert.wav` (included with MT5 terminal)
- Telegram / WebRequest is not available inside indicators (MT5 restriction) — use a Script/EA if you need push
- Past performance in the Strategy Tester does not guarantee future results
---
**PRISM v1.0 — Adaptive Regime Confluence Engine**
*18 factors · self-learning · non-repainting · full trade plan · dashboard*
