Learn · NinjaTrader 8

Ragnar Scalper on NinjaTrader 8

The same four engines as a NinjaScript strategy, version 1.01, for micro and mini gold futures (MGC, GC) and other futures - on a live, prop firm or simulation account.

1. What you need

  • NinjaTrader 8 on Windows, logged in with your NinjaTrader account (the user name and password you start NinjaTrader with).
  • A connection with real-time futures data and an account to trade: your broker, a prop firm account (many futures prop firms give you a Tradovate or Rithmic login for NinjaTrader 8), or NinjaTrader's simulation account Sim101.
  • An active Ragnar Scalper license. It includes 1 NinjaTrader user name - every account NinjaTrader 8 has under that login runs with it, Sim101 too.
  • For live trading: NinjaTrader running all week - on a computer that stays on, or a VPS.

2. Your NinjaTrader user name

The license goes by the user name NinjaTrader 8 is logged in with, not by an account. The strategy reads it by itself and shows it on its panel in the row User name.

  1. Find the user name

    It is the name you log in to NinjaTrader 8 with. If you are not sure, start the strategy once (section 5): its panel shows the user name it checked, with NO LICENSE until it is registered.

  2. Register it

    Go to Dashboard > Accounts > NinjaTrader 8, type the user name and press Add user name. Every account of that user name is now covered.

  3. Copy your License Key

    In Dashboard > Downloads copy your License Key (RSK-...). The strategy needs it.

More NinjaTrader logins? Another user name is an add-on of the same license. One user name with many accounts (several prop firm accounts, Sim101) needs nothing more.

3. Prop firm accounts on Tradovate

Many futures prop firms run their evaluation and funded accounts on Tradovate and let you trade them from NinjaTrader 8. Ragnar Scalper then runs in NinjaTrader 8 exactly as on any other account: NinjaTrader is the platform, Tradovate is the connection to the firm's account.

  1. Get the login from your prop firm

    After you buy an evaluation the firm sends a Tradovate user name and password (sometimes also a NinjaTrader license key). Keep its email: it says which environment the account is on - usually Demo for an evaluation and Live for a funded account.

  2. Add the Tradovate connection in NinjaTrader 8

    In the Control Center open Connections > Configure, add a connection of type Tradovate, enter the Tradovate login from the firm, choose the environment and save. Then Connections > [your Tradovate connection] to connect. If your firm gives other connection steps (for example Rithmic), follow them - the strategy does not mind which connection brings the account.

  3. Check the account

    The firm's account appears in NinjaTrader's Accounts tab with its own name (often a long code). A chart of MGC on that connection should show live prices.

  4. Start the strategy on it

    Add RagnarScalper to the MGC chart (section 5) and choose the firm's account in its Account property. Switch on Prop Firm Mode with the firm's daily loss limit, and Flat Hours if the firm wants you flat at the daily close.

The license follows your NinjaTrader user name, not the Tradovate login. Register the name you log in to NinjaTrader 8 with (section 2); every account NinjaTrader shows under it - Tradovate prop accounts included, several firms at once - runs with the license. The Tradovate user name does not go in the dashboard.
Read your firm's rules on automated trading. Some futures prop firms allow strategies only on evaluations, some limit them on funded accounts. Their daily loss limit, the close time and the contract limits are in Prop Firm Mode and Max contracts open + waiting.

4. Download and import

  1. Download the file

    In Dashboard > Downloads download the NinjaTrader 8 file (a .zip). Do not unzip it.

  2. Import it

    In NinjaTrader 8 open Tools > Import > NinjaScript Add-On..., choose the downloaded zip and confirm. If NinjaTrader asks to replace an older version, answer yes.

  3. Wait for the import

    NinjaTrader imports and compiles it, then reports that the import succeeded. RagnarScalper is now in the list of strategies.

5. Start it on a chart

  1. Open a futures chart

    New > Chart, instrument MGC (micro gold) or GC, the front contract. Any timeframe works: the strategy loads its own one-hour data.

  2. Add the strategy

    Right-click the chart > Strategies.... In the list of available strategies select RagnarScalper and press Add.

  3. Fill in its properties

    Choose the Account it trades (for example Sim101 to try it first), paste your License Key, and keep or change the settings (next section).

  4. Enable it

    Tick Enabled and press OK. The panel appears on the chart. After the license check its status reads RUNNING.

Real-time only. The strategy trades live prices, not the chart's history: it starts with the first real-time price. On a closed market it waits for the next session.

