Pump window: the time frame in which a coin must rise

Updated:

The pump window sets how much time a price rise has to happen in for the Snapback bot to count it as a pump. Together with the pump threshold it defines how fast a move must be: 10% in one hour and 10% in two hours are different events.

What it means in plain words

Picture a sliding window that keeps moving forward with time. The bot looks only at prices inside it and knows nothing about what happened earlier. If the price climbed by the required percentage within that stretch, the condition is met.

Why it exists

Without a time limit, a slow climb over a whole day would look the same as a sharp jump within an hour. The window cuts off slow moves and keeps the ones that resemble pumps. A longer window also catches pumps that stretched out, but it lets through more moves that were really just an ordinary trend.

How it works in the code

The three values map to a number of one-minute candles: "1h" is 60 candles, "1.5h" is 90, "2h" is 120. On every closed one-minute candle the bot takes the last N candles and finds the highest high and the lowest low before it (see pump threshold). If less history is in memory than the window needs, the coin is skipped with no log entry.

Illustration of the mechanism only, not advice: with a 1-hour window (60 one-minute candles), a low that was 90 minutes ago is already outside the window and is ignored.

Allowed values and defaults

Only "1h", "1.5h" and "2h". The code has no default value, so one must be chosen. The wizard form starts on 1 hour.

What happens if it is shorter or longer

  • Shorter window: the bot reacts only to fast spikes. Slower climbs that add up to the same percentage no longer qualify.
  • Longer window: you can get more signals, because a longer stretch makes it easier to accumulate the required percentage. Slower climbs also qualify.

Which window works better depends on the coins and the period. You can check it with a backtest, but history does not guarantee the future.

How it connects to other settings

  • Pump threshold: the two work only as a pair; neither describes speed on its own.
  • The confirmation candle looks at its own separate time span (15-minute candles) and does not depend on the pump window.

Common mistakes

  • Changing the window and the threshold at the same time and then not knowing which change caused the difference. It is better to change one at a time.
  • Assuming a long window makes the bot more cautious. It only changes what counts as a pump.
  • Looking for a custom value such as 30 minutes: it is not in the settings.

Where to find it in the bot wizard

The "New bot" or "Edit" form, the "Pump" block. The second row of cards reads "within 1 h", "within 1.5 h", "within 2 h" (the first row is the rise percentages).

Frequently asked questions

What is the pump window?

It is the stretch of time, counted in one-minute candles, inside which the bot measures the price rise. Three options exist: 1 hour, 1.5 hours and 2 hours.

How is the window different from the pump threshold?

The threshold says how many percent the price must rise; the window says over how much time. Together they describe how fast the move was.

Can I set a 15-minute or 30-minute window?

No. Only 1 hour, 1.5 hours and 2 hours are allowed in the bot settings.

Read also