Scata wrote: Fri Jun 13, 2025 9:57 pm
I don't understand if it repaints or not, because after a while it blocks my mt4, maybe the code is too heavy
First arrow (buy OR sell)

Then opposite direction only

Alternating pattern continues

Arrows persist when changing timeframes

One arrow per direction at a time
The indicator will show: Buy → Sell → Buy → Sell in sequence, never two consecutive signals of the same type!
Scata wrote:
I don't understand if it repaints or not, because after a while it blocks my mt4, maybe the code is too heavy
Fixed the repainting issues:
No Current Bar Processing: Changed loop from i >= 0 to i >= 1 - this skips the current bar (i=0) entirely by default.
Separate Current Bar Logic: Added optional current bar processing only when ShowCurrentBarSignal = true, but it doesn't update the global signal state (no alerts, no state changes).
Alert Fix: Changed alert condition from i <= 1 to i == 1 so alerts only trigger on bar 1 (the most recently completed bar).
Default Non-Repainting: Set ShowCurrentBarSignal = false by default.
How it works now:

Non-Repainting: Signals only appear on completed bars (bar 1 and older)

Stable Signals: Once a signal appears, it won't disappear or change

Optional Current Bar: You can enable ShowCurrentBarSignal = true if you want to see potential signals on the current bar (these will repaint)

Clean Alerts: Alerts only fire once when a bar closes with a signal

Alternating Pattern: Still maintains buy→sell→buy→sell sequence
If can use..that good.........if still cannot..just remove the indi.
"My Forex Holy Grail? Sure, I'll share it. It's a magical PDF that costs $997 and the first chapter is titled: 'How to Sell a $997 PDF.'"
