private void SingleCycle() { // poznaj kurs double kurs = h.Courses(eid)[cid]; int dalem = h.PersonalStake(uid, eid, cid); double x = (kurs - cref) * reaction; double nowe_dalem = money * (1.0 - Math.Exp(-x)); if (nowe_dalem < 0.0) { nowe_dalem = 0.0; } int dokup = ((int)nowe_dalem) - dalem; h.Trade(uid, eid, cid, dokup, true); }