Tags: RSIEMA

This strategy utilizes three exponential moving averages (EMAs) with different periods and the Relative Strength Index (RSI) to determine market trends and trading signals. A buy signal is generated when the price breaks above the 200-day EMA and the RSI is above 50, while a sell signal is generated when the price falls below the 200-day EMA and the RSI is below 50. The strategy is suitable for swing trading on the daily timeframe.

- Calculate the 200-day, 50-day, and 21-day EMAs, represented by blue, red, and green lines, respectively.
- Calculate the 14-period RSI.
- Generate a buy signal when the closing price crosses above the 200-day EMA and the RSI is above 50.
- Generate a sell signal when the closing price crosses below the 200-day EMA and the RSI is below 50.
- Position size is 1% of the account balance.
- For buy trades, the stop loss is set 50 points below the 200-day EMA, and the take profit is set 100 points above the entry price.
- For sell trades, the stop loss is set 50 points above the 200-day EMA, and the take profit is set 100 points below the entry price.

- Combining price and momentum indicators helps capture trend formation and reversal timings.
- Three EMAs with different periods provide a comprehensive view of short, medium, and long-term trends, reducing signal frequency and false signals.
- RSI filters out trading signals in choppy markets, reducing losing trades.
- Fixed percentage position sizing helps control risk.
- Setting stop losses and take profits protects against single-trade risk.

- Signal lag at trend turning points may lead to partial profit loss.
- RSI signals may generate premature reverse signals in strong trends.
- Fixed percentage position sizing may be riskier in highly volatile markets.
- Stop loss levels too close to the 200-day EMA may result in frequent stop-outs.

- Introduce more medium and long-term moving average combinations to optimize signals.
- Consider RSI divergences and overbought/oversold conditions to adjust signals.
- Dynamically adjust position sizing based on volatility indicators like ATR.
- Optimize stop loss and take profit levels based on support/resistance levels, percentages, or ATR.
- Introduce trend filtering conditions, such as the ADX indicator, to avoid trading in choppy markets.
- Perform parameter optimization and backtesting validation for different instruments and timeframes.

By utilizing trading signals based on EMA bullish crossovers and RSI in the bullish zone, this strategy can capture relatively clear medium to long-term trend moves. However, its performance may be average during early trend reversals and choppy markets, making it more suitable for trending markets overall. Further optimizations can be made in terms of signals, position sizing, stop losses and take profits, and filtering conditions to improve the strategy’s stability and risk-adjusted returns.

/*backtest start: 2024-05-01 00:00:00 end: 2024-05-31 23:59:59 period: 1h basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=5 strategy("Lexi Supreme", overlay=true) // Calculate EMA 200 ema200 = ta.ema(close, 200) // Calculate EMA 50 ema50 = ta.ema(close, 50) // Calculate EMA 21 ema21 = ta.ema(close, 21) // Calculate RSI rsiValue = ta.rsi(close, 14) // Buy condition: RSI above 50 and price crosses above EMA 200 buyCondition = ta.crossover(close, ema200) and rsiValue > 50 // Sell condition: RSI below 50 and price crosses below EMA 200 sellCondition = ta.crossunder(close, ema200) and rsiValue < 50 // Position Size (1% of account balance) positionSize = 1 // Stop Loss and Take Profit values for buy trades stopLossBuy = ema200 - 0.00050 takeProfitBuy = 0.00100 // Stop Loss and Take Profit values for sell trades stopLossSell = ema200 + 0.00050 takeProfitSell = 0.00100 // Plot EMA 200 line in blue plot(ema200, color=color.blue, title="EMA 200") // Plot EMA 50 line in red plot(ema50, color=color.red, title="EMA 50") // Plot EMA 21 line in green plot(ema21, color=color.green, title="EMA 21") // Plot buy entry points in yellow plotshape(series=buyCondition, title="Buy Signal", color=color.yellow, style=shape.triangleup, location=location.belowbar, size=size.small) // Plot sell entry points in white plotshape(series=sellCondition, title="Sell Signal", color=color.white, style=shape.triangledown, location=location.abovebar, size=size.small) // Strategy entry and exit conditions with position size, stop loss, and take profit for buy trades if (buyCondition) strategy.entry("Buy", strategy.long, qty=positionSize) strategy.exit("Take Profit/Stop Loss Buy", from_entry="Buy", stop=stopLossBuy, limit=close + takeProfitBuy) // Strategy entry and exit conditions with position size, stop loss, and take profit for sell trades if (sellCondition) strategy.entry("Sell", strategy.short, qty=positionSize) strategy.exit("Take Profit/Stop Loss Sell", from_entry="Sell", stop=stopLossSell, limit=close - takeProfitSell)

- EMA Cross Strategy with RSI Divergence, 30-Minute Trend Identification, and Price Exhaustion
- Low finder
- RSI and Dual EMA Crossover Signal Quantitative Strategy
- Enhanced Bollinger Bands RSI Trading Strategy
- crypto futures hourly scalping with ma & rsi - ogcheckers
- Moving Average and Relative Strength Index Strategy
- Multi-Momentum Linear Regression Crossover Strategy
- Dual Moving Average RSI Momentum Strategy Based on EMA and Trendline Breakouts
- EMA, RSI, TA, Multi-Indicator Trading Strategy
- EMA RSI Crossover Strategy

- RSI Dual-Period Moving Average Reversal Strategy with Dynamic Risk Management System
- Markov Chain Probability Transition State Quantitative Trading Strategy
- SMA Crossover Strategy with RSI Filter and Alerts
- Dynamic Donchian Channel and Simple Moving Average Combination Quantitative Strategy
- Dynamic Fibonacci Retracement Trading Strategy
- Bollinger Bands and Exponential Moving Average Crossover Trading Strategy
- EMA and Supertrend Combination Quantitative Trading Strategy
- EMA, RSI, TA, Multi-Indicator Trading Strategy
- SUPERTREND Trend-following Long Position with Stop-loss and Take-profit Strategy
- Trend Following Adaptive Expected Value Assessment Strategy Based on Crossover Moving Averages
- EMA Dynamic Stop-Loss Trading Strategy
- RSI, MACD, Bollinger Bands and Volume-Based Hybrid Trading Strategy
- ZLSMA-Enhanced Chandelier Exit Strategy with Volume Spike Detection
- Short-term Quantitative Trading Strategy Based on Dual Moving Average Crossover, RSI, and Stochastic Indicators
- RSI Low Point Reversal Strategy
- Fisher Transform Dynamic Threshold Trend Following Strategy
- Mean Reversion Strategy
- EMA100 and NUPL Relative Unrealized Profit Quantitative Trading Strategy
- Volatility Range Trading Strategy Based on Stochastic Oscillator
- Simple Combined Strategy: Pivot Point SuperTrend and DEMA