Skip to main content

Pocket Rocket

Pocket Rocket strategy behavior

Pocket Rocket is a cycle-based spot strategy that can enter on momentum, a pullback, or both. It combines recent averages, range, breakout, volume, spread, and exposure checks. Once a position is open, it can use a profit trail, hard profit target, optional protective stops, partial selling, and controlled DCA.

Unlike the indicator scalpers in this collection, Pocket Rocket manages the full lifecycle of an inventory cycle and calculates an average buy price across its open buys.

Private strategy

Live execution is locked to the private Gunthy wallet configured for Pocket Rocket. Other wallets can inspect and backtest the strategy, but it will show as locked instead of trading live.

warning

Protection and DCA are disabled by default. Several settings remain visible in the editor but are intentionally inactive for Pocket Rocket; these are identified below.

Entry modes

Set PR_ENTRY_MODE to:

  • momentum for strength-based entries;
  • pullback for entries below a recent mean;
  • both to accept either setup.

Every initial entry also needs:

  • no existing sellable position;
  • enough available balance and exposure room;
  • spread at or below PR_MAX_SPREAD_PCT;
  • recent range at or above PR_MIN_ENTRY_RANGE_PCT;
  • any required breakout;
  • sufficient volume ratio;
  • no active post-stop cooldown.

Momentum entry

Pocket Rocket compares a short five-candle mean with a longer 21-candle mean.

A momentum entry requires:

  • the short mean not meaningfully below the long mean, controlled by PR_MAX_ENTRY_DOWNTREND_PCT;
  • short-versus-long momentum at or above PR_MIN_MOMENTUM_PCT;
  • current price sufficiently above the recent 12-candle mean, controlled by PR_MIN_PRICE_ABOVE_RECENT_MEAN_PCT;
  • recent range at least as large as PR_BUY_PULLBACK_PCT.

The last condition means the pullback percentage also acts as an additional minimum movement threshold for momentum entries.

Pullback entry

The pullback target is the recent 12-candle mean minus PR_BUY_PULLBACK_PCT. Price must reach or fall below that target.

When PR_REQUIRE_TREND_FOR_PULLBACK is enabled, the short mean must also satisfy the permitted downtrend tolerance. This avoids buying a pullback while the short-term mean is falling too far below the long-term mean.

Breakout and volume gates

With PR_REQUIRE_BREAKOUT enabled, current price must reach the highest high from the previous PR_BREAKOUT_LOOKBACK candles plus PR_BREAKOUT_BUFFER_PCT.

PR_MIN_VOLUME_RATIO compares current candle volume with the average of recent prior volume. A value of 1.15 asks for about 1.15 times that average. Set it to 0 to disable the volume requirement.

Both gates apply to initial momentum and pullback entries.

Order size and exposure

PR_TRADING_LIMIT controls the requested USDT amount for a pair such as USDT-BTC for an initial buy.

PR_MIN_TRADING_LIMIT is a floor: the actual requested limit cannot be lower than this value or the minimum order value. Reducing PR_TRADING_LIMIT below the floor will therefore not reduce the entry.

PR_MAX_EXPOSURE_PCT limits the position value as a percentage of the combined value of available USDT and BTC valued in USDT for a pair such as USDT-BTC. An entry is capped by the remaining room under that exposure limit.

PR_SELL_PORTION_PCT controls how much sellable inventory each exit closes. Values below 100% leave part of the position in place. Because the open-cycle accounting resets after a sell, partial exits need especially careful testing.

Profit management

Profit trail

With PR_PROFIT_TRAIL_ENABLED enabled, the ordinary fixed take-profit exit is replaced by a trailing profit route.

After the position has been held for at least PR_MIN_HOLD_MS and P/L reaches PR_PROFIT_TRAIL_START_PCT, the strategy records the highest subsequent price. It exits after price pulls back by PR_PROFIT_TRAIL_PULLBACK_PCT, provided current P/L is still at or above PR_MIN_SELL_PNL_PCT.

