The TaSearchDynamic30m strategy is a trading strategy designed for backtesting on a 30-minute timeframe. Here's a short description of what the strategy does:
It initializes an instance of the TaSearchDynamic class, which is responsible for performing dynamic searches based on technical analysis indicators. The strategy populates indicators on the provided DataFrame (df) by calling three methods:
find_extremes: Finds extreme values in the price data.
buy_past_rsi: Calculates a percentage value and assigns it to the "buy_past_rsi" column based on the RSI (Relative Strength Index) values of the past 48 * 4 to 24 data points.
buy_stride: Determines the "buy_stride" value by comparing the RSI values and the percentage values of previous data points within the last 24 intervals.
The strategy populates the "buy" trend by setting specific conditions on the DataFrame:
The "buy_stride" value should be between -1 and 10. The "buy_past_rsi" value should be greater than -1. The "market" value should be -1. The strategy populates the "sell" trend by setting specific conditions on the DataFrame:
The RSI_7 value should be greater than 85. OR, both the RSI_7 value should be greater than 70 and the RSI_30 value should be greater than 62. The strategy uses technical analysis indicators, such as RSI and market extremes, to identify potential buying and selling opportunities.