It seems I have been succesfull with my Java implementation for the Active Boundaries indicator
Although your result it is smoother than mine (do you smooth the AB with EMA or any other filter?), the overall path seems quite similar
I am using the second method you propose at pag.110
Thanks