The obonly strategy is an implementation of the IStrategy class. Here's a short description of what the strategy does:
The populate_indicators method takes a DataFrame and metadata as input and returns a modified DataFrame after populating it with indicators. It merges informative data from the 1-hour timeframe and applies additional indicators to the normal timeframe.
The populate_buy_trend method also takes a DataFrame and metadata as input and returns a modified DataFrame.
It applies various conditions to determine the buying trend based on the strategy.
These conditions include checks on price movements, moving averages, Bollinger Bands, RSI (Relative Strength Index), volume, and other factors. The strategy has multiple buy conditions, numbered from 0 to 6. Each condition consists of a set of logical expressions that must be satisfied for a buy signal to be generated. These conditions involve comparisons between the close price, moving averages, Bollinger Bands, RSI values, volume, and other variables. Overall, the strategy aims to identify potential buying opportunities based on a combination of technical indicators and price/volume patterns.