2 legged pull back for ES

I see a very good indicator called Price Action Swing, is it possible to change the code to count legs?