Golden Cross Max Rise % (Near GC)

Upon the completion of a Golden Cross to Death Cross cycle, the script calculates the maximum percentage rise achieved from the closing price at the Golden Cross to the highest high recorded during that cycle.
This maximum percentage rise is then displayed as a text label on the chart. The label is strategically placed near the bar where the Golden Cross originally occurred, providing a historical performance insight for that specific cycle. The label includes the max rise percentage, the price at the Golden Cross, and the highest high reached.
Additionally, the indicator plots the 100-period and 200-period SMAs and visually marks Golden Cross events on the chart with an upward-pointing triangle. Users can customize the lengths of the SMAs and the price source used for calculations.
Key Features:
Calculates the maximum percentage rise between a Golden Cross and the subsequent Death Cross.
Displays the result as a label positioned near the original Golden Cross bar.
Plots SMA 100 and SMA 200.
Marks Golden Cross events with a shape.
Configurable SMA lengths and price source.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.