Step by Step Guide
We'll walk through the 3 steps to get you CrossTrading
Last updated
We'll walk through the 3 steps to get you CrossTrading
Last updated
Install and connect to CrossTrade
Fire your first test signal from CrossTrade to NinjaTrader
Add your webhook URL and alert message
Once downloaded, open NinjaTrader and install the Add-on by clicking on Tools > Import > NinjaScript Add-On.
Before you restart NinjaTrader, complete Step 3!
Enable the Automated Trading Interface (ATI) to accept your external commands by going to Tools > Options > Automated Trading Interface.
Now restart NinjaTrader
After you have restarted NinjaTrader. it's now time to Log In with your email and password.
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 12-24 contract to NinjaTrader in the Sim101 account. Sending test signals from the sandbox is an optional step, 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 sandbox 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.
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.
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 CrossTrade Secret Key; (always keep private!) command=PLACE; account=sim101; instrument=ES 12-24; action=BUY; qty=1; order_type=MARKET; tif=DAY;
The quantity you set inside your message payload will supersede your ATM template setting.
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.
Great Job! We recommend learning about the XT Control Panel next...