Alerts

Lune Automated Strategies support a fully configurable alert system within TradingView, giving users real-time notifications for entries, exits, and partial exits. These alerts can

Markdown
Updated Jul 4, 2026

Overview#

Lune Automated Strategies support a configurable alert system within TradingView, giving you real-time notifications for entries, exits, and partial exits. These alerts can also be used with Lune Auto Trader to run automated trade execution based on signal events.

The alert system lets you define custom messages, select alert types, and set how TradingView handles these notifications.

Note

If you use Lune Auto Trader, alerts from this system can be used to automate your trades.
Refer to this guide to get started with Lune Auto Trader automation: Automate TradingView Strategies Guide

How Alerts Work#

The alert system uses TradingView's built-in strategy alert function. When you create an alert, set your alert message to:

{{strategy.order.alert_message}}

This setting tells TradingView to listen to the alerts embedded in the Lune strategy and trigger the right alert messages.

Alert Settings#

You can toggle alerts for the following event types in your strategy settings:

Alert TypeDescription
Entry AlertsReceive alerts when a long or short trade entry is triggered.
Exit AlertsGet notified when a position is closed based on an exit condition.
Partial Exit AlertsAlerts are triggered when partial take profit levels are reached.

Each alert type can be enabled or disabled on its own for long and short trades.

Custom Alert Messages#

Lune lets you define custom alert messages for each trade event type. These messages are included in the alert notification sent by TradingView and can be set in the strategy settings.

Alert Message FieldPurpose
Entry Long Alert MessageTriggered when a long entry is signaled.
Entry Short Alert MessageTriggered when a short entry is signaled.
Exit Long Alert MessageTriggered when a long trade exits.
Exit Short Alert MessageTriggered when a short trade exits.
Long Partial Exit MessageTriggered on partial TP level for long trades.
Short Partial Exit MessageTriggered on partial TP level for short trades.

These messages work well with webhook integrations, mobile push notifications, or automated systems like Lune Auto Trader.

Best Practices#

  • For automation: Copy your custom alert message into the alert box when creating an alert in TradingView.
  • Webhook use: These messages can include JSON for integrations with third-party bots and systems.
  • Always use the alert message {{strategy.order.alert_message}} when creating an alert.

How to Set Up Alerts in TradingView#

  1. Open the chart with your configured Lune Automated Strategy.

  2. Open your strategy settings and go to the Alert Configuration section. Make sure all alerts are enabled. Fill out the text boxes with your alert message.

  3. Create a TradingView alert, then set your alert message to {{strategy.order.alert_message}}. Customize your settings and notifications.

  4. Click Create. That's it.

Was this page helpful?