Will be posted as soon as it's ready
The reason I said the algorithm is inconsistent is if you take a population of 10 accounts and run the same setup on all of them with the same (insufficient) amount of money, taking into consideration the buy order is randomized, some of them will fail if the large purchases will be done towards the end and this does not solve the problem of running out of gp, only randomly generates failures/successes which is not a desirable effect
That sounds like a mirror mode error, are you sure you are not using mirror mode?