OPEN-SOURCE SCRIPT

Golden Cross Max Rise % (Near GC)

27
This indicator identifies Golden Cross events (when the 100-period SMA crosses above the 200-period SMA) and tracks the subsequent price action until a Death Cross occurs (100-period SMA crosses below the 200-period SMA).

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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.