The Position is Long... and i have Order Short
protected override void OnPositionUpdate(Position position, double averagePrice, int quantity, Cbi.MarketPosition marketPosition){ double reverso = averagePrice - 20; if(position.MarketPosition == MarketPosition.Long){ EnterShortStopMarket(1,reverso,"Venda"); // Passed by here Print("entrando Vendido agora:"+averagePrice+" Preço médio:"+reverso); } Print(position.MarketPosition+" "+MarketPosition.Long); // Flat }
Comment