// Buy Entry Conditions buyCondition = ta.crossover(emaFast, emaSlow) and close > vwap and rsiValue > rsiSignal and macdLine > signalLine if (buyCondition) strategy.entry("Long", strategy.long)
// Sell Entry Conditions sellCondition = ta.crossunder(emaFast, emaSlow) and close < vwap and rsiValue < rsiSignal and macdLine < signalLine if (sellCondition) strategy.entry("Short", strategy.short)
// Stop Loss & Take Profit strategy.exit("Exit Long", from_entry="Long", loss=10, profit=20) strategy.exit("Exit Short", from_entry="Short", loss=10, profit=20)