CrossTrade Docs
Basic CommandsAdvanced Commands
  • Welcome!
    • Set Up Guide
  • Getting Started
    • Installation
    • User Dashboard
      • XT Control Panel
      • Manual Trader
      • 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
  • Step 1 - Download and Install the Add-On
  • Install the Add-On
  • Enable the NinjaTrader ATI
  • Connect to Live Data
  • Log In to CrossTrade
  • Send Test Signal (optional)
  • Step 2 - Create a TradingView Alert
  • Determine your Alert Conditions
  • Provide payload information
  • Add Webhook URL
  • Managing Alerts on TradingView
  • Step 3 - Reviewing Alerts on CrossTrade.io
  1. Welcome!

Set Up Guide

Let's walk through the steps to get you CrossTrading

PreviousWelcome!NextInstallation

Last updated 15 days ago

1

Download the CrossTrade Add-On

Install and connect to CrossTrade

2

Create an alert on TradingView

Add your webhook URL and alert message

3

Review Alert History

Visit crosstrade.io/user/alert-history to review your alerts

This video tutorial will walk you through the steps outlined on this page. We recommend reviewing both to ensure you master the Set Up process. You got this! 😎

Step 1 - Download and Install the Add-On

Install the Add-On

Once downloaded, open NinjaTrader and install the Add-on by clicking on Tools > Import > NinjaScript Add-On.

Before you restart NinjaTrader, enable the ATI!

Enable the NinjaTrader ATI

Enable the Automated Trading Interface (ATI) to accept your external commands by going to Tools > Options > Automated Trading Interface.

Now restart NinjaTrader

Connect to Live Data

In order for your order execution to be supported you need to connect to a live data feed. This can be a purchased data subscription from NinjaTrader directly or a data feed that is provided through a prop evaluation account.

Level 1 data is sufficient for XT orders - Level 2 data is not required.

Log In to CrossTrade

After you have restarted NinjaTrader. it's now time to Log In with your email and password.

Send Test Signal (optional)

After connecting to the Add-on you will see it is not shown as Connected on your Dashboard in the top right corner. The secret key is preloaded for convenience, clicking the send button will send this basic buy command for 1 ES 03-25 contract to NinjaTrader in the Sim101 account. Sending test signals from the Manual Trader is an optional step to see orders being sent to NinjaTrader in the same way they will flow externally. You can connect the add-on and start sending directly from TradingView, but we feel this helps get you familiar with the various command types.

You can use the editor to test other command types found on the Basic and Advanced Commands tabs. Note that you will need to supply certain information, highlighted in red, to the command lines in order to make them compatible.

Dynamic strategy variables {{strategy.order.action}} are only used on TradingView and not compatible inside the Sandbox.

Step 2 - Create a TradingView Alert

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

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.

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 the default text in the Message window!

ONLY the CrossTrade command can be present. 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.

Here is an example of a basic PLACE command for a Buy order.

key=Your CrossTrade Secret Key; command=PLACE; account=sim101; instrument=ES 06-25; action=BUY; qty=1; order_type=MARKET; tif=DAY;

Add your secret key from your dashboard to the command. If you copy a command example from your Dashboard, the key is already injected. It should look something like this key:1x2x3x4x5x6x7x8x9x10; <--- Don't forget the semi colon!

If you are automating a strategy use the following command example with the strategy variables: key=Your CrossTrade Secret Key; (always keep private!) command=PLACE; account=sim101; instrument=ES 06-25; action={{strategy.order.action}}; qty={{strategy.order.contracts}}; order_type=MARKET; tif=DAY;

Add Webhook URL

Your webhook URL is found on the Dashboard and your Account page

Copy the webhook url from either location to your clipboard...

On 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 on TradingView

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.

Note: TradingView alerts do not dynamically update when you change a condition in your indicator/strategy or chart setting. If you make changes, be sure to update the alert in the Condition dropdown.

Step 3 - Reviewing Alerts on CrossTrade.io

Great Job! You are on your way to becoming a CrossTrade master.


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

CrossTrade Alert History page
https://releases.crosstrade.io/latest.zip
Click to Download