6. The settings

The strategy's properties, in numbered groups, are the same inputs as on MetaTrader 5 - with contracts in place of lots. The defaults are a complete setup; choose the size (Money Management) and, for a prop firm, the limits.

00. License

PropertyWhat it does
License KeyYour key from Dashboard > Downloads. Shown as dots; never on the chart's label.

01. Money Management

PropertyWhat it does
Lot sizingFixed contracts, contracts per 1,000 of balance, a % of the balance at risk per trade, or a fixed amount at risk (sized from the engine's stop loss).
Contracts (fixed) / per 1000 of balanceThe fixed number of contracts, or contracts per 1,000 in that mode.
Risk per trade, % of balance / amountWhat a stopped trade may cost in the two risk modes.
Max contracts per orderNo order above this, whatever the sizing gives (0 = no limit).
Max contracts open + waitingA safety cap: open contracts plus every waiting order of all engines together. An order that would go above it is not placed.

02. Prop Firm

PropertyWhat it does
Prop Firm ModeSwitches the limits below on.
Limits in% of the day's starting balance, or fixed amounts.
Max daily loss / profitWhen equity reaches it, the strategy closes its trades and rests until the next trading day (0 = off).
Daily reset hourWhen the trading day starts, in UTC; -1 = 17:00 Chicago, the futures day.
Flat HoursFlat from 15:05 to 17:00 Chicago, nothing new in between.

03. News Filter

PropertyWhat it does
Use news filterPause around economic news from the weekly calendar (read over the internet every few hours).
Impact level / CurrenciesWhich events count: High only, Medium and High, or all; the currencies, comma separated (ALL = every one).
Pause minutes before / afterWaiting orders are lifted and nothing new is placed in this window.

04. Exit

PropertyWhat it does
Exit modeAuto: each engine uses its profile's exit. Custom: one stop loss, take profit and trailing for all engines (the next five properties, in points: 100 = 1.00 of price).
Minimum trading durationNo take profit, no trailing and no closing by the strategy before a trade is this many seconds old; the stop loss always stays.

05 - 08. Engines A, B, C, D

PropertyWhat it does
Engine onSwitch the engine on or off.
DirectionBoth, buy only or sell only.
ProfileShieldwall, Valkyrie, Drakkar or Berserker - the engine's entry distance and exit.
Max open tradesThe engine's limit of open trades.
Trade a level againNever, always, only after a loss there, or not while a trade of that level is open (default).

09 - 11. Trailing, Volatility Filter, General

PropertyWhat it does
Trailing timing (3 properties)How often a trade is looked at and the minimum time between stop moves. Leave as they are.
Volatility filterTrade only while the average one-hour range is at least this many points (0 = off), averaged over the last N hours.
Price distances / Distance multiplierAuto: gold as it is, other instruments scaled by their own volatility. Fixed: your multiplier.
Friday stop / Sunday startWhen waiting orders are cleared before the weekend (a time, or minutes before Friday's close) and when the week's first scan happens, in UTC.
Order name tagThe tag in the strategy's order names.
Show the panel / Panel sizeThe panel on the chart and its size in percent.
Log every decisionExtra lines in NinjaTrader's Output window, for support.
DisabledStart disabled: nothing new, open trades still managed (the panel's button does the same).

7. Reading the panel

The panel sits on the chart; drag it by its head, fold it with –. The values below are an example.

The Ragnar Scalper panel in NinjaTrader 8123456789101112
Click the picture to open it full size.
  1. 1
    Title. Version, "NinjaTrader 8 Strategy" and the website.
  2. 2
    Status. RUNNING, CHECKING LICENSE, NO LICENSE, DISABLED, PROP STOPPED, SESSION CLOSED or NEWS PAUSE - see below. The – next to it folds the panel.
  3. 3
    Clock and connection. The time in UTC, the account and NinjaTrader's connection.
  4. 4
    Status chips. Contract, spread in ticks, session, news filter, Prop Firm Mode, simulation or live account, and your license.
  5. 5
    Account tiles. Balance, equity, the strategy's open profit, today's and the total closed result, the drawdown.
  6. 6
    Engine cards A - D. Profile, state (IN TRADE, ARMED, SCANNING, PAUSED, OFF), waiting orders, open trades, results, next size and the buy / sell stop it waits with.
  7. 7
    All engines. The engines together: on, orders, open contracts, floating, today, total.
  8. 8
    Account. The rows of the next table.
  9. 9
    Rules. The settings in use, in words, and the next news event.
  10. 10
    Results. Win rate, profit factor, trades, average time and maximum drawdown of the strategy's closed trades.
  11. 11
    Buttons. Disable, Cancel pending, Close all trades.
  12. 12
    Last action. The latest order or change.

The account rows

RowMeaning
Account / TypeThe NinjaTrader account it trades and whether it is a simulation or live account.
License / WebsiteYour license (active until when, or why not) and the website it checks with.
User nameThe NinjaTrader user name the license is checked for - register this one in the dashboard.
HistoryThe closed trades sent to your dashboard: "up to #9" = trades up to number 9 are on the website.
Broker pingHow long the broker takes to answer the strategy's orders (the middle of the last 20). Sim101 answers inside NinjaTrader, so it shows only a few ms.
Connection / Provider / CurrencyNinjaTrader's connection for the account and the account's currency.
Point valueMoney per 1.00 of price per contract (MGC: 10).
Cash value, Net liquidation, Buying power, Initial marginAs NinjaTrader reports them for the account.
Position / ContractsThe account's position in this instrument, and the strategy's open + waiting contracts against its cap.
Server time / Local timeUTC and your computer's time.

The status

StatusMeaning
STARTING, WAITING FOR THE FIRST BID / ASK, LOADING THE H1 HISTORYThe strategy is getting ready. On a closed market it stays at "waiting for the first bid / ask" until prices come.
NOT STARTED: ...It could not start; the reason follows (for example missing history). Fix it and enable the strategy again.
RUNNINGLicensed and trading.
CHECKING LICENSEThe first license check is under way.
NO LICENSEThe user name on the panel is not registered, the key is wrong, or the license ended. Nothing new is placed; open trades keep their exits.
DISABLEDDisabled by you: nothing new, open trades still managed.
PROP STOPPEDA daily limit of Prop Firm Mode was reached - resting until the next trading day.
SESSION CLOSEDOutside the instrument's trading hours, or Flat Hours.
NEWS PAUSEA news window is on.

8. The buttons

ButtonWhat it does
Disable / EnableDisable: no order waits and nothing new is placed; open trades keep their stop, target and trailing. Kept after a restart until you press Enable.
Cancel pending (n)Cancels the strategy's waiting entry orders. The engines place new ones at their next scan.
Close all trades (n)Closes the strategy's open trades at market.

9. Its orders in NinjaTrader

  • The strategy places account orders you can see in NinjaTrader's Orders tab, named RS#<number>-E (the entry stop), -SL (stop loss), -TP (take profit) and -X (a close).
  • When an entry fills, its own stop loss and take profit are placed as a pair (one cancels the other). Several trades can be open at once; the account's position is their sum.
  • Do not move or cancel these orders by hand - the strategy manages them and moves the stop when trailing.
  • It remembers its trades in Documents\NinjaTrader 8\RagnarScalper: after a restart of NinjaTrader it takes its open trades and orders back.
  • Your manual trades and other strategies are never touched.

10. Day to day

  • Keep NinjaTrader running with the chart open. Before the weekend the strategy clears its waiting orders; it starts again on Sunday evening.
  • The closed trades go to your dashboard every minute (row History on the panel).
  • Contract rollover: when the front month changes, open a chart of the new contract and add the strategy there.
  • Updating: download the new file and import it the same way; NinjaTrader replaces the old version. Re-enable the strategy.

11. Troubleshooting

You seeWhat to do
NO LICENSE - user name not in your dashboardAdd the user name shown on the panel under Accounts > NinjaTrader 8. The strategy checks again within 5 minutes.
User name "not logged in"NinjaTrader 8 is not logged in with a NinjaTrader account. Restart NinjaTrader and log in with your NinjaTrader user name.
License key not foundPaste the key again from Dashboard > Downloads (a new key replaces the old one).
No panel on the chartProperty "Show the panel" on; the strategy must be enabled.
An order rejected by the brokerRead the message in NinjaTrader's Log tab - often margin, a closed market or the account's own limits. The strategy tries again later.
"contracts open + waiting is the limit"The safety cap of Money Management is reached; raise "Max contracts open + waiting" if your account allows more.

Still stuck? Write to [email protected] with your NinjaTrader user name and a screenshot of the panel.

Have a question?Ask our Ragnar AI assistant - it knows the EA, the license, prices, prop firms and setup, day and night.