First arrow (buy OR sell)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
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:
If can use..that good.........if still cannot..just remove the indi.