A small pullback value locks gains quickly but can exit during normal noise. A larger value gives the move more room but returns more unrealized profit.

Fixed and hard profit

When the profit trail is disabled, PR_TAKE_PROFIT_PCT defines the ordinary fixed target. It is raised if necessary to cover estimated round-trip fees plus PR_MIN_EDGE_AFTER_FEES_PCT.

PR_HARD_TAKE_PROFIT_PCT remains active with or without the trail. After the minimum hold time, it provides a hard profit exit as long as P/L also satisfies PR_MIN_SELL_PNL_PCT.

PR_MIN_SELL_PNL_PCT is therefore an additional floor for trail, fixed, and hard-profit exits. If it is higher than the nominal target, the nominal target alone cannot sell.

Quick-profit fields

Pocket Rocket intentionally disables its quick-profit route. The following exposed fields currently do not change trading behavior:

  • PR_QUICK_PROFIT_PCT;
  • PR_QUICK_PROFIT_ENABLED;
  • PR_MIN_QUICK_EDGE_AFTER_FEES_PCT.

Use the profit trail, regular take profit, or hard take profit instead.

Protection and cooldowns

Enable PR_USE_PROTECTION to activate both:

  • the normal stop at PR_STOP_LOSS_PCT below average buy price;
  • the emergency stop at PR_EMERGENCY_STOP_PCT below average buy price.

The emergency stop is normally farther away. Both are loss exits and do not depend on PR_ALLOW_LOSS_EXIT.

After a stop-related loss, PR_STOP_COOLDOWN_MS blocks new initial entries. A separate PR_COOLDOWN_MS applies between all actions and is enforced during backtests.

PR_ALLOW_LOSS_EXIT only affects the generic time/stale exit route. Pocket Rocket disables that route, so this setting currently has no practical effect.

Holding-time fields

PR_MIN_HOLD_MS delays profit-trail arming and fixed or hard profit exits. Stops remain able to act during this period.

Pocket Rocket intentionally disables stale and forced time exits. These exposed fields currently do not close a position:

  • PR_STALE_EXIT_LOSS_PCT;
  • PR_STALE_EXIT_ENABLED;
  • PR_FORCE_TIME_EXIT.

PR_MAX_HOLD_MS remains part of position-age display and configuration, but it does not cause a time exit while stale exits are disabled.

Controlled DCA

Enable PR_DCA_ENABLED to allow additional buys while the position is below its average buy price.

A DCA buy requires:

  • price at or below average buy price minus PR_DCA_DRAWDOWN_PCT;
  • fewer completed reloads than PR_MAX_DCA_ORDERS;
  • sufficient balance and room under PR_MAX_EXPOSURE_PCT;
  • spread within the limit;
  • the normal action cooldown to have passed.

The DCA order amount is PR_TRADING_LIMIT × PR_DCA_SCALE, capped by available balance and exposure room.

DCA changes average buy price but increases capital at risk. Setting PR_MAX_DCA_ORDERS to 0 prevents reloads even if DCA is enabled.

Inactive seed settings

Pocket Rocket does not perform an idle seed buy. The following visible settings currently do not alter entries:

  • PR_ALWAYS_SEED;
  • PR_IDLE_BUY_AFTER_MS.

Initial positions must qualify through momentum or pullback behavior.

Good market conditions

Pocket Rocket generally works best when:

  • the pair is liquid and spread stays below the strict limit;
  • recent range is large enough to support the target;
  • momentum entries coincide with a genuine breakout and stronger volume;
  • pullbacks occur inside a stable or improving short-versus-long mean relationship;
  • the market can sustain a move long enough for the profit trail to arm.

Momentum mode suits expanding markets with fresh highs and volume. Pullback mode suits orderly retracements around a stable recent mean. both increases opportunity but mixes two different entry profiles.

