Indicator · Pine Script v6 · On the chart

Candle Probability Stats

by h-astrix07

Candle Probability Stats is an overlay indicator that analyzes candle direction distribution and trend structure over a customizable lookback period.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code254
Settings7inputs
LicenceNone stated
Last update6 months ago1 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Candle Probability Stats loops through historical bars to measure the relative percentages of bullish, bearish, and doji candles. Additionally, it compares recent volume against a baseline average and calculates linear regression slope to project trend direction. Output is displayed directly on the price chart via drawn regression/prediction lines and an on-screen statistical table.

Details

Published by

h-astrix07 on GitHub

Draws

On the price chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Periode Statistikint100i_len
Periode Trenint20i_trendLen
Periode Volumeint10i_volLen
Posisi TabelstringTop Righti_pos
Tampilkan Garis Trenbooltruei_showTrend
Tampilkan Prediksibooltruei_showPred
Bar Prediksi ke Depanint5i_predBars
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Confluence Suite

by TamaraKGreen
47 stars

The Confluence Suite indicator draws multiple trading signals and tools directly on the price chart. It generates entry and exit signals based on selected modes and filters, with an AI signal classifier rating quality from 1-4. Additional features include smar

Indicator v5 TrendSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Confluence Suite

Bjorgum SuperScript

by theonetrade
34 stars

Bjorgum SuperScript is a multi-indicator suite that plots visual trade signals, moving averages, and custom candle overlays directly on the main price chart. It combines elements such as Tilson T3 moving averages, HEMA, Parabolic SAR, Trend Momentum (TRM), and

Indicator v5 TrendMoving averages
Updated 2 weeks ago · MIT GitHub repository of Bjorgum SuperScript
32 stars

Ghost Channels fits dynamic parallel trend channels over a configurable lookback window using linear regression or pivot swing methods. It layers confirmation signals onto the channel geometry, detecting candlestick pattern reactions at the rails, volume-confi

Indicator v6 TrendBreakout
Updated 4 weeks ago · MIT GitHub repository of Ghost Channels [mph1nance]

TheStrat Suite

by 345-strategies
30 stars

This indicator implements Rob Smith's TheStrat price action methodology across up to six configurable timeframes. It classifies candles into inside, directional, and outside bars, identifies patterns like hammers, shooters, and failed 2s, and calculates magnit

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 2 weeks ago · MPL-2.0 GitHub repository of TheStrat Suite
29 stars

MWM EMA x VWAP Engulfing is an intraday indicator that plots an exponential moving average against session VWAP to evaluate buyer and seller control. It identifies up to five entry setups confirmed by engulfing bodies, rejection wicks, momentum bars, or band t

Indicator v6 Moving averagesCandlestick patterns
Updated 6 weeks ago · MIT GitHub repository of MWM EMA x VWAP Engulfing

More Candlestick patterns scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers