Gentlemen,
The three indicators you see in this picture are coded by AI.
I am just a monkey jumping one indicator to another all along been.
About the trading indicator:
Does RollingSwing100_EMA_FirstLabel_v2.mq4 Repaint?
No — it does not repaint, based on the logic you shared.
Here's why:
mql4
Copy
Edit
for (int j = checkBar - LookbackBars; j < checkBar; j++) {
if (High[checkBar] < High[j]) isHigh = false;
yaml
Copy
Edit
2.
- The swing point is confirmed the moment the current bar closes and **remains untouched**.
- The buffer writes to `checkBar`, not future bars.
3.
- No lookahead like `high[i+1]`, `low[i+2]`, etc.
- Therefore, **zero repainting** from lookahead errors.
---
##
- It does **not** wait for confirmation (like ZigZag with 2 future bars), so:
- You may get **early swing signals**, and some may be close to the actual pivot but not perfect.
- This is **expected** in non-repainting indicators — a good tradeoff.
---
##
Yes — it's **safe for live trading**, as long as:
- You **understand** it's showing **"real-time" swing highs/lows** based only on history
- You combine it with:
- Trend filters (e.g., 200 EMA)
- Structure-based confirmation (e.g., HH/HL or LH/LL)
- Entry/exit rules (e.g., engulfing, breakout, RSI)
It’s especially good for:
- **Swing high/low trailing**
- Confirming reversals without fear of repaints
- Entry signals on strong breakouts from a swing
---