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
  • Alert Latency
  • Formatting Issues
  • Always Remember the Semicolon
  • Separate Multiple Accounts by Comma
  • Use the Full Account Name
  • Use All the Required Fields
  • Unable to Submit to Infrastructure Error
  • Something Went Wrong, check message format
  • ATM Troubleshooting
  • Opening Partial Contracts
  • Unable to Load ATM Strategy Template Error
  • ATM1 not saved
  • ATM not opening TP/SL order bracket
  • Simple Trade Copier
  • Test Resources
  • TradingView Test Indicator
  • TradingView Test Strategy
  1. Webhooks

Troubleshooting

In this section we'll highlight and explain the most common issues you may encounter that require troubleshooting; including formatting issues and nuances when using ATM strategies.

PreviousExamples & Use CasesNextOverview

Last updated 1 month ago

Alert Latency

Alert lag or latency can occur on both sides of CrossTrade for different reasons. From TradingView: Alert delays can occasionally occur, especially around the top of the hour and major news announcements where their server load increases. CrossTrade marks the received time exactly, but the time it takes to arrive at our front door is out of our control. TradingView official response: "Unfortunately, currently signals can be sent with a delay (several seconds) at the beginning of trading sessions and at the beginning/end of an hour, because the load on the servers increases. We are already working on this issue and although there is no ETA yet. Please accept our apologies for the inconvenience." To NinjaTrader: Execution latency can occasionally occur and is influenced by a number of factors like your internet connection and PC specs. There are a number of ways you can optimize NT8 that we outline here and strongly suggest all users consider implementing for the best experience.

Formatting Issues

Did you forget the semi colon on the end? Did you add a semi colon in between accounts when it should be a comma? Are you missing a required field for your command type? These are the common reasons you'll see a formatting issue. Let's break them down one by one...

Always Remember the Semicolon

key=my-secret-key; command=PLACE; account=sim101; instrument=ES 03-25; action=BUY; ‍qty=1; order_type=MARKET; tif=DAY;‍

Separate Multiple Accounts by Comma

‍key=my-secret-key; command=PLACE; account=sim101,sim102,sim103; instrument=ES 06-25; action=BUY;‍qty=1; order_type=MARKET; tif=DAY;

Use the Full Account Name

Examples: (NT Sim) account=sim101; (NT Demo) account=demo123456789;

Use All the Required Fields

NinjaTrader's available commands require (R) certain fields be present for the command to be implemented. For example a PLACE command requires the Account, Instrument, Action, Qty, Order Type and TIF (time in force) to be present. key=my-secret-key; - Required by CrossTrade command=PLACE; - Required by NinjaTrader account=sim101; - Required by NinjaTrader instrument=ES 06-25; - Required by NinjaTrader action=BUY; - Required By NinjaTrader ‍qty=1; - Required by NinjaTrader order_type=MARKET; - Required by NinjaTrader tif=DAY; - Required by NinjaTrader

Unable to Submit to Infrastructure Error

If you submit an alert with an expired contract, you'll encounter this error message. Be sure to update your alerts to the front month contract after rollover to ensure you're submitting orders on an active contract. Otherwise, NinjaTrader will return the following error:

Something Went Wrong, check message format

This error message is usually an indication that you have supplied a partial contract amount; which NinjaTrader does not support. In the example below you can see 3.664901 is the qty for this command, which NT8 rejects. A round number of contracts or shares is require.

ATM Troubleshooting

Opening Partial Contracts

CrossTrade can not 'see' your setting on NinjaTrader; which means you'll need to ensure that the settings between the two platforms match. For example, you may be wondering why your ATM is not opening a trade. Chances are it's because the quantities do not match. If your alert information is like this: ‍key=my-secret-key; command=PLACE; account=sim101; instrument=ES 06-25; action=BUY; qty=1; order_type=MARKET; tif=DAY; strategy=your-atm-name;‍

But on NinjaTrader the ATM Strategy is set to 2 Order Qty, the position will open with only 1 contract using your inner most Stop and Target bracket.

Unable to Load ATM Strategy Template Error

If you're a CrossTrade user trading through NinjaTrader's Automated Trading Interface (ATI), you might have encountered the "Unable to load ATM strategy template" error. This is fairly common issue, but thankfully, it's also one that's relatively easy to fix with the right approach.

This guide will walk you through the troubleshooting steps to resolve the error.

ATM1 not saved

NinjaTrader 8 automatically creates the default ATM1 strategy template the very first time you submit an order without selecting a saved ATM strategy. So, ATM1 is NinjaTrader's placeholder for your most recent unsaved custom strategy.

Here’s how it works in detail:

  • If you place an order using the SuperDOM, Chart Trader, or any other order entry interface with ATM Strategy set to "Custom", and you don't save it manually...

  • NinjaTrader will automatically assign it as ATM Strategy: ATM1.

  • This ATM1 strategy is created as a temporary, default template, which includes the stop loss, profit target, and other settings you specified at that time.

  • If you don’t save the strategy manually, it disappears once the platform is closed or the strategy is replaced.

To preserve a custom strategy:

  • After configuring your ATM strategy settings in the order panel, click the "Save As" button next to the ATM Strategy dropdown.

  • Give it a name (e.g., “CrossTrade Rocks!”) and it will then appear in the dropdown for reuse.

So, ATM1 is NinjaTrader's placeholder for your most recent unsaved custom strategy.

ATM not opening TP/SL order bracket

Inside your Chart Trader properties you have options for how the ATM is selected. If not set to "Select active ATM strategy on order submission" then orders can be placed in the non-active ATM template and result in a placement without the TP and SL brackets included. To resolve: right click on your Chart Trader and select Properties. You will see this window:

Simple Trade Copier

Test Resources

These two TradingView resources are designed to help troubleshoot by firing alerts quickly.

TradingView Test Indicator

To help with Troubleshooting issues we offer a free TradingView indicator that will force signals to be generated on every bar. When using this with the trigger "Once per bar close" each bar will send a single alert.

Be sure to also use the "flatten_first=true;" in your Alert Message so that each bar opens a new position.

TradingView Test Strategy

Similarly to the Test Indicator, this strategy is designed to provide a code example of how to establish buy and sell signals that utilize the {{strategy.order.action}} variable, as well as provide a way to test your alerts using the variable in place of the BUY or SELL in your Action field. (e.g. action={{strategy.order.action}} vs. action=BUY;)

Each pine script strategy is coded differently and the strategy.order.action variable is not a default in all strategies.

The free '' found in the NinjaTrader Ecosystem forum does not copy ATM templates from one account to another. It simply copies order direction and contract information. We do not recommend using this copier with crosstrade beyond very simple order submissions.

Simple Trade Copier
Optimizing NinjaTrader Performance | CrossTrade Docs
Troubleshooting the 'Unable to Load ATM Strategy Template' Error in NinjaTraderCrossTrade
XT Troubleshooting Indicator by CrossTradeTeam — TradingViewTradingView
XT Strategy Help by CrossTradeTeam — TradingViewTradingView
Logo
Logo
Logo
Logo