//@version=5 indicator("HMA Trend Signal", overlay=true) // Parameters length = input.int(21, title="HMA Length") // Calculate the Hull Moving Average wma1 = ta.wma(close, length) wma2 = ta.wma(close, length / 2) hma = ta.wma(2 * wma2 - wma1, math.round(math.sqrt(length))) // Define conditions for buy and sell signals buySignal = ta.crossover(close,...