HSX Forum

Feedback & Support

You guys really need to fix your MAX calculation so that it doesn't overcalc how many shares can be afforded.

Posted by: Patient Player (a.k.a del_BPO_richwood_1) on Jun 22, 10:40 in response to Antibody's post Delisted and reIPOed, thanks.

For a long time, occasionally a MAX buy/short transaction has computed too many shares for my available cash.  Somebody needs to learn how to program multiple-precision decimal arithmetic correctly.

There is no technical reason why a computation of, say, how many shares @ H$567.17 with a 1% commission can be afforded with a cash balance of H$56,907,020.78 should not be precisely correct, with no overage.





Post a Reply

To post to the forums you must first login!


Primetime H$10 Put (PRMTM.PU) 25000 2.00 (0.00)          Resident Evil (RESE8) 50000 92.36 (-0.49)          Primetime H$10 Call (PRMTM.CA) 25000 2.00 (0.00)          Heart of the Beast H$15 Put (HOTBS.PU) 25000 2.00 (0.00)          Heart of the Beast H$15 Call (HOTBS.CA) 25000 2.00 (0.00)          Forgotten Island H$20 Put (FRGIS.PU) 25000 2.00 (0.00)          Forgotten Island H$20 Call (FRGIS.CA) 25000 2.00 (0.00)          Game of Thrones: Aegon’s Conqu (GOTAC) 75000 119.24 (+2.03)          Primetime H$10 Put (PRMTM.PU) 25000 2.00 (0.00)          Zach Braff (ZBRAF) 25000 10.66 (-12.69)          Primetime H$10 Call (PRMTM.CA) 25000 2.00 (0.00)          Zach Braff (ZBRAF) 25000 10.66 (-12.69)          Artificial (AIFIC) 150000 17.05 (+0.17)          Avengers: Endgame Encore - Openi (AVN4E.OW) 100000 35.00 (0.00)          Heart of the Beast H$15 Put (HOTBS.PU) 25000 2.00 (0.00)          Chili Finger (CHILF) 150000 2.89 (+0.43)          Heart of the Beast H$15 Call (HOTBS.CA) 25000 2.00 (0.00)          Forgotten Island H$20 Put (FRGIS.PU) 25000 2.00 (0.00)          Madden (MADEN) 90000 2.46 (-0.03)          Mason Thames (MTHAM) 25000 93.37 (+1.53)          Forgotten Island H$20 Call (FRGIS.CA) 25000 2.00 (0.00)          Mason Thames (MTHAM) 25000 93.37 (+1.53)          Primetime - Opening Weekend (PRMTM.OW) 100000 10.00 (0.00)          Artificial (AIFIC) 50000 17.05 (+0.17)          Mckenna Grace (MCGRA) 25000 60.24 (-2.65)          Primetime H$10 Call (PRMTM.CA) 25000 2.00 (0.00)          Mckenna Grace (MCGRA) 25000 60.24 (-2.65)          Heart of the Beast H$15 Put (HOTBS.PU) 25000 2.00 (0.00)          Heart of the Beast - Opening Wee (HOTBS.OW) 100000 15.00 (0.00)          Heart of the Beast H$15 Call (HOTBS.CA) 25000 2.00 (0.00)          Forgotten Island H$20 Put (FRGIS.PU) 25000 2.00 (0.00)          Remain (REMAN) 150000 72.44 (+1.79)          J.K. Simmons (JKSIM) 25000 35.52 (-21.93)          Forgotten Island - Opening Weeke (FRGIS.OW) 100000 20.00 (0.00)          J.K. Simmons (JKSIM) 25000 35.52 (-21.93)          The Beast (TBEAS) 50000 5.14 (-0.03)          Forgotten Island H$20 Call (FRGIS.CA) 25000 2.00 (0.00)          Avengers: Endgame Encore - Openi (AVN4E.OW) 100000 35.00 (0.00)          Kit Connor (KICON) 25000 54.00 (0.00)          Jennifer Hudson (JHUDS) 25000 90.90 (+5.22)          Lesbian, Gay, Bisexual and Trans (LGBTQ) 7775 22.92 (+0.02)          Jennifer Hudson (JHUDS) 25000 90.90 (+5.22)          Avengers: Endgame Encore - Openi (AVN4E.OW) 25000 35.00 (0.00)          Jared Harris (JHARR) 25000 24.83 (-0.69)          Jared Harris (JHARR) 25000 24.83 (-0.69)          George MacKay (GMACK) 25000 0.25 (-13.36)          George MacKay (GMACK) 25000 0.25 (-13.36)          Michael Shannon (MISHA) 25000 32.90 (+0.12)          You Can See Everything (YCSET) 150000 3.21 (+1.21)          Danielle Deadwyler (DADEA) 25000 10.14 (-0.20)