This script identifies trading opportunities by combining:
EMA Crossovers: Detects when the short-term trend (5 EMA) crosses the longer-term trend (20 EMA). MACD Crossovers: Confirms momentum shifts when the MACD line crosses its signal line. The script ensures that a signal is only generated when both conditions align, reducing false signals.