// Generate alerts alertcondition(longCondition, title="Buy Signal", message="50 EMA is above 200 EMA - Buy") alertcondition(shortCondition, title="Sell Signal", message="50 EMA is below 200 EMA - Sell")
// Execute trades based on the conditions if (longCondition) strategy.entry("Buy", strategy.long)