Attachments forums

List of attachments posted on this forum.


All files on forums: 163199

Re: Is this setup valuable? FS-17 by AI

updowncrude, Wed Jun 11, 2025 3:33 am


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:

✅ Only past bars are used for swing evaluation:

mql4
Copy
Edit
for (int j = checkBar - LookbackBars; j < checkBar; j++) {
if (High[checkBar] < High[j]) isHigh = false;

yaml
Copy
Edit
🔁 It compares `checkBar` to **earlier bars only** — not future ones.

2. ✅ **Swing labels and arrows are fixed** once printed:
- The swing point is confirmed the moment the current bar closes and **remains untouched**.
- The buffer writes to `checkBar`, not future bars.

3. ✅ Uses **non-centered, backward-only** confirmation logic:
- No lookahead like `high[i+1]`, `low[i+2]`, etc.
- Therefore, **zero repainting** from lookahead errors.

---

## 🟡 What It Does Not Do:

- 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.

---

## ✅ Can You Use It in Live Trading?

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

---
All files in topic