is there any way I could make this work?
public class TestStatic : Indicator
{
// blah
private static object Concave(object[] ps)
{
x=Close[0];
return(0);
}
}
I want to be able to access dataseries from within a static function. The static funciton is part of a larger codebase that I didn't write myself, and changing that isnt an option.
Is there any way I can get access to those dataseries? I'm getting the compiler error :-
An object reference is required for the non-static field, method, or property 'NinjaTrader.Indicator.IndicatorBase.Close.get'
Thanks,
Will.
Comment