Two Fractals Trendlines

This study draws a trend line for the last two Bill Williams up-fractals and down-fractals.

Trend line break signals and alerts can optionally be added.
リリースノート: Bug fixed.
リリースノート: RSI filter added.
リリースノート: Narrow range bar added.
Inside bar added.
Outside bar added.
Sandwich bar added.
Pin bar added.
リリースノート: Narrow range bar added.
Fakey added.
リリースノート: Improved the Fakey signal (F).
Added early Fakey signal (f).
リリースノート: Minor changes.
リリースノート: Plot Fractals added.
リリースノート: Reverse fractals added.

Segments added (taken from Joe Ross' books). These Segments are an early trend detection method. I will add Segments to my "The Strategy - ..." script in the next days.
リリースノート: Changed segment signal plotting. Now the segment signal is not deleted if a segment series is no longer valid. By definition, the segment signal cannot be repainted. The segments follow higher lows and lower highs.
Definition of a valid long signal: there are three segments and the current candle high is higher than the last candle high (high> high ).
リリースノート: Tooltips added.
Trend line bug fixed.
リリースノート: General description added.
リリースノート: Minor changes.
リリースノート: Groups added. Minor chnages.
リリースノート: Pin bar detection improved and minor changes.
リリースノート: Screenshot issue.
リリースノート: Segments- signal and documentation improved/changed.
リリースノート: EMA cloud added.
リリースノート: Horizontal support and resistance lines added.
リリースノート: Multi time frame classic pivot points added.
リリースノート: Source for SR-lines added.
リリースノート: Attributes of drawn objects added.
リリースノート: Pin bar revised.
リリースノート: Divergence signal and momentum indication added.
リリースノート: Removed the momentum indicator. You can use the "RSI with BG" script for momentum indication where you can toggle between RSI and RSI Stochastic.
Minor changes/improvements.
リリースノート: Quarterly classic pivot points added. Maximum outputs with this script reached.
リリースノート: Minor changes.
リリースノート: Uncommented daily and weekly pivot points (output restrictions). Added 6 month and 12 month pivot points.
リリースノート: Script converted to Pine v5.
リリースノート: Script revised.
1 week pivot point added.
Signals added/revised.
リリースノート: HMA slope as background color added.
Trend line signals and bg signals can be displayed at the same time, now.
リリースノート: Trend info panel added.
リリースノート: Documentation issue.

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 a publication is governed by House Rules. You can favorite it to use it on a chart.