Avoid thin markets, false breakouts with weak volume, and persistent downtrends. DCA is particularly risky in a one-way decline because each reload increases exposure while the trend continues against the position.

Creating the strategy

Create a spot strategy and choose Pocket Rocket as the buy and sell method. Start with backtesting.

A practical setup process is:

  1. Confirm that live use is available to the configured private wallet.
  2. Select a liquid pair and realistic five-minute period.
  3. Test momentum and pullback modes separately before combining them.
  4. Keep breakout and volume confirmation enabled for initial momentum tests.
  5. Set exposure and trading-limit floors deliberately.
  6. Compare trailing profit with fixed profit behavior.
  7. Decide whether loss protection is required.
  8. Leave DCA disabled until the base cycle has been tested across declines.

Strategy settings

Core trading controls

SettingDescription
BUY_ENABLEDEnables initial and DCA buy orders.
SELL_ENABLEDEnables profit and protective sell orders.
PERIODCandle period used for range, mean, breakout, and volume calculations.
TRADING_LIMITCompatibility fallback only. It is ignored while the strategy-specific trading limit contains a positive value. Configure the strategy-specific setting for normal use. For USDT-BTC, this value is in USDT.
PR_TRADING_LIMITFor USDT-BTC, the amount of USDT requested for an initial entry.
PR_MIN_TRADING_LIMITMinimum permitted entry amount. For USDT-BTC, this is in USDT.
FUNDS_RESERVEFor USDT-BTC, the amount of USDT the bot must leave unused.
KEEP_QUOTEFor USDT-BTC, the amount of BTC the strategy must not sell.
MIN_VOLUME_TO_BUYGeneral minimum buy value. For USDT-BTC, this value is in USDT.
MIN_VOLUME_TO_SELLGeneral minimum sell value. For USDT-BTC, this value is in USDT.
PR_MIN_ORDER_VALUEStrategy-specific minimum buy value. For USDT-BTC, this value is in USDT.
PR_MIN_SELL_VALUEStrategy-specific minimum sell value. For USDT-BTC, this value is in USDT.
GAINGeneral gain fallback. Pocket Rocket normally uses PR_TAKE_PROFIT_PCT.
PR_MAX_EXPOSURE_PCTMaximum position exposure as a percentage of the pair’s total marked value.
PR_SELL_PORTION_PCTPercentage of sellable inventory closed by each exit.

Entry mode and quality filters

SettingDescription
PR_ENTRY_MODESelects momentum, pullback, or both.
PR_BUY_PULLBACK_PCTDistance below the recent mean for pullback entries; also a minimum recent-range condition for momentum entries.
PR_REQUIRE_TREND_FOR_PULLBACKRequires the short/long mean trend check for pullbacks.
PR_MIN_ENTRY_RANGE_PCTMinimum recent 12-candle range for any initial entry.
PR_MIN_MOMENTUM_PCTMinimum short-mean strength above the long mean for momentum entries.
PR_MIN_PRICE_ABOVE_RECENT_MEAN_PCTMinimum price extension above the recent mean for momentum entries.
PR_REQUIRE_BREAKOUTRequires price above the previous breakout high plus buffer.
PR_BREAKOUT_LOOKBACKPrevious candles used to locate the breakout high.
PR_BREAKOUT_BUFFER_PCTRequired percentage above that high.
PR_MIN_VOLUME_RATIORequired current-volume multiple versus recent prior average; 0 disables it.
PR_MAX_ENTRY_DOWNTREND_PCTMaximum tolerated short-mean weakness below the long mean.
PR_MAX_SPREAD_PCTMaximum permitted bid/ask spread percentage for buys.

Profit exits

