GET 15% OFF — Join Discord #predator-promo →
← ALL FREE DOWNLOADS
// FREE DOWNLOADS

NinjaTrader Coding

Code samples for NinjaScript developers — properties tricks, Chart Trader UI, plots, and complete bot examples. Download, import, and modify for your own projects.

Sample Bool Converter screenshot
EXAMPLE & DOWNLOAD

Sample Bool Converter

Basic sample on how to hide options from your Properties window.

Chart Trader Button Example screenshot
EXAMPLE & DOWNLOAD

Chart Trader Button Example

Chart Trader button template using multiple grids — multiple columns (different sized buttons) on separate rows. Same concept used to build the Predator Chart Trader buttons, with the Tab selection issue fixed.

Enum Converter Test screenshot
EXAMPLE & DOWNLOAD

Enum Converter Test

Code sample for modifying your properties based on your Enum selection (drop-down list).

Color Horizontal Lines Plot screenshot
EXAMPLE & DOWNLOAD

Color Horizontal Lines Plot

Add a horizontal line using Plots. Change the entire line with Plots[0].Brush, or make a multi-colored line using PlotBrushes[0][0]. A sample to modify for your own code.

EXAMPLE & DOWNLOAD

Reversal Bar Strat V1.2

Complete bot sample: a reversal bar strategy you can import and study.