PLUMBLINE Stage I: Build
v0.6.1
NinjaScript AI Framework

Build production-grade NinjaScript prompts for AI-assisted development.

Make the trading and calculation choices that matter. Plumbline converts them into a complete, production-focused NinjaScript development prompt.

How to Use the Prompt Builder

Three easy steps to a production-ready AI prompt.

01
Choose What to Build
Choose whether you are building a strategy or indicator, then define its behavior in plain trading language.
02
Define the Behavior
Write a clear description of what you want the AI to build. Be specific about entry/exit logic, conditions, parameters, and risk constraints.
03
Generate & Copy
Click Generate to assemble the structured prompt, then copy or download to paste into your AI assistant.

What Each Mode Is For

Understand the tabs in this tool.

Tab
Prompt Builder
Choose indicators, entry behavior, risk controls, sessions, and chart assumptions. Developer settings are inferred automatically.
Tab
Review & Troubleshoot
Pick a NinjaScript issue template — compile errors, backtest discrepancies, order fill problems — and generate a structured diagnostic prompt.
System
Core Rules
Safety, correctness, validation, and NinjaScript development rules stay permanently active under the hood.
Disclaimer: This tool generates prompts only. It does not guarantee that any AI-generated code will be correct, complete, safe, or production-ready. Always review, test in simulation, and validate against the official NinjaTrader 8 documentation before deployment to live trading.
1
What Are You Building?
Start with the kind of NinjaTrader tool you need.
2
Choose Your Strategy Style
This guides the review without silently inventing rules.
3
Choose What It Uses
Select controlled indicator contracts. Technical API details remain under the hood.
4
Entry Trigger and Entry Type Selection
Define exactly what permits an entry and how it should be placed.

Trade Direction

Entry Order Type

When Should It Evaluate?

5
Risk Management
Selections here automatically enable the appropriate risk and execution safeguards.

Initial Stop

Profit Target

Trailing Stop

Position and Daily Controls

6
Choose When It Trades
Named and custom windows combine with OR logic. No Restriction is exclusive.
7
Choose the Market and Chart
These remain design assumptions rather than hardcoded primary-series behavior.
8
Review Your Strategy
The summary and validation messages update from your selections.

9
Additional Instructions
Add anything the structured workflow did not cover.
10
Generate Complete Strategy Prompt
The prompt is built only from normalized selections and inferred developer settings.
Generated Prompt
Diagnostic Mode NinjaScript Troubleshooter

Build a structured diagnostic prompt that forces the AI to follow a disciplined process — reproduce, isolate, identify, fix, verify. All 12 Core Rules are automatically included.

0
Issue Templates
Quick-select a common NinjaScript issue type.
Compile Error
Syntax or build failures
Backtest Discrepancy
Unexpected results in Strategy Analyzer
Live vs Sim Divergence
Behavior differs between modes
Order / Fill Issue
Orders not filling or wrong execution
Indicator Bug
Wrong values, not plotting, calc errors
Performance / Lag
Slow execution, freezing, CPU issues
1
Describe the Problem
Fields marked * are required. More detail = better diagnosis.
PNG, JPG, GIF, or WEBP — max 5 MB. Text will be auto-extracted.
Diagnostic Approach (auto-included in prompt)
  1. Reproduce — Recreate the issue using the steps and environment provided.
  2. Isolate — Narrow the root cause to a specific event handler or code block.
  3. Identify — Determine the exact root cause with evidence.
  4. Fix — Apply the minimal, targeted fix. Do NOT refactor unrelated code.
  5. Verify — Confirm the fix resolves the issue without regressions.
  6. Limitations — Flag anything that cannot be verified without live execution.
~0 tokens
Diagnostic Prompt