Hi Steve! So you wrote what you want, but I am afraid you are not going to get it. Some things are just irreconcilable. Take for instance this: I think I have found a way to keep AIM from dying in a Min Buy-Min Sell-Min Buy-Min Sell sequence (Safe 10%, Min amount 5% of PC). Just add 24% of the buy amount, instead of 50%, to PC (and calculate the minimum amount to buy or sell relaitive to PC, not to Share Value). The 24% is an approximation, and would change with a different Safe and Minimum amount.
Now this works, but it is optimized for the Min Buy-Min Sell-Min Buy-Min Sell sequence. When you throw this in Lichello's cycle, it underperforms tremendously.
Regards,
Karel