i created new superdom columns script
which works fine
however within this script i wrote :
protected override void OnPositionUpdate(PositionEventArgs positionUpdate)
{
Print("MarketPosition " + positionUpdate.Position.MarketPosition.ToString()) ;
Print(" position QTY" + positionUpdate.Position.Quantity.ToString());
}
if found that when i enter position with 1 contract long
MarketPosition is long and position QTY is 1
when i increase position i.e. buy one more contract
MarketPosition is long and position QTY is 2
when i exist 1 contract ( decrease position )
MarketPosition is long and position QTY is 1
so far all is good
BUT !!
when i exist 1 contract more ( decrease position , expect to become flat )
MarketPosition is long and position QTY is 1
i.e. when position is accually flat it is reported as long with quantity 1
i want to make clear that the super dom report on position as it should
but inside my script the position situation is not identified correctly
Comment