Indicator · Pine Script v5 · On the chart

Candlestick Structure [LuxAlgo]

by mydcc· code credited to LuxAlgo

Candlestick Structure [LuxAlgo] detects multiple classic bullish and bearish candlestick patterns in the context of broader market structure.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code478
Settings32inputs
LicenceCustom licence
Last update2 days ago28 Oct 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

Candlestick Structure [LuxAlgo] evaluates patterns such as hammers, engulfing candles, stars, haramis, tweezers, and three-method formations against minor and major trend filters using Supertrend, moving average crosses, or Donchian Channels. The indicator plots pattern labels and gradient fills directly on the price chart, colors candles according to trend conditions, and displays a summary dashboard. Users can enable or disable individual patterns and adjust trend detection lengths.

Details

Published by

mydcc on GitHub

Code credit

LuxAlgo, as written in the script's header

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
Hammer           booltruehammerTog
Inverted Hammer   booltrueihammerTog
Bullish Engulfing    booltruebulleTog
Rising 3            booltruer3Tog
3 White Soldiers     booltruetwsTog
Morning Star        booltruemstarTog
Bullish Harami      booltruebullhTog
Tweezer Bottom    booltruebtmTweezTog
Hanging ManbooltruehmanTog
Shooting StarbooltruesstarTog
Bearish EngulfingbooltruebeareTog
Falling 3booltruef3Tog
Show all 32 settings
SettingTypeDefaultVariable
3 Black CrowsbooltruetbcTog
Evening StarbooltrueestarTog
Bearish HaramibooltruebearhTog
Tweezer TopbooltruetopTweezTog
Minor Trend Lengthint10minorDCLength
Major Trend MethodstringSuperTrendmajorTrendType
Swing Lengthint20majorSwingLength
Short EMA Lengthint50majorEma1Length
Long EMA Lengthint200majorEma2Length
Super Trend Factorfloat4majorSTFactor
Lengthint20majorSTLength
Donchian Channel Lengthint40majorDCLength
Color CandlesboolfalsebcTog
Bull Color  color#089981bullColor
Bear Colorcolor#f23645bearColor
Show GradientbooltrueshowFill
Label SizestringtinytxtSize
Show DashboardbooltrueshowDash
LocationstringBottom RightdashLoc
SizestringTinySize
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
46 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 8 weeks ago · None stated GitHub repository of Confluence Suite
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 days ago · MIT GitHub repository of Ghost Channels [mph1nance]

Pro Pattern Al-Sat

by MeridianAlgo
9 stars

This overlay indicator marks bullish and bearish chart patterns on the price chart and can hide either side. Optional filters require agreement from fast and slow EMAs, Supertrend, and ADX, plus volume, RSI, nearby pivot support or resistance, and a user-defin

Indicator v6 Candlestick patternsTrend
Updated 4 months ago · MIT GitHub repository of Pro Pattern Al-Sat

This indicator segments recent price bars into defined groups and visual boxes to serve as a visual chart ruler. It includes automated trend detection with configurable angle thresholds to plot uptrend, downtrend, and range segments directly on the price chart

Indicator v6 TrendSupport & resistance

TheStrat Suite

by 345-strategies
5 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 4 days ago · MPL-2.0 GitHub repository of TheStrat Suite
3 stars

Price-Action Candles classifies swing structure from pivot highs and lows and colors chart candles bullish, bearish, or neutral. It marks higher highs, lower highs, higher lows, and lower lows, with a label mode that either offsets labels by the pivot length o

Indicator v5 TrendCandlestick patterns Repaints
Updated 5 months ago · None stated GitHub repository of Price-Action Candles

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