Your indicator is not even close to what a Wolfe Wave indicator should do. It's looking at the previous 5 bars, instead of identifying the previous 5 H/L pivots over any number of bars.
I don't use any WW indicator -- and I'm not vouching for this or any other attempt -- but at least the one here will give you a better idea how the pivots are identified and then measured. You can run it on the Strategy Tester. Plus, I'm sure there are plenty more WW indicators in that thread and many others, so just do a Google or AI search.
I don't use any WW indicator -- and I'm not vouching for this or any other attempt -- but at least the one here will give you a better idea how the pivots are identified and then measured. You can run it on the Strategy Tester. Plus, I'm sure there are plenty more WW indicators in that thread and many others, so just do a Google or AI search.