logo
Developers

hamster-bot MRS 2 (simplified version)

Script from: TradingViewIntradayMean reversionBot

The Hamster-Bot MRS 2 is a beginner-friendly mean reversion strategy designed for those new to algorithmic trading. It utilizes a simple setup with customizable moving averages to establish buy and sell signals based on the concept of price normalization. The strategy involves limit orders for position openings and closings, and is suitable for use in the spot market. The open-source code allows for community input and improvements.

PAX Gold / TetherUS (PAXGUSDT)

+ hamster-bot MRS 2 (simplified version)

@ Daily

2.64

Risk Reward

68.90 %

Total ROI

49

Total Trades

ONDO / TetherUS (ONDOUSDT)

+ hamster-bot MRS 2 (simplified version)

@ 15 min

1.49

Risk Reward

16.18 %

Total ROI

52

Total Trades

QNT / TetherUS (QNTUSDT)

+ hamster-bot MRS 2 (simplified version)

@ 1 h

1.18

Risk Reward

121.63 %

Total ROI

341

Total Trades

CAKE / TetherUS (CAKEUSDT)

+ hamster-bot MRS 2 (simplified version)

@ 15 min

1.13

Risk Reward

2.13 %

Total ROI

17

Total Trades

Bitcoin SV/Tether (BSVUSDT)

+ hamster-bot MRS 2 (simplified version)

@ 2 h

1.12

Risk Reward

25.02 %

Total ROI

1488

Total Trades

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ 2 h

27.36

Risk Reward

79.14 %

Total ROI

30

Total Trades

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ 4 h

11.86

Risk Reward

87.58 %

Total ROI

32

Total Trades

Lucid Group, Inc. (LCID)

+ hamster-bot MRS 2 (simplified version)

@ 1 h

1.18

Risk Reward

18.27 %

Total ROI

573

Total Trades

Grab Holdings Limited (GRAB)

+ hamster-bot MRS 2 (simplified version)

@ 1 h

1.17

Risk Reward

9.85 %

Total ROI

335

Total Trades

AMC Entertainment Holdings, Inc. (AMC)

+ hamster-bot MRS 2 (simplified version)

@ 15 min

1.16

Risk Reward

122.32 %

Total ROI

307

Total Trades

Grab Holdings Limited (GRAB)

+ hamster-bot MRS 2 (simplified version)

@ 4 h

1.15

Risk Reward

9.37 %

Total ROI

246

Total Trades

Grab Holdings Limited (GRAB)

+ hamster-bot MRS 2 (simplified version)

@ 2 h

1.15

Risk Reward

298.86 %

Total ROI

380

Total Trades
Create your account for free to see all 26+ backtests

Access filters, details, best timeframes, explore 100K+ backtests and more

Active Trades

Create your account to see on which symbols hamster-bot MRS 2 (simplified version) is currently trading on.

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.

How to use the hamster-bot MRS 2 (simplified version) strategy ?

This trading strategy uses a variety of moving averages (MA) to determine entry and exit points for trades based on conditions that favor long or short positions. It employs Kalman filtering for refining MA signals and allows customization of MA type, source, and length. The strategy operates within a user-defined time frame and includes lot size management based on equity percentage.

To trade this strategy manually on TradingView:

  • Determine the type of moving average (SMA, EMA, etc.) you want to use for opening long and short positions as well as for closing positions.
  • Set up these MAs on your TradingView chart using the moving average function with the chosen settings, or implement a custom script to use a Kalman filter if preferred. The OHLC4 (average of the open, high, low, and close prices) is generally used as the source for the moving average calculations.
  • Establish entry conditions for long positions when the price multiplies an adjustable shift factor lower than the calculated MA for opening long positions, and similarly for short positions when the price multiplies an adjustable shift factor higher than the MA for opening short positions.
  • Define the exit strategy using another moving average, multiplied by an adjustable factor; exit trades when the current price crosses this MA.
  • Input the desired starting and ending dates for the trading strategy to ensure it operates only within a specified time frame.
  • Use the plot function to visualize the MAs and the entry or exit points on the chart.
  • Manually enter long or short positions based on the conditions mentioned, with lot sizes proportionate to the equity percentage you've set, and exit based on the crossing of the closing MA.

