</> Codebase
StrategyQuant X platform codebase – a place to share coded customizations and extensions – among all users.
Indicators / Signals
Bollinger Bands %B (BBB)
Bollinger Bands %B is a technical oscillator that quantifies how close the market price is to the upper or lower Bollinger Bands. By converting this distance into a percentage value from 0 to 1, it offers a quick way to gauge whether the market is approaching overbought (near 1) or oversold (near 0) conditions.
bollinger bands
bands
oscillator
clonex
Indicators / Signals
Divergence Comparison Blocks
Divergences have long been a favorite tool among technical analysts and systematic traders. They provide early clues that price trends might be losing momentum or are about to reverse. In this post, we dive deep into the world of divergences—from the underlying theory to practical implementation insights, along with key parameters that fine-tune divergence detection.
swing
comparison
indicator
divergence
Indicators / Signals
Kalman Filter (KF)
The Kalman Filter is a mathematical approach often used in engineering and finance to produce smooth, adaptive estimates of a system’s state—in this case, the price of a financial instrument. By combining past estimates and new measurements, the Kalman Filter helps reduce noise and track both the price and its velocity (or slope) over time.
clonex
kalman filter
indicator
trend
Indicators / Signals
Ultimate Oscillator (UO)
The Ultimate Oscillator is a technical analysis tool designed to capture momentum by combining three different time periods into a single value. By weighing short-term, mid-term, and long-term price pressures, it aims to minimize false signals that can arise from focusing on any single timeframe.
clonex
ultimate
indicator
oscillator
Indicators / Signals
Indicators Smoothing Custom Blocks
In our latest update, we've introduced new comparison blocks that allow you to smooth any indicator using various moving averages, such as SMA, EMA, WMA, or HMA. These blocks enable you to compare an indicator's current value to its smoothed version, helping to filter out market noise and focus on significant trends. You can specify parameters like the period, moving average type, and shift to tailor the smoothing to your strategy. This enhancement provides traders with refined tools to develop more robust and responsive trading strategies.
indicator ma
moving average
clonex
Indicators / Signals
CUSUM
CUSUM is a sequential analysis technique that accumulates deviations from a target value over time. By comparing the cumulative sum against defined thresholds, it becomes easier to spot even subtle shifts in price behavior. In our implementation, two separate accumulators—one for upward movements (CUSUM Positive) and one for downward movements (CUSUM Negative)—signal when the change in the underlying price series becomes significant.
cucum
ivan huidec
drift
indicator
clonex
Indicators / Signals
Adaptive Custom Block/Conditions
These custom blocks, or conditions, were used in the analysis of the effectiveness of more adaptive blocks, which you can read here. Additionally, these custom blocks can serve as a template for you to prepare your own.
cusotm blocks
adaptive
cinditions
Indicators / Signals
Kolmogorov-Smirnov Test (KSTest)
The Kolmogorov-Smirnov Test (KSTest) indicator is a statistical tool used in quantitative trading to compare two data samples and determine if they come from the same distribution. In this implementation, the indicator compares a recent sample of price data ( Period1) with a historical sample (Period2) to detect significant changes in the underlying distribution of the data.
clonex
regime
shift
ivanhudec
indicator
market regime
Indicators / Signals
Is Greater Adaptive / Is Lower Adaptive
The IsGreater Is/Lower Adaptive comparison block does one main thing: it checks if one indicator is greater than another, but only generates a signal if similar situations were profitable in the past.
market regime
clonex
comaprison
indicator
adaptive
Indicators / Signals
AutoCorrelation
Autocorrelation measures the degree of similarity between a time series and a lagged version of itself. Simply put, it determines if today’s price movements relate to movements from a specific number of periods ago.
autocorrelation
indicator
clonex