Learn NinjaScript: Using [NinjaScriptProperty] Correctly
You wrote an indicator. It works great on a chart. Now you want to use it from a strategy — you write var sma = MySma(20); in State.DataLoaded and expect the cross-script reference to just work. Or you want to optimize Period in Strategy Analyzer and see which value produces the best backtest. How does…








