OPEN-SOURCE SCRIPT
Quant Synthesis Strategy [JOAT]

Quant Synthesis Strategy [JOAT]
Introduction
QSS Quant Synthesis Strategy is an open-source TradingView strategy that integrates regime detection, higher-timeframe bias, confirmed structure, session opening-range context, volume participation, trend energy, ATR exits, cooldowns, and session risk controls.
The strategy is designed as a realistic research baseline, not an optimized profit promise. Its purpose is to demonstrate how the JOAT indicator concepts can be combined into a non-repainting strategy framework with explicit risk management.

Core Concepts
1. Market Regime Detection
The regime model uses EMA spread, ADX from DMI, and ATR percentage context to classify Trend, Expansion, Balance, or Transition.
2. Higher-Timeframe Bias
The strategy requests higher-timeframe EMAs with lookahead disabled. Long bias requires the HTF fast EMA above the slow EMA with positive slope; short bias is mirrored.
3. Confirmed Structure
Pivot-based structure checks whether recent highs and lows form bullish or bearish structure. Pivot confirmation is delayed by design to avoid repainting.
4. Session Opening Range
The strategy tracks a configurable trading session and opening range. Entries can require session context so trades are not taken randomly outside the selected window.
5. Risk and Exits
Position size is estimated from a percentage of equity and ATR stop distance. Exits include ATR stop, ATR target, maximum bars in trade, regime/bias exit, cooldown, and session flattening.
Features
Default Strategy Properties
How to Use
Step 1: Select a market and timeframe with enough historical data.
Step 2: Review the dashboard regime and HTF bias before interpreting trades.
Step 3: Adjust risk percent, ATR stop, ATR target, cooldown, and session settings conservatively.
Step 4: Evaluate results across multiple symbols and timeframes. Avoid optimizing only one market segment.
Limitations
Originality Statement
QSS is an original JOAT strategy framework that integrates regime detection, HTF bias, structure, session context, volume participation, and ATR risk management into one non-repainting Pine Script v6 strategy.
Disclaimer
This strategy is for educational and informational purposes only. It is not financial advice and does not guarantee profitability. Trading involves substantial risk of loss. Historical backtests can be inaccurate or misleading if assumptions do not match live execution.
Made with passion by jackofalltrades
Introduction
QSS Quant Synthesis Strategy is an open-source TradingView strategy that integrates regime detection, higher-timeframe bias, confirmed structure, session opening-range context, volume participation, trend energy, ATR exits, cooldowns, and session risk controls.
The strategy is designed as a realistic research baseline, not an optimized profit promise. Its purpose is to demonstrate how the JOAT indicator concepts can be combined into a non-repainting strategy framework with explicit risk management.
Core Concepts
1. Market Regime Detection
The regime model uses EMA spread, ADX from DMI, and ATR percentage context to classify Trend, Expansion, Balance, or Transition.
2. Higher-Timeframe Bias
The strategy requests higher-timeframe EMAs with lookahead disabled. Long bias requires the HTF fast EMA above the slow EMA with positive slope; short bias is mirrored.
3. Confirmed Structure
Pivot-based structure checks whether recent highs and lows form bullish or bearish structure. Pivot confirmation is delayed by design to avoid repainting.
4. Session Opening Range
The strategy tracks a configurable trading session and opening range. Entries can require session context so trades are not taken randomly outside the selected window.
5. Risk and Exits
Position size is estimated from a percentage of equity and ATR stop distance. Exits include ATR stop, ATR target, maximum bars in trade, regime/bias exit, cooldown, and session flattening.
Features
- Regime engine: Trend, Expansion, Balance, and Transition classification
- HTF bias filter: Uses non-lookahead request.security() higher-timeframe EMAs
- Confirmed structure filter: Pivot-based bullish/bearish structure state
- Session opening range: Optional session context for entries
- Volume participation filter: Uses volume z-score and directional volume
- Confluence score: Separate long and short scores gate entries
- ATR exits: Stop loss and take profit scale with volatility
- Risk controls: Risk percent, cooldown, max entries per session, max bars in trade, and session flattening
- Visuals: EMA cloud, opening-range lines, stop/target plots, and top-right dashboard
Default Strategy Properties
- Initial capital: 100000
- Commission: 0.01 percent
- Slippage: 1 tick
- Pyramiding: 0
- Order processing: process orders on close
- Position sizing: fixed quantity calculated internally from risk settings
How to Use
Step 1: Select a market and timeframe with enough historical data.
Step 2: Review the dashboard regime and HTF bias before interpreting trades.
Step 3: Adjust risk percent, ATR stop, ATR target, cooldown, and session settings conservatively.
Step 4: Evaluate results across multiple symbols and timeframes. Avoid optimizing only one market segment.
Limitations
- Backtest results are historical simulations and do not guarantee future performance
- More trades can increase sample size but can also increase noise and transaction costs
- Pivot confirmation creates intentional signal delay
- Strategy results depend on symbol liquidity, timeframe, session settings, slippage, and commission assumptions
- The strategy is a research framework, not a recommendation to trade
Originality Statement
QSS is an original JOAT strategy framework that integrates regime detection, HTF bias, structure, session context, volume participation, and ATR risk management into one non-repainting Pine Script v6 strategy.
Disclaimer
This strategy is for educational and informational purposes only. It is not financial advice and does not guarantee profitability. Trading involves substantial risk of loss. Historical backtests can be inaccurate or misleading if assumptions do not match live execution.
Made with passion by jackofalltrades
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
The AI Trading Ecosystem, Built to win trades 📈
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Get Full Access 👇
jackofalltrades.vip 🌐
t.me/jackofalltradesvip 🃏
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.