NinjaTrader and all other platforms are sensitive to complex/heavy calculations, so, like our previous debugger tool this one is also useful to measure execution timing for methods (OnBarUpdate
, OnRender
, OnMarketData
) in live on charts.
You should just rename the indicator_base name MY_indicator
to your indicator base. Then in the start and end of overload methods, use:
protected void OnBarUpdate() { debugTimer(true); ... ... your codes here ... ... debugTimer(false); }
And you will see the timings for that method.
Code is available here: github
1 thought on “Time Measurement debugger for Methods (For NinjaTrader)”
Comments are closed.