Free Secondary Series NinjaScript

$0.00

This Free Secondary Series NinjaScript will add a secondary data series to your strategy.

Category: Tag:

Overview

The Free Secondary Series NinjaScript will add a secondary data series to your strategy.

This NinjaScript add-on is not assembled which means you have full access to view and change the source code either in NinjaScript Editor or your preferred way to edit .cs files.

Details / Instructions

An example use case for this would be if your entry signal is a 1000 tick moving average crossing over a 5 minute moving average. Another example would be to buy if a Buy Sell Imbalance Indicator running on 1 minute bars and another Buy Sell Imbalance Indicator running on 1 hour bars both show a strong buy imbalance. The only way to access different time frames in one strategy is to add a second data series.

There’s only one line that you need to add the series (the line that calls the AddDataSeries method), but there’s another important line at the beginning of OnBarUpdate that prevents OnBarUpdate from running on both data series.

Notes

The Free Secondary Series NinjaScript download is a single zip file that you import directly into NinjaTrader.

This code will not work with releases prior to NinjaTrader 8.

Got something to discuss?