About the only line of code I inserted was:
double value = Momentum (3) [1]
I just want the Momentum (period = 3) for the previous bar. The error message points to the work Momentum and states:
"An object reference is required for the non-static field, method, or property 'NinjaTrader.Indicator.Indicator.Momentum ()".
I also tried typing in the long text preceding the word Momentum but still get the same error message. I followed the example in the tutorials and this should have been a simple task. Thanks in advance for any assistance.
Comment