The BinHV45 strategy is a trading strategy that uses Bollinger Bands as an indicator. Here's a short description of what the strategy does:
It calculates the Bollinger Bands for the closing prices of a stock, using a window size of 40 and 2 standard deviations. It creates additional indicators based on the Bollinger Bands, such as the mid-band, lower band, Bollinger Band delta, price delta, and tail.
It looks for buying opportunities based on certain conditions:
The previous lower band is greater than 0.
The Bollinger Band delta is greater than 0.8% of the current closing price.
The close delta (difference between current and previous close) is greater than 1.75% of the current closing price. The tail (difference between current close and lowest price) is less than 25% of the Bollinger Band delta. The current close is lower than the previous lower band. The current close is less than or equal to the previous close. It marks the buy signal as 1 in the dataframe for the corresponding buy opportunities. It does not provide any sell signals. The strategy aims to capture potential buying opportunities based on the Bollinger Bands and specific conditions.