//@version=5 indicator("Supertrend", overlay=true, timeframe="", timeframe_gaps=true) atrPeriod = input(10, "ATR Length") factor = input.float(3.0, "Factor", step = 0.01) = ta.supertrend(factor, atrPeriod) bodyMiddle = plot((open + close) / 2, display=display.none) upTrend = plot(direction < 0 ? supertrend : na, "Up Trend", color = color.green,...