OPEN-SOURCE SCRIPT

Crosby Ratio Indicator

60
//version=5
indicator("Crosby Ratio Indicator", overlay=false)

// Define the parameters (Adjust as needed)
length = input(14, title="Lookback Period")

// Example Calculation (Replace with actual Crosby Ratio formula)
highs = ta.highest(high, length)
lows = ta.lowest(low, length)
crosby_ratio = (highs - lows) / lows * 100 // Placeholder formula

// Plot the Crosby Ratio
plot(crosby_ratio, title="Crosby Ratio", color=color.blue, linewidth=2)

// Add a baseline (Optional)
hline(50, "Threshold", color=color.red, linestyle=hline.style_dotted)

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.