OPEN-SOURCE SCRIPT

ZenTrend Price Cycles

Updated
ZenTrend attempts to plot the cycles that occur as the price cycles between the top and bottom of long- and short-term price linear regression channels.

The indicator observes a fast (35-period) and a slow (100-period) linear regression channel and plots their slopes on an oscillator. When the slope of the fast channel crosses above or below the slope of the slow channel, a signal is plotted.

  • The red line is the slope of the fast channel; blue is the slope of the slow channel
  • A green dot and background indicates the slope of recent price action has crossed above the slope of long-term price action.
  • A red dot and background indicates the slope of recent price action has crossed below the slope of long-term price action.
  • A gray dot indicates the slope of recent price action is slowing. The difference between the long- and short-term slopes is narrowing.


Here are things I look for when observing price cycles
  • Where does the cross occur? Crosses high above or below the 'zero line' indicate a more extreme change in price channel slopes.
  • Flat line: crosses that occur while the lines are flat often indicate chop.
  • "Curve" of the line - a cross that occurs as the slope lines are starting to curve up/down indicates a sharper and more extreme change in price channel slope.
Release Notes
Updated chart and parameter names
Release Notes
Added optional display of LRSI crosses
Release Notes
Bull/bear background color is now based on indicator slope. I'm finding this to be more accurate than basic crosses.
Release Notes
- New option to show ZenTrend plot from a higher timeframe (look for alignment)
- Option to show standard deviation bands. Crosses above/below deviation indicate a strong trend. ZenTrend within the standard deviation indicate flat price action.
- Option to show Laguerre RSI crosses - look for confluence with ZenTrend and LRSI
Release Notes
  • Added red/green color to line based on slope
  • Added ability to hide 'slow' plot
Bands and ChannelsChart patternsCycles

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer