Hello programmers
Could you please help me create a zigzag indicator according to the idea below?
-------
Please look at the photos and focus on the "Blue line" and "Red line" to understand the conditions that form them
-------------
Please create an indicator to highlight Blue Line and Red line like the illustration