} else if (State == State.DataLoaded) {
if (Position == null) {
Print(" Position is null");
} else {
Print(" Position is "+Position);
}
Print(" market position is ");
Print(Position.MarketPosition);
}
Strategy 'SimpleTestStrategy': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
So how can I get the initial position of a strategy? Do I just always assume it is Flat?
Comment