📓
CrossTrade Docs
  • Welcome!
    • Set Up Guide
  • Getting Started
    • Installation
    • User Dashboard
      • XT Control Panel
      • Command Tester
      • Command Builder
    • Alert History
    • TradingView Alerts
      • Dynamic Variables
      • XT Alert Builder
      • Example Indicators
      • Example Strategies
    • VPS Connection Guide
  • Webhooks
    • Overview
    • Commands
      • Place Order
      • Flat Place Order
      • Close Position
      • Reverse
      • Reverse Position
      • Flatten Positions
      • Flatten Everything
      • Cancel Order
      • Cancel Orders
      • Cancel All Orders
      • Cancel Replace
      • Change Order
      • Close Strategy
    • Advanced Options
      • Multi-Account Placement
      • Flatten First
      • Require Market Position
      • Max Positions
      • Bracket Orders
      • Percentage and Tick Prices
      • Limit Order Timeouts
      • Trading Window
      • Bypass Trade Windows
      • Delay Timer
      • Rate-Limiting
      • Alert Commenting
      • Kill Switch
      • Notes
    • Examples & Use Cases
    • Troubleshooting
  • Account Manager
    • Overview
      • How It Works
      • Dashboard
      • Global Settings
      • Frequently Asked Questions (FAQ)
    • Monitors
      • Profit/Loss Thresholds
      • Minimum Profit Drawdown
      • Trailing Drawdown
      • Advanced Usage
    • Account Settings
      • Auto-Flattening
      • Trading Windows
    • Management Logs
  • NinjaTrader
    • ATM Strategies
      • Creating ATM Template
    • Optimizing NinjaTrader Performance
    • Enabling Multi-Provider Mode
  • CrossTrade API
    • Overview
    • Authentication
    • Rate Limiting
    • Webhook Trading
    • Accounts
      • GET Accounts Summary
      • GET Accounts
      • GET Account
    • Positions
      • GET Positions
      • GET Position
      • POST Close Position
      • POST Reverse
      • POST Reverse Position
      • POST Flatten Positions
      • POST Flatten Everything
    • Orders
      • GET Orders
      • GET Order
      • GET Order Status
      • POST Cancel Order
      • POST Cancel Orders
      • POST Cancel All Orders
      • POST Place Order
      • POST Flat Place Order
      • POST Replace Order
      • PUT Change Order
    • Strategies
      • GET Strategies
      • GET Strategy
      • POST Close Strategy
    • Executions
      • GET Executions
      • GET Execution
    • Quotes
      • GET Quote
  • Changelog
    • XT Versions
    • All Updates
  • Affiliate Program
    • Media Kit
  • Social Links
    • Discord
    • TradingView
    • YouTube
    • X (Twitter)
    • Instagram
    • Facebook
    • Reddit
    • Website
    • Blog
Powered by GitBook
On this page
  • Creating TradingView Alerts with Webhooks
  • Step 1 - Open Alert Window
  • Step 2 - Determine your Alert Conditions
  • Step 3 - Provide payload information
  • Basic alert for Indicator entries
  • Basic alert for strategy entries
  • Step 4 - Add Webhook URL
  • Step 5 - Managing Alerts
  1. Getting Started

TradingView Alerts

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

PreviousAlert HistoryNextDynamic Variables

Last updated 2 days ago

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.

TradingView alerts are held on their severs 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.

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:

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.

Remove any default text that may be in that message window when you first load your Indicator or Strategy. You only want to provide the CrossTrade payload. For example: Bot V3 (, , , , , , , , , , , , , , , , hlc3, 5, 2, 2.8, 3, 3, 5, 5, 5, 5, NORMAL, 0.75, 0.75, 25, 3, 2, NORMAL, 3, 3, 4, 4, 9, 5, 1, 1.2, 59, 43, 1.55, 23, 2.4, 6.2, CLASSIC, 9, 19, 0.7, 0.25, 0.6, 5, 19, MAC-Z, 6, 67, 25, 17, 2, 0.6, 61, 80, 20, 80, 20, 50, 14, 30, 15, 30, 0.75, 10,000, Small): order {{strategy.order.action}} @ {{strategy.order.contracts}} filled on {{ticker}}. New strategy position is {{strategy.position_size}} All of that needs to be removed.

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=ES 06-25;

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=ES 06-25;

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

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

order_type=MARKET;

tif=DAY;

Paste into the Message window like this:

Step 4 - Add Webhook URL

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.

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 page or on the CrossTrade web Dashboard below the Command Tester.

Once you start sending alerts from TradingView to CrossTrade, you can review your recent alert history on the in your account.

My Account
CrossTrade Alert History page
Choose your entry signals from the dropdown list
Copy your Webhook URL
Paste your Webhook URL
Manage and Modify your TradingView Alerts
Review your CrossTrade Alert History