Added alertconditions for Pivot High and Pivot Low (they do not exist until the close of the next bar so the alerts are for 2 bars / candles back.
This was at the request of user @msY. Had not set these before so had to figure it out so thanks for the suggestion! I also removed code that was commented out and cleaned up comments a bit. Enjoy!