lastBuy.CloseAtMarket(i + 1, "Close" + lastBuy.EntrySignalName);

не Entry, а ExitSignalName - то есть пишешь сюда что-нибудь типа "Sx"