This strategy was taken from chapter 7 of [Short Term Trading Strategies That Work](https://moshferatu.dev/moshferatu/short-term-trading-strategies-that-work) (2008) by Larry Connors.
It is not possible to enter positions on the close of a bar in NinjaScript, so I have worked around this by incorporating a 1-minute data series into the strategy and entering on the open of the last bar of the day.
The position is exited on the open of the following day as expected.