I am trying to debug an indicator code using Print statements. I have a number of custom methods and when I try to use Print I get the following error message:
Indicator XXX.cs An object reference is required for the non-static field, method, or property 'NinjaTrader.Indicator.IndicatorBase.Print(string) ' CS0120 - click for info
Is there a way to use Print for debugging outside its scope?
Incidentally, I also tried using System.Diagnostics.Debug.Print. This compiles but can't find the output.
Any suggestions would be greatly appreciated. Thank you.
Comment