OPEN-SOURCE SCRIPT

Buy Side Strategy with MA and RSI

94
Buy Entry Condition:
Price crosses above the 20 EMA.
RSI is greater than 50 (indicating a bullish trend).
If both conditions are met, a Buy signal (▲) is triggered.
Exit Condition:
Price crosses below the 20 EMA.
If the exit condition is met, an Exit Buy signal (✖) is triggered.
Moving Averages:
20 EMA is plotted in blue.
50 EMA is plotted in orange.
RSI:
RSI is plotted in the main window.
A dotted line is drawn at RSI = 50 to help visualize trend strength.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.