OPEN-SOURCE SCRIPT

Pattern Scanner

316
Ultimate Pattern Scanner — multi-timeframe candlestick discovery tool (educational use only).

Purpose: This script scans user-selected timeframes for classical candlestick patterns (for example: engulfing, morning/evening stars, hammers, dojis, tasuki gaps, three soldiers/crows, tweezers, marubozu, and others) and reports pattern name, detection price, directional signal (Bull / Bear / Neutral), and a simple volume participation metric. It is intended as an idea-generation and training tool to help traders learn pattern mechanics, not as an automated trading system.

Main modules and rationale: 1) Pattern engine — applies classical candle structure rules to detect formations; 2) SMA trend filter (configurable length) — provides a directional bias to favor trade-with-trend setups; 3) Volume heuristic — approximates participation by separating candles into buy-like and sell-like volume and comparing total volume to a moving average; 4) Multi-timeframe aggregator — collects and presents pattern results from multiple timeframes; 5) Alerts — optional alerts list detected patterns and TFs. Combining these modules is intentional: patterns provide structure, SMA provides context, and volume supplies participation confirmation. Together they improve the educational value and practical relevance of each detected pattern.

How to use: Choose timeframes and SMA length that match your trading horizon. Use the scanner to locate pattern candidates, then confirm with higher-timeframe agreement and volume ratio before considering trade entry. Use structural stops (recent swing highs/lows or ATR-based stops) and define risk:reward rules. For learning, replay alerted bars and record outcomes over fixed horizons to build empirical statistics.

Limitations: Volume classification (close>open) is a heuristic and not a true bid/ask tape. SMA is a lagging trend proxy. Multi-timeframe agreement reduces but does not eliminate false signals, especially around news or in low-liquidity instruments. Use demo accounts and backtesting before live trading.

Inputs you can adjust: timeframe list, SMA length, volume MA length, which patterns to enable/disable, display options.

Compliance notes: This description explains why modules are combined and what the script does without exposing source code logic; it is non-promotional and contains no contact links. Remove any trademark symbols unless registration details are provided.

Risk Disclaimer: This tool is provided for education and analysis only. It is not financial advice and does not guarantee returns. Users assume all risk for trades made based on this script. Backtest thoroughly and use proper risk management.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.