Untitled

 avatar
user_8870758
plain_text
9 months ago
438 B
96
Indexable
//@version=5
indicator("67% Fall from ATH", overlay=true)

// Calculate the all-time high (ATH)
var float ath = na
if high > ath or na(ath)
    ath := high

// Calculate the 67% level from ATH
var float level67 = na
if not na(ath)
    level67 := ath * 0.33  // 67% fall from ATH

// Plotting the levels
plot(ath, color=color.red, linewidth=2, title="All-Time High")
plot(level67, color=color.green, linewidth=2, title="67% Fall from ATH")
Editor is loading...
Leave a Comment