6. Testing Your First Trade

Use the built-in payload tester to verify your setup.

NinjaSync includes a built-in payload tester at http://localhost:4003/test that lets you build, preview, and send real test orders directly from your browser. Use it to verify your setup before going live.

How to Use the Tester

01

Open the Tester

Navigate to http://localhost:4003/test or click Payload Tester from the settings/dashboard.

02

Select an Order Type

Choose from the dropdown. The form fields update automatically to show only the relevant inputs for that order type.

03

Fill In the Fields

Enter account name, ticker, quantity, prices, and any other fields required by the order type.

04

Generate and Send

Click Generate to preview the JSON, then click Send to Bridge to execute the order in NinjaTrader.

Output Panels

The tester shows three output panels on the right side:

PanelDescription
JSON PayloadThe raw JSON that will be sent to the bridge. You can edit it directly before sending.
TView Paid StrategyReady-to-paste TradingView alert template using placeholders for paid/locked Pine strategies.
Open Source StringsPine Script string-building code for open-source strategies. Copy directly into your alert() call.

Quick Test Example

Try a simple Market Long on a sim account to verify everything is working:

JSON
{
  "alert": "Market Long",
  "account": "Sim101",
  "ticker": "NQ MAR26",
  "qty": "1"
}

Note

Toggle between Local and ngrok send targets to verify your tunnel is working end-to-end. The top-right badge shows bridge status (Online/Offline), updating every 10 seconds.