How to optimize the hamster-bot MRS 2 (simplified version) trading strategy ?

To enhance the hamster-bot MRS 2 strategy when trading manually on TradingView, the following plan of action focuses on customizing indicators, refining entry and exit conditions, and managing risk:

  • Indicator Customization: Initially, add the core moving averages (MA) to your TradingView charts. Experiment with different MAs like EMA, SMA, or Hull Moving Average, to evaluate which responds best to the asset's price action. Utilize the strategy's adjustable settings to offset the MA lines, with trial and error to find the optimal multiplier (Mul) that fits the historical data of the asset.
  • Entry Point Refinement: Rather than relying on fixed shifts to determine entry points, integrate price action analysis with MA signals. For example, look for confirmation patterns like bullish or bearish candles, support and resistance levels, or trendlines near the MA to validate entries. Incorporate volume analysis to confirm the strength of a signal, entering only when there is significant volume behind a move toward the MA.
  • Exit Point Enhancement: Instead of a blanket exit based on an opposing MA signal, implement a tiered exit strategy. Partially close positions at predetermined price levels or percentages of profit to lock in gains and utilize trailing stops to let winning trades run while protecting against reversals. You could also use a complementary indicator like the Relative Strength Index (RSI) or Average True Range (ATR) to identify overbought or oversold conditions for exit signals.
  • Risk Management Adjustment: Establish stringent risk management rules bespoke to your trading style. Keep the risk-reward ratio favorable by setting stop losses at levels that are reasonable and not too tight, and calculate lot sizes based on a fixed percentage of your equity to prevent overexposure on a single trade.
  • Market Conditions Analysis: It is crucial to adapt to changing market conditions by analyzing different timeframes and adjusting the sensitivity of your MAs accordingly. During high volatility markets, use shorter lengths to make the strategy more responsive, while longer lengths may be suitable during low-volatility periods.
  • Test and Iterate: Regularly backtest your modified strategy against historical data and in a simulated trading environment, noting how each adjustment impacts performance. Continuously record and evaluate trade outcomes, using this empirical data to fine-tune your approach.

By rigorously testing and tailoring the MRS 2 strategy, traders can seek to improve its performance and adaptability across various assets and market conditions when trading manually on TradingView.

For which kind of traders is the hamster-bot MRS 2 (simplified version) strategy suitable ?

The hamster-bot MRS 2 strategy is tailored for beginner traders who are looking to gain experience with mean reversion and algorithmic trading principles. Its simplicity, coupled with an open-source code structure, is an educational launch point for those new to these concepts, providing ample room for learning and customization without being overwhelming.

This strategy caters to a conservative trading style, as it utilizes mean reversion—a technique typically associated with lower volatility scenarios and a preference for steady gains over high-risk maneuvers. The presence of customizable moving averages and the Kalman filter option suits traders who are interested in a hands-on approach to fine-tuning their trades, while still appreciating the structure that an automated script provides.

In essence, this strategy is best for traders who:

  • Are starting their journey in algorithmic trading.
  • Prefer systematic, rule-based trading over intuitive trading.
  • Value risk management and are cautious with their trades.

Key Takeaways of hamster-bot MRS 2 (simplified version)

  • Strategy Type: A beginner-friendly, automated mean reversion system designed for an introduction into algorithmic trading.
  • Operation: It hinges on moving averages to signal entry and exit points, with the option to apply a Kalman filter for signal refinement.
  • Manual Trading: Involves hands-on customization of MAs, integration of price action analysis, and volume confirmation for more robust signal verification.
  • Optimization: Adjust MA types and lengths according to prevailing market conditions and price volatility for improved responsiveness.
  • Risk Management: Risk-conscious, with a structured approach to position sizing and stop-loss settings safeguarding the capital.
  • Automation: Tailor and test automated rules within the script for consistent execution, minimizing emotional trading errors.
  • Alerts: Set up alerts based on MA crossovers or price levels to complement manual oversight and decision-making in real-time.
  • Testing: Opt for backtesting and forward-testing, utilizing historical and simulated data to fine-tune the strategy parameters.
Explore the best Trading & TradingView strategies

Stop trading blindly. Explore the best strategies among 100K+ backtests and improve your trading skills with data.

Start for free