TradingView Alerts

A step-by-step guide to your first TradingView Webhook Alert with CrossTrade

Creating TradingView Alerts with Webhooks

To set up an alert, you can utilize various trigger conditions and decide whether the alert should fire once or repeatedly until you disable it. When sending alerts to CrossTrade its important to remember that you are only including the specific instructions needed to communicate with NinjaTrader. The notifications for these alerts can be received via pop-ups, emails, and even push notifications if you have the TradingView mobile app installed.

circle-info

TradingView alerts are held on their servers and will continue to operate even if you are not logged in.

Step 1 - Open Alert Window

Inside your Supercharts, click to open an Alert window from the top or right navigation clock button.

Step 2 - Determine your Alert Conditions

To set up an alert, you can utilize various trigger conditions and decide whether the alert should fire once or repeatedly until you disable it. You can customize the Expiration date of the alert and provide a name to keep your alerts organized.

circle-info

If you intend to automate from an Indicator or Strategy, you will link your alert to the trigger Condition from that indicator or strategy.

If your indicator has specific buy and sell conditions, you will see those in the drop down like this standard RSI indicator offers, Regular Bullish Divergence and Regular Bearish Divergence signals.

circle-info

If your indicator does not have a condition you can use to reliably trigger the alert, its incompatible.

Step 3 - Provide payload information

In the message field you will supply the payload information you want to send to CrossTrade for relay to NinjaTrader. You can customize this however you want based on the methods NinjaTrader will accept.

circle-exclamation
circle-info

ONLY CrossTrade compatible information can be inside the message window. Any non-compatible text will cause the alert to fail.

Basic alert for Indicator entries

In this example, we are using a basic PLACE command for a Buy order.

key=your-secret-key;

command=place;

account=sim101;

instrument=ES1!;

action=buy;

qty=1;

order_type=market;

tif=day;

flatten_first=true;

Basic alert for strategy entries

In this example, we are using the strategy variables to supply the Action and the Qty to your alert dynamically, based on the settings of the strategy.

key=your-secret-key;

command=place;

account=sim101;

instrument=ES1!;

action={{strategy.order.action}};

qty={{strategy.order.contracts}};

order_type=market;

tif=day;

circle-check

Step 4 - Add Webhook URL

From the Notifications tab of the alert window, you will need to provide your specific CrossTrade webhook URL. The URL can be found on your My Accountarrow-up-right page or on the CrossTrade web Dashboard below the Webhook Trader.

triangle-exclamation

Webhooks require 2FA to be enabled on your TradingView account. If you have not used webhooks before, you will see this prompt

Step 5 - Managing Alerts

Managing alerts is straightforward; you can edit, clone, or delete them from the alert manager, and even adjust alert conditions directly on the chart for easy visualization. Alerts that have been triggered are logged, and you can access and review this log to track past market events and alert responses. On the right hand side of the chart, click the clock icon.

Once you start sending alerts from TradingView to CrossTrade, you can review your recent alert history on the CrossTrade Alert History pagearrow-up-right in your account as well as on the XT Add-on.

Last updated