Indicator · Pine Script v6 · On the chart

Smart Trader, Episode 03, by Ata Sabancı | Candles and Tradelines

by eddiebelaval

This indicator segments recent price bars into defined groups and visual boxes to serve as a visual chart ruler.

View on GitHub

GitHub stars7on the repository
Pine versionv6current
Lines of code2,738
Settings40inputs
LicenceNone stated
Last update3 months ago24 Jul 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

Smart Trader, Episode 03, by Ata Sabancı | Candles and Tradelines includes automated trend detection with configurable angle thresholds to plot uptrend, downtrend, and range segments directly on the price chart. Users can display composite candles, dim standard price candles, view an on-chart narrative commentary, and toggle an information dashboard panel. Settings control group counts, window size, line styling, text sizing, and custom lower timeframe data integration.

Details

Published by

eddiebelaval on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Support & resistance, Candlestick patterns, Screeners & dashboards

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
Window Barsint100i_window
Group Countint20i_groups
Calculation BasisstringClosed (bar[1])i_calcBasis
Show Group Numbersbooltruei_showGroupNums
Show Group Boxesbooltruei_showGroupBoxes
Box Colorcolorcolor.grayi_boxColor
Box Transparencyint85i_boxTransp
Global Text SizestringSmalli_globalTextSizeStr
Show Composite Candleboolfalsei_showCompositeCandle
Composite Candle Transparencyint50i_compositeCandleTransp
Dim Original Candlesbooltruei_dimOriginalCandles
Original Candle Dim Levelint95i_originalCandleDimLevel
Show all 40 settings
SettingTypeDefaultVariable
Enable Market Narrativebooltruei_narrativeEnable
Narrative LanguagestringEnglishi_narrativeLang
Show Educational Disclaimerbooltruei_narrativeShowDisclaimer
Calculation MethodstringGeometry (Approx)i_calcMethod
Use custom lower timeframebooltruei_useCustomLTF
Lower timeframe (LTF)timeframe15Si_customLTF
Global Period (Boxes)int5i_globalPeriodBoxes
Show Dashboardbooltruei_showDash
Positionstringposition.top_righti_dashPos
Enable Trend Detectionbooltruei_trendEnable
Range Angle Threshold (°)float10.0i_rangeAngleThreshold
Minimum Blocks per Segmentint2i_trendMinBlocks
Show Range Segmentsbooltruei_showRangeSegments
Uptrend Line Colorcolorcolor.rgb(34, 197, 94)i_trendUpColor
Downtrend Line Colorcolorcolor.rgb(239, 68, 68)i_trendDnColor
Range Line Colorcolorcolor.rgb(148, 163, 184)i_trendRangeColor
Trend Line Widthint2i_trendLineWidth
Trend Line Stylestringsolidi_trendLineStyle
Project to Futurebooltruei_trendProject
Enable Core Calculationbooltruei_coreEnable
Draw Core Linesbooltruei_coreDrawLines
Offset / Projection (to Future)booltruei_coreProjectFwd
Nearest Only (1 Up / 1 Down)booltruei_coreNearestOnly
Include MAX Buy/Sell Levelsbooltruei_coreShowMax
Include MIN Buy/Sell Levelsbooltruei_coreShowMin
Enable POCbooltruei_pocEnable
Show POC Nearest Up/Downbooltruei_pocShowNearest
Line Widthint1i_coreLineWidth
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

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

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 2 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
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic
53 stars

Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi

Indicator v6 TrendSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Apex Trend & Liquidity Master

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 7 weeks ago · None stated GitHub repository of Confluence Suite

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers