Guide
How does the RSI Buy & Sell Trading Script strategy work ?
The RSI Buy & Sell Trading Script leverages the Relative Strength Index (RSI) to identify potential buy and sell opportunities. Initiated with $100 and investing 10% per trade, it outlines specific rules for opening and closing orders based on the RSI and a Moving Average (MA) indicator.
- For a buy signal, the script requires the RSI to surpass 68 and the current MA to be higher than the previous MA value. It then divides the take profits (TP) into two parts: 50% at a 0.4% profit (TP1) and the remaining 50% at 0.8% profit (TP2). A stop loss (SL) is set 2% below the entry point. The buy order closes if the RSI falls below 30.
- Conversely, a sell signal is triggered when the RSI is below 28 and the current MA is less than the previous MA. Similarly, TP1 is set at 0.4% profit and TP2 at 0.8% profit, with 50% of the order allocated for each. The SL is positioned 2% above the entry point, and the sell order closes when the RSI rises above 60.
The script is configurable to backtest starting from a user-selected month and includes a monthly table showing total profits, which needs activation in the settings.
- Enhancements mentioned involve adjusting the stop loss strategy: moving the SL to break even upon achieving TP1, and to the level of TP1 when TP2 is hit. Additionally, a dynamic take profit mechanism is desired which allows part of the trade to remain active after a 1% profit is achieved, closing the order if the price retraces by 0.5%.