This Free Daily Loss Limit NinjaScript will close any open positions and stop trading for the current day if your daily P/L reaches a set positive or negative value. This code will only close positions that were entered by a strategy while that strategy is still running – it does not work with manually entered orders.
Free Secondary Series NinjaScript
This Free Secondary Series NinjaScript will add a secondary data series to your strategy.
Free Random Trading Direction NinjaScript
This Free Random Trading Direction NinjaScript will randomly determine whether to enter a long or short position.