Bonjour MonPere,
you have done a great job on this DynamicSRLine.
I had the SchoolOfTrade Dynamic one but it was plotting way too many minor S/r lines and I often ended with no place to see my bars so I took it off.
I tried yours on a 13 range chart with a look back period of 50 bars and I have to say that it works perfectly at keeping an eye on the levels where price are likely to be bouncing.
Excellent travail!