Probability Engine
Probability Engine v5 SINGULARITY maps a range of possible price paths directly on your TradingView chart using historical analogs, Monte Carlo simulation, or both. Compare bull, base, and bear scenarios, see how chart patterns influence the projection, and estimate whether a long or short setup is
Live BTC-voorbeeld
Alleen-lezen. De preview toont ondersteunde Pine-plots op de marktdata van Apex OS.
Beschrijving
Probability Engine v5 SINGULARITY is a TradingView overlay that projects a distribution of possible price paths from the latest bar. The chart displays a median path, a quantile fan, representative bull, base, and bear paths, and a histogram of where the sampled paths finish.
### Three projection methods
- Analog (KNN) finds similarly shaped moves in historical data and weights their subsequent paths by how closely they match. An optional regime filter compares realized volatility.
- Monte Carlo (GBM) simulates future paths using configurable drift and volatility models. It supports constant volatility, EWMA, and GARCH(1,1), with Normal, Student-t, or empirical bootstrap shocks. Adaptive drift uses a variance ratio to account for persistence.
- Ensemble (KNN + MC) combines historical analogs and simulated paths. When suitable analogs are unavailable, it can fall back to Monte Carlo.
### Pattern recognition and Alpha Score
The pattern engine scans for 11 structures, including double tops and bottoms, head and shoulders, triangles, wedges, flags, and trading ranges. It can label and draw the highest-scoring pattern on the chart. With pattern influence enabled, directional bias can tilt Monte Carlo drift and change how historical analogs are weighted.
The Alpha Score grades the projection from 0 to 100 using signal-to-noise, directional imbalance, pattern alignment, and trend persistence. TradingView alerts are available for the Alpha Score threshold and qualifying pattern breakouts.
### Target and stop analytics
Set up a long or short scenario with target and stop levels based on ATR multiples, percentages, or manual prices. The engine walks each sampled path bar by bar and reports how often the target is reached first, the stop is reached first, or neither level is reached before the horizon ends.
The stats panel also shows modeled expectancy in R, average favorable and adverse excursion, Kelly and quarter-Kelly estimates when available, and tail-risk estimates (CVaR). Edge Scan compares nine ATR-based target and stop combinations and highlights the pair with the highest modeled expectancy.
Projections and alert conditions can change while the current candle is forming. The displayed odds and expectancy come from the model's sampled paths.
Hoe te gebruiken
- Open the script in TradingView and select Use on chart. To run the downloadable build, paste the contents of the
.pinefile into TradingView's Pine Editor, then save it and select Add to chart. - In Model, choose your projection method and set the horizon in chart bars. The default is Analog (KNN) with a 48-bar horizon.
- Read the median path and quantile fan together to see the center and spread of the projection. In the stats panel, check the Model Basis row to see which paths contributed to the result.
- In Trade analytics, choose Long or Short and set your target and stop. Compare TP first, SL first, and Still open to see how the sampled paths resolve within the horizon. Enable Edge Scan to compare the nine ATR-based pairs.
- In TradingView's alert dialog, choose Alpha score threshold or Pattern breakout. The Alpha Score threshold starts at 70 and can be adjusted in the indicator settings.