Skip to content

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

Description

@Zettt

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions