Guide
How does the hamster-bot MRS 2 (simplified version) strategy work ?
The hamster-bot MRS 2 strategy is an implementation of the Mean Reversion Strategy (MRS), which operates under the concept that prices will revert to their mean over time. It employs various types of moving averages (MAs) to determine entry and exit points for trades. The strategy is designed to be simple with few settings, ideal for beginners to familiarize themselves with algorithmic trading, and aims to minimize overfitting by allowing only minimal adjustments.
The operating principle of the strategy can be broken down into three components:
- Calculation of a conventional Moving Average (MA) represented by a fuchsia line, which acts as a target to place limit orders for closing positions.
- The establishment of a green line to identify where to place limit orders to enter long positions.
- The use of a red line to indicate where to place limit orders for initiating short positions.
It's important to note that the strategy incorporates limit orders, suggesting that it may be best suited for markets with a certain level of liquidity. For testing, it is recommended to enable only long positions in the spot market, specifically for crypto exchanges, focusing on pairs such as altcoin/bitcoin.
The settings of the strategy offer a wide range of MAs, including SMA, EMA, TEMA, DEMA, ZLEMA, WMA, HMA, and DMA, among others. Implementing a Kalman filter to these MAs is optional. The script also provides options to enable or disable long and short trades, allocate a percentage of the deposit for position sizing, and set the testing period's start and end dates.
The novel aspect of the hamster-bot MRS 2 strategy is the large selection of MAs it offers and the ability to shift lines, enabling users to customize the mean reversion approach according to their preferences.