// Define Conditions longCondition = ta.crossover(macdLine, signalLine) and close > sma shortCondition = ta.crossunder(macdLine, signalLine) and close < sma
// Stop Loss and Take Profit longStopLoss = close - atr * atr_multiplier shortStopLoss = close + atr * atr_multiplier