// Background color based on ADX value bgcolor(adx > adxThreshold ? color.new(color.green, 90) : color.new(color.red, 90), title="Trend/Ranging Highlight")
// Add a horizontal line for the threshold hline(adxThreshold, "ADX Threshold", color=color.gray, linestyle=hline.style_dotted)