OPEN-SOURCE SCRIPT

Quant Synthesis Strategy [JOAT]

960
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.

snapshot

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

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.