Compilation Error - using non-static members

Jan 7, 2016 at 10:21 PM
Edited Jan 7, 2016 at 10:23 PM

I'm trying to use Flee to evaluate expressions from within Ninjatrader, a C# based trading platform.

I have a basic test working using the examples with an expressionowner.

My class is defined -
    public class ExpressionOwner 
        public int a;

        public int myFunc(int i)
        public double getClose() {
            return Close[0];
The compilation error (referring to the line : return Close[0]) is -

Cannot access a non-static member of outer type 'NinjaTrader.Indicator.IndicatorBase' via nested type 'NinjaTrader.Indicator.FleeTest.ExpressionOwner'

I know I haven't provided a lot of detail here, particularly about Ninjatrader, but can anyone offer some suggestions? I'd be happy to provide more detail if anyone can help,