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.
