pinescripts icon indicating copy to clipboard operation
pinescripts copied to clipboard

Add alertcondition() calls for major events in Peak Reversal indicator

Open Zettt opened this issue 5 months ago • 0 comments

Summary: Add alertcondition() calls to the Peak Reversal indicator script (Peak Reversal.pine) to allow users to automate their trading strategies based on key events.

Tasks:

  1. Identify key events:
    • Band crosses (upwards/downwards)
    • Re-entries into bands after deviations
    • Squeeze starts (when volatility drops below threshold)
    • Squeeze ends (when volatility rises above threshold)
    • Free bar breakouts (full candle outside bands)
    • Any other significant signal already plotted or color-coded
  2. Implement alertcondition() calls:
    • For each identified event, add a corresponding alertcondition() in the script
  3. Add descriptive messages:
    • Each alert should have a clear, customizable message describing the event and context (e.g., band crossed up, squeeze started, etc.)

Acceptance Criteria:

  • All major events in the indicator have a corresponding alertcondition().
  • Alert messages are descriptive and easy to modify by the user.
  • Code is commented and organized for maintainability.

File: Peak Reversal.pine


This enhancement will significantly improve the script's usability for automated trading and alerting.

Zettt avatar Sep 01 '25 11:09 Zettt