//@version=5 strategy("Gold Trading Strategy", overlay=true) // Input parameters k_period = input(14, title="Stochastic %K Period") d_period = input(3, title="Stochastic %D Period") smooth_k = input(3, title="Stochastic Smoothing") sma_50 = ta.sma(close, 50) sma_200 = ta.sma(close, 200) = ta.stoch(k_period, d_period, smooth_k) // Buy condition buy_condition...