ChatGPT said:
Thanks for sharing the .mq4 file. Here's a detailed check of your indicator:
The file is cleanly structured with clear external inputs and multiple buffer arrays such as:
mql4
Copy
Edit
datetime upmarkers[][4], downmarkers[][4], uprh[], dnrh[], bbreakup[], bbreakdn[];
It’s well-written and seems to be a classic 123-pattern structure detector, with color-coded visualization and band break logic.
Let’s inspect repainting possibility by focusing on key behaviors:
From the decoded start, this script is likely using fixed buffer values and scanning past bars.
The logic appears to identify past patterns (swing highs/lows, RH, band breaks) rather than modifying the current bar's signal.
These are commonly used in repainting indicators.
From the setup, this script seems to avoid using bar index 0 for signal painting.
If it plots arrows only after a complete 123 pattern is confirmed, then it is non-repainting. But if it plots as price forms the pattern and updates later → some semi-repainting behavior may occur on latest candle.
Yes, conditionally:
It confirms 123 pattern after it's fully formed It uses current bar (i=0) in calculations and updates buffers in live
You use signals from bar 1 or bar 2 (past completed bars) You use arrows appearing on bar 0 to place live trades
Use the arrow/signal from bar 1 or 2 only, and ignore signals forming on the current candle (i=0). This ensures no repainting affects your entries.
Mostly Non-Repainting — Designed to confirm 123 patterns based on completed candles.
Safe for Live Trading if you follow above buffer rules and do not trade on current forming candle.
Well-suited for pattern-based swing trading on H1, H4, Daily timeframes.