[JL] Supertrend Zone Pivot Point with zigzag fib

Jesse.Lau アップデート済   
This is an open-source Pine script that generates a Supertrend Zone Pivot Point with Zigzag Fib indicator for TradingView. The indicator displays the Supertrend Zone, pivot points, and Fibonacci levels on the chart.

One of the unique features of this indicator is that it uses a Zigzag that does not repaint, ensuring accurate high and low points for the pivot points.

Another feature is that when the Supertrend is in an uptrend, only the highest points are taken as pivot points, and when it's in a downtrend, only the lowest points are taken as pivot points.

The Fibonacci levels are calculated based on the previous high and low pivot points, with labels displaying the corresponding levels on the chart.

The indicator also includes options to show/hide the Zigzag and Fibonacci levels.

Overall, this indicator is useful for identifying key pivot points and Fibonacci levels in the Supertrend Zone, providing valuable information for traders to make informed decisions.

Added Premium/Discount line
When the trend is rising, and the price is under the premium/discount line, it may be a good idea to consider buying as it is in the discount zone.
When the trend is falling, and the price is above the premium/discount line, it may be a good idea to consider selling as it is in the premium zone.
Add show _supertrend and show_premiumdiscount input
Fix pivot point label position bug.

Sometimes we do not need supertrend color, so you can disable it.
Change premium/discount line to white as there is no trend notice.


TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。