т.е. position.CloseAtStop(barIndex, ...
там на самом деле barIndex+1? или нет?