</> Codebase
StrategyQuant X platform codebase – a place to share coded customizations and extensions – among all users.
Monte Carlo
Monte Carlo – MACHR Block Randomization
In the real world of trading, market conditions don't follow a predictable sequence. Bull markets, bear markets, high-volatility periods, and consolidation phases can occur in vastly different orders across different time periods or instruments.
MC
Monte Carlo
clonex
market regimes
regimes
What If scenarios (SQ)
When Should Your System Trade? 8 Tools to Help You Decide
What-If analysis in StrategyQuant is like having a time machine for your trading strategies. You run a backtest, then ask “What if I had been smarter about when to trade?”
Indicators / Signals
HalfTrend Bollinger Bands (HTBB)
The HalfTrend Bollinger Bands indicator combines the trend-following capabilities of the HalfTrend indicator with volatility-based Bollinger Bands to provide enhanced trend analysis with dynamic support and resistance levels. This indicator creates a sophisticated approach to trend identification by applying statistical bands around a trend-following baseline.
indicator
clonex
halftrebnd
bandsň
bollinger
TA
Indicators / Signals
VIDYA Bollinger Bands (VIDYABB)
The VIDYA Bollinger Bands indicator combines the adaptive smoothing capabilities of VIDYA (Variable Index Dynamic Average) with statistical Bollinger Bands to provide enhanced trend analysis with dynamic volatility bands. This indicator creates a sophisticated approach to trend identification by applying an adaptive moving average that responds to market momentum and surrounding it with volatility-based bands.
clonex
bands
vidya
bb
technical indicator
Indicators / Signals
Bollinger Bands VMA (BBVMA)
The Bollinger Bands VMA indicator combines Tushar Chande's Variable Moving Average (VMA) with traditional Bollinger Bands to provide enhanced trend analysis with efficiency-based adaptive smoothing. This indicator creates a sophisticated approach to trend identification by using an adaptive moving average that responds to market efficiency as the center line, surrounded by volatility-based statistical bands.
clonex
bands
vma
TA
bb
Indicators / Signals
Smoothed ATR With Bands (SATRB)
The Smoothed ATR with Bands indicator combines dual ATR calculations with statistical bands to provide enhanced volatility analysis. This indicator creates a more sophisticated approach to measuring market volatility by smoothing the ATR values and adding standard deviation bands.
indicator
technical analysis
atr
volatility
clonex
bands
stdev
Monte Carlo > Manipulation methods
Monte Carlo – Simulate Parameter Jitter
In the real world of trading, market conditions are constantly evolving. Volatility shifts, liquidity fluctuates, and the data feed itself might have minute variations from tick to tick. Consequently, even a well-optimized strategy might not perform exactly as predicted by a backtest, as its core parameters or indicator calculations could experience slight "jitter" or instability when faced with live conditions. This Monte Carlo simulation is designed to test how resilient your strategy is to such minor, unpredictable deviations from its perfect backtest behavior.
Monte Carlo
jitter
missed trqades
Monte Carlo > Manipulation methods
Monte Carlo – Randomly Degrade Execution
Execution imperfections, such as price slippage or temporarily wider spreads, are common occurrences in live trading. These factors can cause the actual closing price of a trade to be less favorable than the ideal price observed or targeted during the backtest. This Monte Carlo simulation models the impact of such random execution issues.
Monte Carlo
degradation of the trading system
Indicators / Signals
VIDYA (Variable Index Dynamic Average)
The Variable Index Dynamic Average (VIDYA) is an adaptive moving average that adjusts its sensitivity based on market volatility. Unlike traditional moving averages that apply the same weight to all market conditions, VIDYA becomes more responsive during volatile periods and less reactive during ranging markets.
volatility
clonex
avera
moving averaga
idnicator
Indicators / Signals
(VST) Volatility Skew Tracker
The Volatility Skew Tracker (VST) is an innovative oscillator designed to measure the asymmetry between upside and downside price volatility. Unlike conventional indicators that focus only on price direction or magnitude, VST analyzes the internal structure of price movements to detect hidden bullish or bearish pressure beneath the surface. By examining the relationship between high-low ranges and factoring in closing prices, VST provides traders with early insights into potential trend changes and confirmation of existing trends. This unique approach to volatility analysis helps traders see beyond price action alone to understand the underlying market sentiment.
indicator
technical analysis
clonex