can someone pls share the code to get high and low swings

 

Hi, 

I need to code swing high and lows inside large legs. 

Say the leg is A to B

and i need to get sub high and sub lows (a,b,c etc.) within the leg A-B

Thanks

ckm

 
Please search the CodeBase (or Articles) for anything similar and then study the code and adapt it to your requirements.
 
Just search in a defined period for the highs and lows of the close prices.

To do that, you can use iClose()
Reason: