Fix TradingView AYN Alerts

Job ID: 40413186

Budget: $30 – $250 USD

My custom AYN indicator on TradingView is plotting its on-chart signals correctly, yet the built-in alerts are firing at the wrong moments. I need the script rebuilt so every alert lines up perfectly with the exact bar closing where the AYN indicator prints its signal.

Scope of work
• Review the current Pine Script and identify why alerts are triggering incorrectly.
• Rewrite or optimise the code in the latest Pine Script version (v5 preferred) while preserving the visual signals already working on the chart.
• Add clean, deterministic alertcondition() logic that fires only when the AYN plot marks its entry/exit signal.
• Test across multiple symbols and time-frames to confirm zero false triggers or missed signals.
• Provide the final .pine file plus brief instructions on how to add the alert in TradingView’s UI.

Acceptance criteria
1. When the indicator plots a signal, the associated alert triggers on that bar without delay or duplication.
2. No alerts fire at any other time.
3. Code is NOT Readable, commented, and compatible with TradingView’s latest public release.

If you have proven experience debugging Pine Script and delivering rock-solid alert logic, I’d like to work with you on this quick but critical fix.