This free NinjaScript strategy will randomly determine whether to enter long or short.
Example use case: If your strategy is based around capturing small movements in a low volatility range, you can enter in a random direction when volatility < x.
This NinjaScript download is a single zip file that you import directly into NinjaTrader. It’s 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.
This code will not work with releases prior to NinjaTrader 8. Click here if you don’t know how to install NT strategies. Use at your own risk, and backtest backtest backtest before you go live with any strategy.