Comment on Managing your Script
It will be tough to do this on tradescript. But you can use the Kite connect API’s for this, and run the strategy even on something as simple as an excel sheet. We will not be able to support you on developing this though. Check this: https://kite.trade/