For those unfamiliar with C Sharp programming or NinjaScripts, it may be worth taking a look at an introductory programming course. There are several good video series put together by the NinjaTrader community available online.