Logo hamster-bot
RU EN PT

Loading…

← All strategies

HiDeep

This strategy came out of long thinking about how to improve the mean reversion | MRS | Envelope strategy, and those improvements turned into a separate strategy.
Key fundamental differences from MRS:
● works only with market orders. The price at which the buy/sell will happen is not known in advance, so nothing can be placed ahead of time
● all actions happen at the moment the candle closes. This gives a very simple, robust strategy logic that backtests very well even in primitive strategy testers
● a non-obvious consequence of the point above - much better survival of the strategy during sharp moves within a single candle. Nothing happens inside the candle, even if the candle makes an 80% price move.
● the strategy uses the MRS logic as one of the conditions (a filter) for triggering an order.
● unlimited averaging in.

It is a counter-trend strategy that looks for moments of local oversold conditions and opens buys on pullbacks down, expecting a subsequent bounce.
It combines:
● entry filtering with a moving average (as in the strategy above - Mean reversion | MRS)
● analysis of the price deviation from the average
● a simple oversold model (similar to RSI). The price falls faster than usual.
● exit on signs of price recovery (the mirror-opposite of the buy conditions)

The strategy tries to catch a situation where:
● The price has dropped sharply
● The move looks "overloaded" (too strong compared to normal)
● There are signs of short-term oversold conditions
At such moments it assumes the market has temporarily overshot downwards and may bounce.

HiDeep strategy

An example of a HiDeep strategy variation on the chart above.
Long entry and subsequent averaging in on candles that are:
● below the green trigger MA line shifted down
● marked with a green triangle ▲
The position closes when the High touches the red MA line. (action at the candle close)
The blue line shows the average buy price.

⚠️ In a prolonged decline without a bounce, the position keeps growing through averaging in and the loss grows. Limit the number of averaging entries and the lot size.

How the signal is determined (green/red triangle)

A buy signal (green ▲) appears on a candle that at the same time:
● is red (closed below its open)
● has its body below the body of the previous candle
● has a deviation of the close price from the SMA larger than the average deviation over recent candles (the move is "overloaded")
● has a fast RSI below 10 (strong short-term oversold)
A sell signal (red ▼) is the mirror: a green candle, body above the previous one, a strong upward deviation, fast RSI above 90.

Signals are calculated with two independent sets of settings, and either one triggers. In addition, the close price must be below the MA low line (for a buy) or above MA high (for a sell).

Parameters

MA lines

Signal

Averaging in and closing

Modes

The bot starts trading only when enough candles are loaded to calculate the indicators. With the trend filter enabled, at least 500 candles are needed.

Backtest
Test in the built-in backtester

Scripts (PineScript) for testing the strategy on historical data in the TradingView strategy tester. The hamster-bot-HiDeep script contains three different variants of the strategy - pick the one you need with a preset in the settings.


Backtest the strategy on historical data in the tester and run it in hamster-bot.