SettingDescription
PR_TAKE_PROFIT_PCTFixed target when the profit trail is disabled.
PR_MIN_EDGE_AFTER_FEES_PCTMinimum edge added above estimated round-trip fees for the fixed target.
PR_MIN_SELL_PNL_PCTMinimum current P/L for fixed, trailing, or hard-profit exits.
PR_PROFIT_TRAIL_ENABLEDReplaces ordinary fixed take profit with trailing profit management.
PR_PROFIT_TRAIL_START_PCTP/L required to arm the profit trail after minimum hold time.
PR_PROFIT_TRAIL_PULLBACK_PCTPullback from the best observed price that triggers the trail.
PR_HARD_TAKE_PROFIT_PCTIndependent hard profit threshold available with or without the trail.
PR_QUICK_PROFIT_PCTCurrently inactive for Pocket Rocket.
PR_QUICK_PROFIT_ENABLEDCurrently overridden off.
PR_MIN_QUICK_EDGE_AFTER_FEES_PCTCurrently inactive because quick profit is disabled.

Protection, time, and cooldown

SettingDescription
PR_STOP_LOSS_PCTNormal stop distance below average buy price.
PR_EMERGENCY_STOP_PCTFarther emergency stop distance below average buy price.
PR_USE_PROTECTIONActivates both normal and emergency stops.
PR_ALLOW_LOSS_EXITCurrently has no practical effect because the time/stale exit route is disabled; stops do not depend on it.
PR_MIN_HOLD_MSMinimum age before profit trail, fixed target, or hard target can exit.
PR_MAX_HOLD_MSPosition-age reference; does not force an exit in Pocket Rocket.
PR_COOLDOWN_MSMinimum delay between all actions, including in backtests.
PR_STOP_COOLDOWN_MSEntry lockout after a stop-related or detected non-profitable cycle.
PR_STALE_EXIT_LOSS_PCTCurrently inactive.
PR_STALE_EXIT_ENABLEDCurrently overridden off.
PR_FORCE_TIME_EXITCurrently overridden off.

Seed and DCA

SettingDescription
PR_ALWAYS_SEEDCurrently overridden off; no idle seed entry is made.
PR_IDLE_BUY_AFTER_MSCurrently inactive because idle seeding is disabled.
PR_DCA_ENABLEDEnables controlled reload buys below average buy price.
PR_MAX_DCA_ORDERSMaximum DCA buys in one open cycle; 0 prevents DCA.
PR_DCA_DRAWDOWN_PCTRequired drawdown below average buy price for each DCA opportunity.
PR_DCA_SCALEDCA order size as a multiplier of PR_TRADING_LIMIT.

Backtesting range

SettingDescription
BF_SINCEStart of the selected backtesting period.
BF_UNTILEnd of the selected backtesting period.
DEEP_TESTINGEnables deeper backtesting mode in the editor.

Practical tuning directions

For strict momentum entries, require breakout and above-average volume, then raise momentum or price-above-mean thresholds gradually. Avoid tuning all gates simultaneously.

For pullback entries, focus on the pullback distance and trend tolerance. A larger pullback seeks a better price but may select a weakening market.

When using the profit trail, tune start and pullback together. A start below realistic fee-adjusted profitability or a very small pullback can produce fragile exits.

Set protection before considering DCA. Reloading without a defined loss policy can turn a small cycle into prolonged exposure.

Important limitations

  • Live use is restricted to the configured private Gunthy wallet.
  • Quick-profit, stale/time-exit, and idle-seed settings are currently inactive.
  • PR_ALLOW_LOSS_EXIT does not control protective stops.
  • The minimum hold delays profit exits but not stops.
  • Partial selling can complicate subsequent open-cycle accounting.
  • DCA increases exposure and does not guarantee recovery.
  • Breakout and volume checks use short recent windows and can admit false moves.
  • Backtests cannot perfectly reproduce live spread, slippage, latency, volume quality, or liquidity.

Pocket Rocket works best when its lifecycle is configured as one system: entry quality, exposure, profit route, protection, and optional DCA all affect the same cycle. Treat inactive fields as unavailable rather than trying to tune around them.