Guide
How does the 3 EMA + Stochastic RSI + ATR strategy work ?
The 3 EMA + Stochastic RSI + ATR strategy, coded by Vaida Bogdan, triggers trades based on exponential moving average (EMA) crossovers combined with price action relative to the EMA lines. Here's the nutshell of how it operates:
- A 'long' signal is generated when all three EMAs align in ascending order and the closing price is above the fastest EMA.
- A 'short' signal is generated when the EMAs align in descending order with the closing price below the fastest EMA.
- The RSI crossover feature is present but deactivated by default—you have the option to activate it in the code.
- The strategy uses Adaptive Average True Range (ATR) to set a stop loss at 1x ATR from the entry price and a take profit at 4x ATR from the entry price, aiming for a favorable risk-reward ratio.
- Date range inputs allow for backtesting over specific periods for efficiency and relevance.
Script features include plot functions for EMAs and order management based on conditions like date filtering and position size. Traders can customize the strategy by fine-tuning inputs such as the length and smoothing of the ATR, or the specific EMAs to follow. When active, this strategy visualizes entry points and exit levels directly on the TradingView chart for intuitive trade management.