Not ATH filter: don't short a coin at its all-time high

Updated:

The Not ATH filter forbids the Snapback bot from shorting a coin whose pump peak has reached its recent ceiling, meaning the highest price of the last 60 days. The name abbreviates "all-time high", although the code actually checks the 60-day maximum.

What it means in plain words

If a coin has broken its own ceiling, it has entered a zone with no "support" price above it: nobody has bought higher, so there is nobody to stop the surge. Such breakouts often keep running. The filter simply refuses to short where the price has broken the maximum of the last two months.

Why it exists

A pump near the ceiling is more dangerous for a short than a pump in the middle of an ordinary range. The code states the reason directly: breakouts often continue the move, so the bot does not short into them.

How it works in the code

The bot takes the maximum of the daily candles over the last lookback_days completed days (60 by default; today is not included). It then calculates the ceiling with the buffer: ceiling = maximum x (1 - buffer / 100). If the pump peak is not below this ceiling, the signal is rejected. If there is no daily history at all yet, the signal is also rejected.

Illustration of the mechanism only, not advice: the 60-day maximum is 100. With a 0% buffer, a coin with a pump peak of 100 or higher is rejected and 99 passes. With a 5% buffer the ceiling is 95, so a peak of 96 is rejected too.

In the wizard only the checkbox and the buffer can be changed. The number of days (60) cannot be chosen there; the default from the code applies.

Allowed values and defaults

  • On/off: on by default.
  • Buffer to the high, %: 0 by default; in the wizard from 0 with a step of 0.5.
  • Number of days: 60 (in the code only).

What happens if it is higher or lower

  • Bigger buffer: the filter also cuts off coins that merely came close to the maximum. Fewer trades; both promising and dangerous ones are filtered out.
  • Smaller buffer (zero): only coins that actually reached or broke the ceiling are cut off.
  • Filter off: a short is possible at any level relative to history.

How it connects to other settings

  • Confirmation candle: requires a pullback from the peak, while Not ATH looks at where the peak sits relative to the 60-day history.
  • Pump threshold: the pump itself has to appear first.

Common mistakes

  • Assuming the filter compares against the coin's entire history. It uses only the last 60 completed days.
  • Expecting the buffer to be a percentage drop from the peak. It is a margin below the daily ceiling.
  • Not accounting for the fact that a new coin lacks daily history, so its signal is rejected.

Where to find it in the bot wizard

The "New bot" or "Edit" form, the "Coin filters" block. On the right is the "Not ATH" card with a checkbox (caption "don't short a coin that is breaking its 60-day high") and the "Buffer to the high, %" field, which appears when the box is ticked.

Frequently asked questions

What does ATH mean in the bot settings?

ATH stands for all-time high. In the Snapback bot it means the highest price over the last 60 days (the ceiling), not over the coin's whole life.

Why avoid shorting a coin at its high?

When the price breaks through its ceiling, the move often continues, and a short against it is dangerous. The filter protects against such entries.

What is the buffer to the high?

It is a percentage margin below the ceiling. The bot treats a coin as too close to its high if the pump peak is not lower than the ceiling minus this margin.

Can I turn the Not ATH filter off?

Yes, it is a checkbox. Coins near their highs can then be shorted too, provided they pass the other conditions.

Read also