Strategies
Strategies runs your TradingView strategies and indicators inside NinjaTrader 8. Paste a Pine Script, pick the contract, and press Start. CrossTrade converts the script and the CrossTrade add-on runs it on your own computer. There is no TradingView alert or webhook in between, so nothing has to stay open in a browser.
The script's first line decides how it runs, as on TradingView:
| The script starts with | It runs as | What it does |
|---|---|---|
strategy( | A strategy | Places its own orders with strategy.entry, strategy.exit, strategy.order and strategy.close on the account you pick. They go to your broker as real NinjaTrader orders |
indicator( or study( | An indicator | Draws its plots and shapes on the chart and places no orders itself. Each of its alerts does what you choose: notify you, call a webhook, or place a CrossTrade order |
library( | An indicator | Runs its own example code, the way TradingView shows a library added to a chart |
Strategies is in beta. Read Limitations before you trade a strategy live, or let an indicator's alerts place orders.
Three steps
- Paste. In TradingView, open the strategy or indicator in the Pine Editor, select all of it and copy it. In CrossTrade, open Strategies in the sidebar, press New strategy and paste the script into the editor.
- Convert. Give it a name, pick the instrument and the bar interval (and, for a strategy, the account), and press Save & convert. Converting usually takes a second or two. When it finishes, CrossTrade tells you what came across, for example "Your 5 inputs, 2 plots and 4 entry/exit rules came across."
- Start. Check the inputs under Settings (and a strategy's order size, or an indicator's alerts), then press Start. The script loads recent history from NinjaTrader, warms up on it the way TradingView runs a script over a chart, and then runs on live bars.
What you see
My strategies lists every strategy and indicator you have saved: where it runs (instrument, bar interval and, for a strategy, account), whether it is running, and a strategy's position and result or an indicator's alerts today. Click one to open it.
Each strategy has four tabs. Overview shows its position, this run's result, a one-line summary of what it is doing right now, and a live chart with its plots, orders and trades. An indicator has no Performance tab, and its Overview shows its alerts today and the chart with its plots. Pine Script holds the script and what the conversion did. Performance lists its closed trades with net result, win rate and drawdown. Settings holds the account, instrument, bar interval, order size, inputs, alerts and automatic starts.
Above the list, the page counts what is running, the open positions across your strategies, and anything that needs your attention.
What you need
| Requirement | Details |
|---|---|
| NinjaTrader 8 | Running, with the CrossTrade add-on v1.14.0 or later connected |
| Market data | A NinjaTrader data feed for the contract the strategy trades. The strategy builds its bars from NinjaTrader's data, not TradingView's |
| Plan | Pasting, converting and setting up are free on every plan. Starting a strategy or an indicator needs a paid plan or the free trial |
| Limit | Value |
|---|---|
| Saved strategies and indicators | 50 |
| Running at the same time | Standard 1, Pro 3, Elite 10, free trial 10 |
| Alerts per indicator | 5 |
| Email, Discord, Telegram, mobile push and webhook alerts | Pro and Elite. Every alert is also recorded in your alert history on every plan |
| Pine Script source | 100,000 characters |
Try it on Sim first
Run every new strategy on a Sim account (NinjaTrader's Sim101, for example) and compare it with TradingView for a few sessions before you trade it live. A new strategy picks one of your Sim accounts for you when you have one. NinjaTrader's data is not TradingView's, and live fills come from your broker, so a strategy's trades in NinjaTrader can differ from the trades TradingView shows for the same script.
Next steps
Pine Script strategies covers pasting and converting, inputs, order size, alerts, and how closely a run follows TradingView. Running strategies covers starting and stopping, watching a strategy, warnings, and what happens when NinjaTrader restarts. Limitations lists everything this version does not do.