A simple C++ console application that will compute the percentage of gain needed to recover your current loss.
If your current loss is 50% on any of your investments.
$ rule1 50
+100.00% needed gain just to recover your current loss
Your gain should be at least 100% just to breakeven! So, don't lose money!