Hello,
I have extensive experience in TradingView, NinjaTrader and other trading platforms programming including converting indicators and strategies. You can see examples in my portfolio and completed projects list. I can send you more examples.
I can convert the attached script to NinjaTrader 8.
Best wishes,
Alexander