3 bar swing higher bar

Hello, I would like to write a script for a 3-bar swing when we have 2 higher bars with a show bar. I appreciate any help. Thank you.

Hi Mo,

If you are looking for a 2 bar swing turn instead of 3 use this:

S1=GANNSWING(SWINGCOUNT=2);
S1 TurnsUp

On Friday there were 48 stocks in the S&P500 with a 2 bar turn, including TSLA:

1 Like

Thank you. I will give a try tomorrow.

Mo