jalexm
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: July 9th, 2022
Contact: TradingView Profile

Detecting Stock Hi/Low Cycle

Howdy Everyone,

I am trying to catch the elusive white whale the lookback period. Has anyone had luck with a script to detect, dynamically, the change in lookback, or high/Low peak/Valley cycles of the market price action?

Looking for a good starting point, but the best I have found was the build-in ta.pivothigh() & ta.pivotlow() function.

Thanks!

Return to “Pine Script Q&A”