OPEN-SOURCE SCRIPT
LWTG MITS Strategy

**Title:** LWTG MITS Strategy
**Description:**
LWTG MITS (Multi-Indicator Trading System) is a rules-based mean-reversion and trend-following scoring engine designed for micro futures trading on prop firm accounts. It evaluates nine independent market conditions simultaneously and only enters a trade when a configurable minimum number of those conditions align — creating a high-confluence filter that reduces noise and improves signal quality.
**How the scoring system works**
Each bar, the script evaluates nine confluence factors across both long and short directions. Each factor that aligns with the potential trade direction adds one point to the score. A trade signal fires only when the score meets or exceeds the minimum threshold set in the inputs. The nine factors are:
1. **EMA Alignment** — Price relationship to short and long exponential moving averages confirms the directional bias
2. **VWAP Position** — Price position relative to the Volume Weighted Average Price filters entries against the intraday mean
3. **Momentum** — A custom momentum calculation confirms the strength of the current directional move
4. **Volume Confirmation** — Current bar volume relative to a rolling average confirms institutional participation
5. **Candlestick Pattern** — Engulfing and reversal patterns at key levels add a price action confirmation layer
6. **Volatility Filter** — ATR-based volatility measurement ensures entries occur in tradeable market conditions, not during dead zones
7. **RSI Filter** — Relative Strength Index prevents entries in overbought or oversold extremes where mean-reversion risk is highest
8. **ADX Filter** — Average Directional Index confirms sufficient trend strength before entry
9. **Market Regime** — A composite regime score (-6 to +6) derived from multiple timeframe analysis gates entries against the broader market direction. Counter-regime trades are blocked entirely
**Additional filters**
Beyond the nine confluence factors, the system includes:
- **Session time filter** — restricts trading to configurable intraday windows, avoiding low-liquidity periods
- **EOD cutoff** — automatically stops new entries before the end of the regular trading session
- **Session loss policy** — after a configurable number of consecutive losses, the system pauses entries for the remainder of the session
- **Daily loss limit** — blocks all new entries when cumulative session realized P&L drops below a configurable threshold
- **Trade direction control** — configurable to Long Only, Short Only, or Both
**Instruments**
Optimized and validated for micro futures: MES (Micro S&P 500), MNQ (Micro Nasdaq-100), M2K (Micro Russell 2000), and MGC (Micro Gold Futures). Each instrument has independently optimized default parameters.
**How to use this script**
This is the strategy version (v3.x). It uses TradingView's built-in strategy engine, which means it fires alerts on bar close and powers the built-in paper trading panel and strategy tester. It is designed to run alongside the companion indicator version (LWTG MITS Indicator) on the same chart.
Add the script to your chart, select the appropriate preset for your instrument in the inputs, and configure your minimum confluence score. The diagnostic panel on the chart displays real-time scoring, regime status, filter states, and session P&L.
Alert message format is JSON and is designed to integrate with automated order execution systems via webhook.
For full setup documentation, visit the companion GitHub repository linked in the author profile.
**Important:** This script is provided for educational purposes. All trading involves risk. Past performance does not guarantee future results. Always validate any trading system thoroughly before deploying with real capital.
**Description:**
LWTG MITS (Multi-Indicator Trading System) is a rules-based mean-reversion and trend-following scoring engine designed for micro futures trading on prop firm accounts. It evaluates nine independent market conditions simultaneously and only enters a trade when a configurable minimum number of those conditions align — creating a high-confluence filter that reduces noise and improves signal quality.
**How the scoring system works**
Each bar, the script evaluates nine confluence factors across both long and short directions. Each factor that aligns with the potential trade direction adds one point to the score. A trade signal fires only when the score meets or exceeds the minimum threshold set in the inputs. The nine factors are:
1. **EMA Alignment** — Price relationship to short and long exponential moving averages confirms the directional bias
2. **VWAP Position** — Price position relative to the Volume Weighted Average Price filters entries against the intraday mean
3. **Momentum** — A custom momentum calculation confirms the strength of the current directional move
4. **Volume Confirmation** — Current bar volume relative to a rolling average confirms institutional participation
5. **Candlestick Pattern** — Engulfing and reversal patterns at key levels add a price action confirmation layer
6. **Volatility Filter** — ATR-based volatility measurement ensures entries occur in tradeable market conditions, not during dead zones
7. **RSI Filter** — Relative Strength Index prevents entries in overbought or oversold extremes where mean-reversion risk is highest
8. **ADX Filter** — Average Directional Index confirms sufficient trend strength before entry
9. **Market Regime** — A composite regime score (-6 to +6) derived from multiple timeframe analysis gates entries against the broader market direction. Counter-regime trades are blocked entirely
**Additional filters**
Beyond the nine confluence factors, the system includes:
- **Session time filter** — restricts trading to configurable intraday windows, avoiding low-liquidity periods
- **EOD cutoff** — automatically stops new entries before the end of the regular trading session
- **Session loss policy** — after a configurable number of consecutive losses, the system pauses entries for the remainder of the session
- **Daily loss limit** — blocks all new entries when cumulative session realized P&L drops below a configurable threshold
- **Trade direction control** — configurable to Long Only, Short Only, or Both
**Instruments**
Optimized and validated for micro futures: MES (Micro S&P 500), MNQ (Micro Nasdaq-100), M2K (Micro Russell 2000), and MGC (Micro Gold Futures). Each instrument has independently optimized default parameters.
**How to use this script**
This is the strategy version (v3.x). It uses TradingView's built-in strategy engine, which means it fires alerts on bar close and powers the built-in paper trading panel and strategy tester. It is designed to run alongside the companion indicator version (LWTG MITS Indicator) on the same chart.
Add the script to your chart, select the appropriate preset for your instrument in the inputs, and configure your minimum confluence score. The diagnostic panel on the chart displays real-time scoring, regime status, filter states, and session P&L.
Alert message format is JSON and is designed to integrate with automated order execution systems via webhook.
For full setup documentation, visit the companion GitHub repository linked in the author profile.
**Important:** This script is provided for educational purposes. All trading involves risk. Past performance does not guarantee future results. Always validate any trading system thoroughly before deploying with real capital.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
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.