I removed all prefix 'myStrategy' then the compiler says "needs to have an object reference in order to use non-static methods/attributes 'NinjaTrader.Cbi.Position.MarketPosition.get'. What class of object do I need? Originally I suppose it's the instance of GGB ...
Below is the code segment.
private void ProcessCrossingAbove()
{
{
}
else if (Position.MarketPosition == MarketPosition.Long) {
K2W_EnterLong();
}
else {//Position.MarketPosition == MarketPosition.Short
Regards,
Steven

Comment