OPEN-SOURCE SCRIPT

ZenTrend Price Cycles

Telah dikemas kini
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.
Nota Keluaran
Updated chart and parameter names
Nota Keluaran
Added optional display of LRSI crosses
Nota Keluaran
Bull/bear background color is now based on indicator slope. I'm finding this to be more accurate than basic crosses.
Nota Keluaran
- 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
Nota Keluaran
  • Added red/green color to line based on slope
  • Added ability to hide 'slow' plot
Bands and ChannelsChart patternsCycles

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian