RajaCode

AI coding assistant for NinjaTrader 8

AI coding directly in NinjaTrader 8

  • Prompt your code
  • Compile loop fixes errors
  • Every change is saved
  • Placeholder benefit
  • Placeholder benefit
Editor Analyzer
All changes saved
RajaTrendStrategy.cs ×
1 using System;
2 using NinjaTrader.NinjaScript;
3 using NinjaTrader.NinjaScript.Strategies;
4 using NinjaTrader.Cbi;
5
6 namespace NinjaTrader.NinjaScript.Strategies
7 {
8   public class RajaTrendStrategy : Strategy
9   {
10     private SMA smaFast;
11     private SMA smaSlow;
12
13     protected override void OnStateChange()
14     {
15       if (State == State.SetDefaults)
16       {
17         Name = "RajaTrendStrategy";
18         Calculate = Calculate.OnBarClose;
19         EntriesPerDirection = 1;
20         IsExitOnSessionCloseStrategy = true;
21       }
22       else if (State == State.DataLoaded)
23       {
24         smaFast = SMA(20);
25         smaSlow = SMA(50);
26       }
27     }
28
29     protected override void OnBarUpdate()
30     {
31       if (CurrentBar < 50) return;
32
33       if (CrossAbove(smaFast, smaSlow, 1))
34         EnterLong("Long");
35       else if (CrossBelow(smaFast, smaSlow, 1))
36         EnterShort("Short");
37     }
38   }
39 }

Starter

$20/mo

Great for getting started.

  • 2,000 credits per month
  • Access to standard models
  • Save checkpoints and history
  • Email support
  • Cancel anytime

Pro

$200/mo

Built for power users.

  • 25,000 credits per month
  • Access to advanced models
  • Priority model routing
  • All features included
  • Priority email support

Unused credits roll over for 30 days. Manage or cancel anytime.

How it works

RajaCode lives inside NinjaTrader 8 so you never leave your workflow.

  1. 1

    Prompt

    Describe the change you want in plain language.

  2. 2

    Edit

    RajaCode proposes precise NinjaScript edits.

  3. 3

    Compile

    One-click compile with instant feedback.

  4. 4

    Checkpoint

    Save a checkpoint and track your history.

  5. 5

    Iterate

    Refine, compile, and iterate until it is ready.

Built for NinjaTrader 8

Everything you need to code, test, and deploy without leaving NinjaTrader.

Native integration

Works inside NinjaTrader 8. No context switching, no copy-paste hassle.

Compile and debug

Compile NinjaScript with real-time errors and fast iteration.

Checkpoints and history

Save checkpoints, compare changes, and restore any previous version.

Credits and billing

Simple credit system with transparent usage and easy plan management.

Model routing

Standard or advanced models. RajaCode routes your prompts for the best results.

Updates

Stay current with platform and model updates delivered automatically.

Credits and billing

  • Credits reset monthly
  • Unused credits roll over for 30 days
  • View usage and purchase history
  • Upgrade, downgrade, or cancel anytime
  • Secure payments with Stripe
Manage billing

Model routing

  • Standard models for everyday tasks
  • Advanced models for complex logic
  • Automatic routing for best results
  • Manual selection when you want it
  • Transparent and efficient
Learn more

Updates

  • NinjaTrader 8 compatibility
  • New model integrations
  • Feature improvements
  • Performance optimizations
  • Always moving forward
See what's new

Secure. Reliable. Transparent.

A better way to code in NinjaTrader 8

RajaCode combines the power of AI with the familiarity of your NinjaTrader workspace.

Secure

Your code and data stay private.

Reliable

Built for traders and developers.

Compliant

We follow best practices for security.

Support

Real people, real help.

Ready to build better NinjaScript?

Start with Starter Go Pro

Cancel anytime. No long-term contracts.