Added Alert Functionality & Clarification on Non-Repainting
New Feature:
Added alerts for confirmed pivot highs and lows
Important Clarification about Non-Repainting:
The indicator's market structure detection is NOT repainting. Here's why:
The market structure lines (both internal and general) are permanent once drawn and never change their past positions. These lines are the core feature of the indicator.
What people might be confusing as "repainting" is the pivot confirmation arrows, which appear after swingSize bars. This is not a bug - it's by design and necessary for accuracy.
Here's why:
To confirm a true pivot high/low, we need to look both backwards AND forwards by swingSize bars
Example: With swingSize = 20, we need 20 bars after a potential pivot to confirm it was truly the highest/lowest point in that 41-bar range (20 bars before + pivot + 20 bars after)
This delayed confirmation is essential for accuracy - without it, we'd get many false pivots that would need to be erased (which would be actual repainting)
The arrows simply mark where these confirmed pivots occurred - they're just visual aids, not trading signals. The trading signals come from the structure lines and their interactions with price.
Think of it like this: You can't know you've reached the top of a mountain until you've walked down the other side a bit. That's not repainting - that's confirmation.