Thanks jcl.

For the Z strategies & other similar strategies that we code controlled by M/R, how is "the system automatically reinvests the rest" accomplished? Or should we be manually reTesting and updating M/R whenever the strategy is in profit?

The formulas above assume no Capital is added or removed (other than via reinvestment). My attempt is to cover those scenarios (and combinations of them over time) as well. I don't want to beat this horse to death, so if that's out of scope in order to keep the formulas simple for others, so be it. I'll use my best guess & hope I'm not too far wrong! laugh

Thanks.