Pivot Points - Looking for sample code

Can anybody help or provide inputs on creating a strategy based on Pivot points
Thanks

There is full strategy video published on youtube .The link is below for ref.