Free courseLesson 09 of 10

From rules to a running bot

Turn your rules into code your trading platform can run, and test them on a simulation account first.

Two ways to run your bot
Safety that's built in from the first order
Testing on simulation first

Two ways to run it

Your strategy is a set of rules. The platform only decides which code format those rules are written in. Your assistant can write both.

NinjaTrader 8. Our recommendation. Your assistant writes the rules as a NinjaTrader strategy, and the bot runs on your own computer or on a VPS, connected to your account.

TradingView. Your assistant writes the same rules as a Pine Script strategy. Its alerts go through a webhook to a service that places the orders on your account.

Export

Tell your assistant which of the two you want. It writes the file and walks you through importing it, one step at a time.

Safety from the first order

Every order carries its stop and its target from the moment it's placed. And the bot is flat, meaning it holds no position, before the session ends.

Test on simulation

Run it on a simulation account first. A simulation account trades pretend money at real market prices.

Compare what the bot did with what your test says it should have done on the same days. A backtest can't show you a dropped connection, a restart at the wrong moment or a setting you forgot. Simulation can.

How long you test is up to you. Move on when the bot keeps doing what the test says.

Where it runs

On your own computer, or on a Windows VPS. A VPS is a rented computer that stays switched on.

What comes after

Trading real money is your decision, and it isn't part of this course. Futures trading involves substantial risk of loss.

Do it with your AI assistant
Build the export from section 11 of the blueprint if it isn't built yet. I want to run my strategies on [NinjaTrader 8 or TradingView]. Export my portfolio's rules for that platform. Every order must carry its stop and target from the moment it is placed, and the bot must be flat before the session ends. Walk me through importing and starting it on a simulation account, one step at a time, and wait for my OK after each step.
You're done when
  • The bot runs on a simulation account
  • Every order shows a stop and a target
  • You've compared what it did with the test