TradingView Alerts
A step-by-step guide to your first TradingView Webhook Alert with CrossTrade
Last updated
A step-by-step guide to your first TradingView Webhook Alert with CrossTrade
Last updated
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 alert message to include specific information or values that are relevant at the time the alert is triggered. The notifications for these alerts can be received via pop-ups, emails, and even push notifications if you have the TradingView mobile app installed.
Inside your Supercharts, click to open an Alert window from the top or right navigation clock button.
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.
If you intend to automate from an Indicator or Strategy, you will link your alert to the trigger Condition from that indicator or strategy.
For example, if your indicator has specific buy and sell conditions, you will see those in the drop down like this:
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.
In this example, we are using a basic PLACE command for a Buy order.
key=your-secret-key;
command=PLACE;
account=sim101;
instrument=ES 03-25;
action=BUY;
qty=1;
order_type=MARKET;
tif=DAY;
flatten_first=true;
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=ES 03-25;
action={{strategy.order.action}};
qty={{strategy.order.contracts}};
order_type=MARKET;
tif=DAY;
flatten_first=true;
From the Notifications tab of the alert window, you will need to provide your specific CrossTrade webhook URL. You can also enable alerts for pop-ups, emails, and mobile push notifications if you have the TradingView app installed.
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.