Mae Pla Green Pen Analysis Framework
- Göstergeler
- Parinya Thipchart
- Sürüm: 1.1
- Güncellendi: 3 Mart 2026
Mae Pla Green Pen Analysis Framework
The Mae Pla Green Pen Analysis Framework is a multi-timeframe price action scanner for XAUUSD (Gold Spot). It monitors all 9 timeframes simultaneously — M1, M5, M15, M30, H1, H4, D1, W1, and MN — and displays pattern detection results on a real-time dashboard drawn directly on the chart.
The indicator is based on the Mae Pla Green Pen trading methodology, which uses structured price action patterns to identify potential trade setups.
Pattern Detection
Three pattern types are detected across all 9 timeframes:
- PAT 1(P1) — Single Candle Pattern: A single candle where the body is smaller than a configurable percentage of the candle range (default 40%), positioned near one end of the range. Used to identify potential reversal or continuation bars.
- PAT 2(P2) — Two-Candle Pattern: A two-candle structure where the second candle closes in the opposite direction with a body larger than a configurable percentage of the first candle (default 50%). The two candles must be within a configurable price gap (default $5).
- PAT 3(P3) — Three-Candle Pattern: A three-candle structure with an initial move, a small consolidation candle, and a confirmation candle. All three candles must be within a configurable price gap, and the confirmation candle must close beyond a configurable threshold.
Confirmed vs Potential: Once the pattern forms, the indicator waits for a counting bar to develop. If the counting bar is still forming, the pattern is marked as Potential. Once the counting bar closes, the pattern is marked as Confirmed and the SL level is locked.
Body Violation: If the body of the counting bar exceeds a configurable threshold relative to the pattern candle, the confirmed pattern is invalidated and displayed as dimmed on the chart.
Features
- Multi-Timeframe Dashboard: A panel displayed on the chart shows all 9 timeframes at once, including pattern name, direction (buy/sell), SL price, TP1 and TP2 prices, and confirmed vs potential status.
- SL and TP Lines: Horizontal lines are drawn for SL, TP1, and TP2 of each active pattern. Lines are labeled on hover with pattern name and timestamp. A configurable minimum timeframe controls which patterns display lines (default H1 and above).
- Old PA History: Previously confirmed patterns are kept on the chart as grey arrows with hover tooltips showing the pattern name, timeframe, and date. Up to 10 old patterns per timeframe can be stored.
- Daily Frame: Three horizontal lines are drawn based on the daily open price, rounded to the nearest grid step. The top line is the rounded open plus one step, the mid line is the rounded open, and the bot line is the rounded open minus one step. Separate colors are configurable for today vs previous days.
- ATH Lines: The indicator scans H4 bars and draws a horizontal line whenever the highest bar high before a configurable cutoff hour (default 12:00 UTC) exceeds the previous ATH line by a configurable step (default $10). This tracks significant intraday highs over the configured history range.
- Price Grid: Evenly-spaced horizontal grid lines at configurable intervals (default $5) covering the visible price area.
Input Parameters
Visibility
- Show Daily Frame (default: true)
- Show Grid Lines (default: true)
- Show ATH Lines (default: true)
- Auto Contrast for ATH color (default: false)
- Show Patterns and arrows (default: true)
- Show Dashboard (default: true)
Old PA History
- Keep Old PA on chart (default: true)
- Max Old PA per timeframe, 0 to 10 (default: 1)
ATH Lines
- ATH Timeframe (default: H4)
- ATH Cutoff Hour in UTC (default: 12)
- ATH Step in USD (default: 10.0)
- ATH History Bars (default: 5000)
- ATH Base Price, 0 means auto (default: 0.0)
TP Amounts per timeframe (0 = disabled)
- M1, M5, M15, M30: TP1 = 0, TP2 = 0
- H1: TP1 = 10, TP2 = 0
- H4: TP1 = 15, TP2 = 30
- D1: TP1 = 50, TP2 = 100
- W1: TP1 = 150, TP2 = 300
- MN: TP1 = 300, TP2 = 1000
Pattern Parameters
- P1 Max Body Percentage (default: 40%)
- P1 Min Body Position Percentage (default: 60%)
- P2 Min Body Percentage (default: 50%)
- P2 Max Gap in USD (default: 5.0)
- P3 Max Gap in USD (default: 5.0)
- P3 Min Close Percentage (default: 50%)
- P3 Max Mid Body Percentage (default: 50%)
SL and TP Lines
- Show SL TP Lines (default: true)
- Min Timeframe for SL TP Lines (default: H1)
Recommended Usage
This indicator is designed for XAUUSD on a broker with GMT+0 server time. It can be attached to any timeframe. The dashboard always shows all 9 timeframes regardless of the chart timeframe.
Changelog
v1.01 — Bug fix release
- Fixed: PA with confirmed counting bar not invalidated when a later bar breaches the PA zone (paHigh/paLow)
- Fixed: Body violation could be skipped if timer tick was missed at the exact moment counting bar closed
- Fixed: New potential PA not shown in real-time after a confirmed PA — required switching timeframes to refresh
v1.00 — Initial public release
- Multi-timeframe scanner for PAT 1, PAT 2, PAT 3 patterns across M1 to MN
- Real-time dashboard with confirmed and potential status
- SL and TP lines with hit detection
- Daily Frame, ATH Lines, and Price Grid
- Configurable TP amounts per timeframe
