This indicator segments recent price bars into customizable groups and plots visual ruler boxes, numbering, and trendlines directly on the price chart.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
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 | Candles and Tradelines calculates geometric trend angles across block segments and can render composite candles representing aggregated price action. Users can adjust the bar window, group counts, calculation basis, and display options for an on-chart information dashboard. The script functions primarily as a visual structural and educational analysis tool, providing no automated trade signals, entry alerts, or exit rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Window Bars
int
100
i_window
Group Count
int
20
i_groups
Calculation Basis
string
Closed (bar[1])
i_calcBasis
Show Group Numbers
bool
true
i_showGroupNums
Show Group Boxes
bool
true
i_showGroupBoxes
Box Color
color
color.gray
i_boxColor
Box Transparency
int
85
i_boxTransp
Global Text Size
string
Small
i_globalTextSizeStr
Show Composite Candle
bool
false
i_showCompositeCandle
Composite Candle Transparency
int
50
i_compositeCandleTransp
Dim Original Candles
bool
true
i_dimOriginalCandles
Original Candle Dim Level
int
95
i_originalCandleDimLevel
Show all 40 settings
Setting
Type
Default
Variable
Enable Market Narrative
bool
true
i_narrativeEnable
Narrative Language
string
English
i_narrativeLang
Show Educational Disclaimer
bool
true
i_narrativeShowDisclaimer
Calculation Method
string
Geometry (Approx)
i_calcMethod
Use custom lower timeframe
bool
true
i_useCustomLTF
Lower timeframe (LTF)
timeframe
15S
i_customLTF
Global Period (Boxes)
int
5
i_globalPeriodBoxes
Show Dashboard
bool
true
i_showDash
Position
string
position.top_right
i_dashPos
Enable Trend Detection
bool
true
i_trendEnable
Range Angle Threshold (°)
float
10.0
i_rangeAngleThreshold
Minimum Blocks per Segment
int
2
i_trendMinBlocks
Show Range Segments
bool
true
i_showRangeSegments
Uptrend Line Color
color
color.rgb(34, 197, 94)
i_trendUpColor
Downtrend Line Color
color
color.rgb(239, 68, 68)
i_trendDnColor
Range Line Color
color
color.rgb(148, 163, 184)
i_trendRangeColor
Trend Line Width
int
2
i_trendLineWidth
Trend Line Style
string
solid
i_trendLineStyle
Project to Future
bool
true
i_trendProject
Enable Core Calculation
bool
true
i_coreEnable
Draw Core Lines
bool
true
i_coreDrawLines
Offset / Projection (to Future)
bool
true
i_coreProjectFwd
Nearest Only (1 Up / 1 Down)
bool
true
i_coreNearestOnly
Include MAX Buy/Sell Levels
bool
true
i_coreShowMax
Include MIN Buy/Sell Levels
bool
true
i_coreShowMin
Enable POC
bool
true
i_pocEnable
Show POC Nearest Up/Down
bool
true
i_pocShowNearest
Line Width
int
1
i_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.
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
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
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
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
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
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