The "fahmibah" strategy implemented in the backtesting website includes the following key steps:
Indicators Population: The strategy starts by populating various indicators based on the provided input dataframe and metadata. These indicators include Heikin-Ashi candlestick values (open, close, high, low), Bollinger Bands (mid, lower), and other derived values such as bb_20_std2, bbdelta, closedelta, tail, bb_lowerband, ema_slow, rocr, and ema_200. Additionally, informative data on a higher timeframe (1 hour) is obtained and merged with the current timeframe.
Buy Trend Population: The strategy defines different conditions for identifying buy signals and assigns a "buy_tag" to the respective rows in the dataframe.
The conditions for potential buy signals include:
a.
Fahmi1: The close price is above the exponential moving average (ema_200) and below a specific lower Bollinger Band threshold (bb20_2_low * fahmi1_lower). Furthermore, the difference between the open and close prices is less than the difference between the upper and lower Bollinger Bands two periods ago. b. Fahmi2: Similar to Fahmi1, but without considering the difference between the open and close prices. c. ClucHA: A combination of conditions involving the relative strength index (rocr_1h), Bollinger Bands, close price, and other factors. It checks for specific patterns related to the lower Bollinger Band, delta values, and the position of the close price relative to the Bollinger Bands and exponential moving average. If any of the conditions are met, a binary "buy" signal is assigned to the respective row in the dataframe. Sell Trend Population: The strategy populates the sell signals by assigning a "sell" value of 0 to all rows in the dataframe. In summary, the "fahmibah" strategy calculates various indicators, identifies potential buy signals based on specific conditions, and leaves the sell signals as 0, indicating no selling action.