Smart ABCD Pattern Structure Indicator (Pullback Logic + EA Compatible + Visual Entry Box)

Specification

This indicator detects ABCD structure-based trading setups using a custom pullback and breakout logic, as discussed below. It works for both bullish and bearish scenarios (mirror logic), with user control over direction selection on the chart.

───────────────
🔹 1. Pullback Logic:
- Pullback is confirmed only after at least 2 red candles (in bullish case) have formed.
- The body of one of these red candles must close below the wick of the last bullish green candle (the one that made the last swing high).
- It doesn’t matter if the red candles are continuous or appear after gaps with green candles in between — what matters is that:
  → There are minimum 2 red candles.
  → The 2nd red candle must close below the 1st red candle (not be a baby candle).
- If a red candle immediately after green closes below the wick, still wait for the second red candle to confirm the structure.

───────────────
🔹 2. Point A Logic:
- After the pullback condition is satisfied, the next green candle is *assumed* as Point A.
- This A point can update dynamically if higher green candles form.
- Once 2 valid red candles form after A, no further A reassignment is done.

───────────────
🔹 3. Point B Logic:
- This is the lowest wick formed between Point A and the candle that confirms Point C.
- Only after Point C is confirmed, B becomes fixed.

───────────────
🔹 4. Point C Logic (Breakout Confirmation):
- A bullish breakout is confirmed only when a candle body closes above the wick high of assumed Point A.
- As soon as this close happens, A, B, and C become fixed.
- Wick breakout is NOT sufficient — body close required.

───────────────
🔹 5. Point D Logic (Entry Trigger):
- After Point C is confirmed, the system waits for any candle (body or wick) to touch Point C's price level.
- If this happens, the setup is marked as ✅ triggered and the box turns GREEN.
- If no candle touches C and price keeps going away, setup remains untriggered (YELLOW).

───────────────
🔹 6. Invalidation Logic:
- If, after assuming Point A but before confirming Point C, any candle breaks below the leg of Point A (lowest point of pullback) — the setup is INVALID.
- Invalidation causes that entire box to be marked RED (if enabled) or removed (based on settings).
- After invalidation, a new structure search begins from the next candle.

───────────────
🔹 7. Visual Display:
- Each valid setup will be drawn as a shaded box on the chart:
  → Yellow box: Pattern formed but Point D not yet triggered.
  → Green box: Point D triggered (entry valid).
  → Red box: Setup invalidated.
- Each Point (A, B, C, D) will be labeled optionally.
- A separate smaller box will mark the Pullback zone (2+ red candles).
- All box styles, label visibility, and colors should be user-editable.
- Boxes should have a thin outline that covers the candles included in the setup.

───────────────
🔹 8. Settings & Inputs:
- Enable Bullish or Bearish pattern (drop-down or checkbox)
- Max candles to scan in history (date-based or candle-based)
- Show triggered boxes: Yes/No
- Show untriggered boxes: Yes/No
- Show invalidated (red) boxes: Yes/No
- Show pullback boxes: Yes/No
- Label Points A/B/C/D: Yes/No
- Color and Style customization for all elements

───────────────
🔹 9. Box Numbering and EA Integration:
- Each box should have an auto-generated unique number shown on chart.
- Only the currently active (most recent valid) box will remain active for EA.
- When a new valid box forms, the previous active one is deactivated.
- This allows EA to target the current live setup only.
- The indicator should be designed with EA-compatibility in mind.
- Entry can be semi-automated (manual click on the box), or fully automated when D is touched — developer will decide based on EA requirements.

───────────────
🔹 10. Additional Optional Features:
- Box expiry feature: option to auto-expire a box if D is not triggered within X candles.
- Stats Panel (optional): show total boxes, triggered, invalidated, etc. on chart.

───────────────
🔹 11. Bearish Setup (Mirror Logic):
- All above logic applies in reverse for bearish patterns.
- Pullback = 2 green candles; breakout = red close below wick of assumed bearish Point A.
- User can select from settings whether to activate bullish or bearish side.

