Command Editor
How to use the Command editor
Last updated
How to use the Command editor
Last updated
The Command Editor is a dedicated space where users can create and test how their trade commands interact with NinjaTrader. It allows you to check if your orders are flowing from CrossTrade to NinjaTrader as expected. Essentially, the editor serves as a quality check to ensure your integration works exactly as it should, saving you from unwanted surprises when it’s time to go live.
💡 The Command Editor's purpose is strictly for testing predefined commands between CrossTrade and NinjaTrader.
When using the Test Sandbox, users have access to basic and advanced commands tabs, which provide the specific commands that can be tested within the sandbox. Here’s how it works:
Predefined Commands Only: The sandbox accepts only the commands provided within the basic and advanced tabs in your dashboard. These commands include the Basic commands supported by NinjaTrader and Advanced commands which include specific CrossTrade enhancements.
No API Functionality: It’s important to remember that the sandbox does not support dynamic variables or API testing. This means that while you can test the flow of orders using the provided commands, the sandbox isn’t designed to interact with platforms like TradingView or to process dynamic data from external sources.
No Dynamic Variables: The Editor does not support dynamic variables from your TradingView strategies or indicators. You will need to test those from TradingView directly.
By limiting the editor to static commands, we ensure that the testing process remains straightforward and reliable.
Getting started with the Editor is easy. Once logged into your CrossTrade account, follow these simple steps:
Navigate to the Editor: Find it within the user dashboard, under the testing section.
Select Basic or Advanced Commands: Depending on what you want to test, you can choose from the available command sets to simulate different scenarios.
Submit a Sample Payload: Use the predefined commands to test the flow of orders to NinjaTrader.
Verify the Results: Confirm that the orders are flowing through as expected, ensuring that everything is functioning correctly.