Swing Trading

 
hi i want to discuss if any body can do that in the code like from one lowest point to other high the number of hours and total number of points in that swing like in euro moves from 14344 to 14141 in 11 hours and number of pips is 187 how one can write that it in zigzag  mode and how to use price and time square in mt TIA 
Reason: