This script enters a long position when the 20 EMA crosses above the 50 EMA and closes the position when the 20 EMA crosses below the 50 EMA. It also plots both EMAs on the chart for visualization.
Would you like to add stop-loss, take-profit, or short positions?