Learn more about the different AI strategies that MALY uses.
A regression strategy in bot trading, viewed from the perspective of Machine Learning (ML), involves developing a model that learns from historical market data and makes predictions about future price movements. Here, regression analysis methods are applied to model the relationships between different influencing factors (e.g., technical indicators) and the prices of an asset.
The bot aggregates historical data (such as price, trading volume, technical indicators) over a defined period. This data serves as features (input variables), while the target variable is typically the future price or price change.
Using Machine Learning methods (e.g., Support Vector Machines (SVM), neural networks, or linear regression), a model is trained. The training aims to identify patterns and relationships in the historical data. In linear regression, the goal is to determine the optimal weights for the input data (features) to predict the future price or price movement as accurately as possible.
After training the model, validation is performed using test data that was not used for training. This makes it possible to test the model's generalization ability and avoid overfitting, i.e., merely "memorizing" the training data. Cross-validation is a common method for this. In Maly, the question "How much to buy, how long to wait between purchases, when to sell again" is additionally answered by another ML model (Reinforcement Learning / Q-Learning). Thus, both ML models work together within this AI type.
Once the model is well validated, the bot can use it to make a prediction for the future price based on current market data (i.e., current features). This prediction can be used as a basis for a trading decision: If the bot predicts that the price will rise, it could open a buy position.
Features: Historical price movements, moving averages, trading volume
Target: The future price or percentage change in price
The model could then recognize that a certain moving average has frequently correlated with a price increase in the next 5 hours in the past.
After the model has learned the relationship of these variables, it is able to provide a prediction for the upcoming price movement.
The BolRSI strategy combines two proven technical indicators: Bollinger Bands and the Relative Strength Index (RSI). This strategy uses fixed, predefined standard values and deliberately does not use Q-Learning or other reinforcement learning methods for optimization.
Bollinger Bands consist of a moving average (typically 20 periods) and two bands that are each two standard deviations above and below the average. These bands expand and contract based on market volatility and help identify overbought and oversold market conditions.
The RSI is a momentum indicator that measures the speed and magnitude of price movements. It moves on a scale from 0 to 100. Values below 30 indicate oversold conditions (potential buy signals), while values above 70 indicate overbought conditions (potential sell signals).
The BolRSI strategy generates trading signals when both indicators provide matching signals. For example, a buy signal occurs when the price touches the lower Bollinger Band and the RSI is below 30 at the same time. A sell signal is triggered when the price touches the upper band and the RSI is above 70.
Unlike the regression strategy, BolRSI does not use dynamic optimization through machine learning. Instead, the bot works with proven standard parameters based on decades of experience in technical trading. This makes the strategy transparent, traceable, and less prone to overfitting.