PROTECTED SOURCE SCRIPT

Pattern Finder with MTF Boxes (Break - Fixed)

59
Script Title:
MTF Supply/Demand Zone Indicator with Candlestick Pattern Confirmation

Short Description:
This advanced strategy identifies key Supply and Demand zones (Order Blocks) on higher timeframes (30m & 1h) and then waits for a pullback to these zones on the current timeframe. The final entry signal is triggered upon the appearance of a valid candlestick pattern (e.g., Hammer, Engulfing) within these zones.

Full Description:

Introduction & Core Concept
This script is a powerful trading tool based on a combination of the following concepts:

Multi-Timeframe (MTF) Analysis: Identifying significant structures on higher timeframes to understand the bigger market picture.

Supply and Demand Zones: Finding areas where an imbalance between buyers and sellers has caused strong price movements.

Candlestick Patterns: Using classic candlestick patterns as the final confirmation for entering a trade at these key zones.

The main idea is to avoid trading blindly and instead wait for the price to react to a significant zone, then enter with a confirmation signal.

How the Strategy Works (Step-by-Step)
Identifying the Key Pattern on Higher Timeframes:
The script continuously monitors the 30-minute and 1-hour charts to find a specific pattern: a short consolidation period (usually 1-4 candles) immediately followed by a breakout with a powerful, high-momentum candle (Long Bar). This pattern indicates the formation of a fresh Supply or Demand Zone.

Drawing the Supply and Demand Boxes:

Green Box (Demand Zone): When a minor high is broken by a bullish Long Bar, this area is identified as potential support and marked with a green box.

Red Box (Supply Zone): When a minor low is broken by a bearish Long Bar, this area is identified as potential resistance and marked with a red box.

White Box (Long Bar / Trigger Zone): This box highlights the range of the Long Bar candle itself. A break of or return to this zone provides important signals.

Waiting for a Pullback:
After a zone is identified and drawn, the strategy waits for the price on your current chart to pull back into this box.

Entry Confirmation with Candlestick Patterns:
Once the price enters the box, the script looks for reversal candlestick patterns:

In a Demand Zone (Green Box): It looks for bullish patterns like the Hammer, Bullish Engulfing, Bullish Harami, and Morning Star. Upon detection, a BUY label appears on the chart.

In a Supply Zone (Red Box): It looks for bearish patterns like the Hanging Man, Shooting Star, Bearish Engulfing, Bearish Harami, and Evening Star. Upon detection, a SELL label appears.

Breakout Signal:
In addition to reversal signals, if the price breaks the White Box (Long Bar Zone) in the opposite direction, a breakout signal is generated, which could indicate a trend continuation.

Visual Elements on the Chart
Green/Red Boxes: The primary Supply and Demand zones from higher timeframes.

White Boxes: The range of the Long Bar candle that activated the primary zone.

BUY/SELL Labels: Trade signals that appear after a candlestick confirmation within the zones.

Moving Averages (SMA 100 & 200): Included to help identify the overall market trend. Trades aligned with the trend are generally more reliable.

Input Settings
period ATR & Bar multiplayer: Allow you to customize the definition of a "Long Bar" based on market volatility.

Number of candle for long bar avrage: The lookback period for calculating the average candle body size.

multiplayer for tp: A multiplier to calculate the take-profit based on the stop-loss size (Risk-to-Reward ratio).

How to Use This Strategy
Apply the script to your main trading timeframe (e.g., 5-minute or 15-minute).

Wait for a Supply (Red) or Demand (Green) zone to be drawn on your chart.

Be patient and wait for the price to return to this zone.

If a BUY or SELL label appears, consider it a valid entry signal.

Always combine these signals with your own analysis and the overall market context.

Disclaimer: This script is an analytical tool and should not be the sole basis for your trading decisions. Always practice proper risk management and thoroughly backtest its performance before using it in a live account.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.