To me, the description is definitely wrong for "new bottom in trend" block. Worried logic also still using oldest low to current. I believe, correct logic should be;
For new top: oldest low to current must have certain positive value For new bottom: oldest high to current must have certain negative value7