I can tell by reading it that it is designed for when you are at a super-low lookback period, as it does not account for alpha.
So you should ignore that since you already have 200 lookback.
I still have an Ehlers book on my shelf that I need to read. I will need all of its juicy context before I start playing around with these types of code.