Richard,
Regrettably, we will not get to see how this system is handled mathematically within the code.
I downloaded from the link you provided, unzipped, imported, and tried to edit the files. Alas, they are locked and password protected.
So, even with Tradestation, the code is...