System.Collections.ObjectModel.Collection<Position > pc = accountCurrent.Positions;
int count_pos = 0;
string pos_side = "Flat";
foreach (Position pos in pc)
{
if (pos.Instrument.FullName == Instrument.FullName)
{
count_pos = pos.Quantity;
pos_side = pos.MarketPosition.ToString();
break;
}
}
In NT8 it is not work perfect
Please help determinate MarketPositions in NT8
Comment