Logo hamster-bot
RU EN PT

Loading…

← All strategies

Squeeze

A trend strategy that trades the breakout after a volatility squeeze (squeeze). A squeeze is when the Bollinger Bands sit entirely inside the Keltner Channel: the market has gone quiet and the range is narrower than usual. After such a lull the price often makes a strong move in one direction, and the strategy enters at its start.

The bot chart shows the Bollinger Bands (blue) and the Keltner Channel (orange).

ATR stop, target and trailing stop. At entry the bot stores the ATR and computes the levels: stop = entry price ∓ stop_atr × ATR, target = entry price ± take_atr × ATR. The trailing stop follows the best price since entry at a distance of trail_atr × ATR and works together with the stop - whichever is closer to the price triggers. Levels are checked on every tick against the current price and the position is closed with a market order. Levels are saved in the bot state and survive a restart. If the position was opened manually or by another strategy, the levels are computed from its entry price and the current ATR.

⚠️ False breakouts: after a squeeze the price can leave the channel and come straight back. In a sideways market without follow-through the strategy collects a series of small stops.

Parameters

The squeeze block in the bot settings, basic.strategy: squeeze

Entry filters entry_filter - they only restrict new entries and never block exits. All are off by default. When several are on, an entry is allowed only if all of them pass.


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