//@version=5 strategy("Swing Trading Strategy", overlay=true) // Define parameters fastLength = input(10, "Fast MA Length") slowLength = input(20, "Slow MA Length") stopLossPct = input(2, "Stop Loss Percentage") takeProfitPct = input(3, "Take Profit Percentage") // Calculate moving averages fastMA = sma(close, fastLength) slowMA = sma(close, slowLength) //...