This description covers almost all visual logic, confirmation structure, invalidation rules, and inputs necessary to build a complete indicator for both real-time trading and historical backtesting. Please follow each logic point exactly as outlined. 
Smart ABCD Structure Detector (Pullback Logic + Bullish/Bearish + EA-

Keywords / Tags:
MQL5, MT5, MetaTrader 5, custom indicator, ABCD pattern, pullback logic, bullish bearish, semi-automated EA, trading bot ready, visual entry box, backtesting support, price action strategy, candle structure indicator, EA integration, zone trigger indicator, Forex algorithmic, indicator + EA synchronization

Responded

1
Developer 1
Rating
(313)
Projects
559
35%
Arbitration
79
32% / 43%
Overdue
203
36%
Free
2
Developer 2
Rating
(3)
Projects
3
0%
Arbitration
6
17% / 67%
Overdue
0
Free
3
Developer 3
Rating
(266)
Projects
598
35%
Arbitration
64
20% / 58%
Overdue
147
25%
Free
Published: 1 article, 22 codes
4
Developer 4
Rating
(58)
Projects
90
43%
Arbitration
4
0% / 100%
Overdue
3
3%
Working
5
Developer 5
Rating
(152)
Projects
228
80%
Arbitration
22
27% / 50%
Overdue
11
5%
Free
Published: 24 articles, 1882 codes
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
(10)
Projects
15
13%
Arbitration
3
33% / 67%
Overdue
2
13%
Working
10
Developer 10
Rating
(4)
Projects
6
33%
Arbitration
7
14% / 57%
Overdue
1
17%
Free
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(297)
Projects
476
40%
Arbitration
105
40% / 24%
Overdue
81
17%
Busy
Published: 2 codes
13
Developer 13
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
14
Developer 14
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
15
Developer 15
Rating
(42)
Projects
49
29%
Arbitration
14
21% / 64%
Overdue
1
2%
Loaded
16
Developer 16
Rating
(322)
Projects
499
67%
Arbitration
5
40% / 0%
Overdue
4
1%
Free
Published: 8 codes
17
Developer 17
Rating
(24)
Projects
30
13%
Arbitration
12
0% / 75%
Overdue
8
27%
Free
18
Developer 18
Rating
(4)
Projects
8
50%
Arbitration
1
0% / 100%
Overdue
1
13%
Working
Similar orders
Ninjatrader bot 30+ USD
I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
Pro firm setup 30+ USD
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us
Mam kody EA Bot. Chciałbym je dokończyć, dopracować i ukończyć projekty. Chciałbym otrzymać pliki SET po ukończeniu EA. Jeśli jesteś zainteresowany, skontaktuj się ze mną. Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w
I am a Professional Forex Trader, actively working in the financial markets with a strong focus on how price truly moves. I specialize in logic, market structure, and institutional behavior rather than indicators or guesswork. I have mastered: • Market Structure • Trend Identification • Elliott Wave Theory • Wyckoff Logic My core expertise lies in: • Deep understanding of market structure • Identifying
EA for prop firms 30 - 500 USD
Hi, I am looking to purchase a MT5 EA that can show consistent profitability 5% each month with drawdown less than 9%. I am not ready to build a new one from scratch as i do not have the strategy in mind yet so i do not want to take the risk of building one but not sure if it works. Only apply if you have an existing proven and tested EA that can sell to me together with the source code. The Ea is for prop firm even
Early Killer EA 30+ USD
It must have automated stop loss. Something that can end poverty and kill the market early.It must take the trades for me whenever I start it it must work on tradeport ea
أبحث عن خبير تداول آلي (EA) أرفقتُ فيديو له. يقوم هذا الخبير بوضع أوامر شراء معلقة وبيع معلقة على بُعد 250 نقطة أعلى وأسفل السعر الحالي كل دقيقة، مع تحديد مستوى وقف الخسارة (SL) عند 300 نقطة ومستوى جني الربح (TP) عند 500 نقطة. إذا تم تفعيل أيٍّ من هذين الأمرين خلال الدقيقة، يتم إلغاء الآخر. لا يقوم الخبير بوضع أي أوامر معلقة حتى يتم الوصول إلى مستوى وقف الخسارة أو جني الربح، ثم يضع مجموعة جديدة من الأوامر المعلقة في
Bring in your expertise for specific symbol Prepare expert for Live chart Creating .set for specific symbol Live Chart Optimization , symbol specific Everything is coded already therefore needs Implementations
Due to price constraints, I am shifting what I would like. Would you be able to develop part of a strategy that automatically screens and selects stocks for trading? For example, screens for stocks up 20% with 500k volume for the day, and automatically begin trading them according to the strategy I already use. I use NinjaTrader to day trade my Interactive Brokers account and would like to add an automatic
The scanner will scan all currency base on MACD Diverdgent, my strength indicator and my better volume indicator. All this would be across all time frame and all currency pairs

Project information

Budget
30+ USD