Skip to content
✦ SOURCE CODE 3 editable source-code editions · code EARLYBIRDSCRIPT saves $200 ($599 → $399) · through Dec 1, 2026 Explore editions ↗ ◆ SMART TRADER Premium scripts + 90+ optimization releases + private Discord · $29/month Join membership ↗ ⌘ PRIVATE CODING Develop a custom TradingView strategy with TradeSmart How it works ↗ ◈ OPTIMIZATION Research your own asset, timeframe and trading rules See the process ↗
← Back to script library
Premium v1 · TradingView Pine Script

Candle Pattern Analyzer (PREMIUM)

Build candle-pattern rules you can actually test.

Define the shape and relationship of up to four recent candles—including their direction, relative size and percentage movement—to evaluate recurring chart patterns systematically.

Make the strategy your own research workflow.

Smart Trader membership offers invite-only script access and supported optimization presets; source code is not included.

Explore Smart Trader membership ↗
BEHIND THE SIGNAL

What makes this tool different?

Core mechanics from the original TradeSmart script and its documentation. Individual settings and supported filters depend on the selected version.

01

Four-candle pattern analysis

02

Bullish/bearish color, candle size and ratio conditions

03

Rule-based historical comparison instead of visual guesswork

SOURCE-VERIFIED CONTROLS

Explore the controls behind this script.

These feature families were identified in the actual Pine Script inputs, not inferred from the script name. Individual options vary and may be disabled by default.

✓

Risk & stops

  • Configurable protective stop-loss inputs
  • ATR-based stop options
  • Percentage-based stop options
  • Price-structure stops
✓

Targets & exits

  • Configurable profit-taking inputs
  • ATR-based targets
  • Trailing management inputs
✓

Signal filters & schedule

  • Trend / moving-average conditions
  • Volume & money-flow conditions
  • Weekday / session / time limits
✓

Execution & exit controls

  • Force-exit controls
  • Indicator-based exit options
↗

Alert integration

Automation-related references are present in this source. Review this specific script’s alert implementation and connector requirements before trading.

See setup guides ↗

This is a concise functionality index, not a guarantee of availability in every preset or of compatibility with every broker.

YOUR RESEARCH WORKFLOW

Test, refine, then decide.

Use TradingView historical backtests to explore markets, timeframes, risk settings and commissions. An optimized backtest is not a guarantee of future performance, and historical simulation is not verified live trading.

See membership benefits ↗
SCRIPT GENERATION

The right controls for this script.

This script belongs to the legacy or specialist TradeSmart collection. Check its TradingView inputs and individual guide for exact filter, risk and automation features. V1 presets generally require manual configuration or supported CSV workflows.

Legacy script: review the original TradingView configuration before following older workflow instructions.
WATCH & LEARN

Framework walkthrough

A general Premium framework introduction. No script-specific video has been verified for this exact version.

Universal V1 framework01

TradeSmart Premium V1 — general framework tutorial

Learn the legacy Premium interface and common controls. This is not a dedicated demonstration of every strategy.

Watch on YouTube ↗