Documentation index

Solana Momentum Sniper settings

Every setting the Solana Momentum Sniper's Expert settings can change, with the same names and help the Strategy page shows. The path is the setting's name in the bot's config file, which is what Raw config and harkctl config show. "Starts at" is a new bot's value (the Balanced starter).

You rarely need these. The Simple controls set most of them for you: Style sets which tokens are eligible, the buy signal, the rug checks and the protect-gains band; Speed sets the priority fees and slippage; take profit and stop loss set the sell rules. Settings marked Advanced only appear only with the Advanced switch on.

Ranges

Protect gains on the way down and Take profit on the way up are lists of ranges. Each range has a start and an end, a step, and the share sold at each step:

  • a protect-gains range is measured as the drop from the trade's peak: within the range it sells a share for each step down, and everything once the drop passes the end;
  • a take-profit range is measured as profit: within the range it sells a share for each step up. A range whose start equals its end is a single sell at that profit, and it still sells if the price jumps past it.

Buying

Buying settings
SettingWhat it doesValuesStarts at
Buy size
global.purchase_amount_sol
How much SOL to spend on each token.number
0.001 to 100 SOL
0.03 SOL
Budget
global.budget_sol
Never have more than this much SOL in trades at once. Leave it empty for no budget. Optional.number
0.01 to 10000 SOL
off
Daily loss limit
global.daily_loss_limit_sol
Stop buying for the rest of the day once you've lost this much SOL today. Selling carries on, and it resets at midnight. Leave it empty for no limit. Optional.number
0.01 to 10000 SOL
off
Most buys an hour
global.max_trades_per_hour
Never make more than this many automatic buys in any hour. 0 means no limit. Your own buys don't count.whole number
0 to 1000
20
Wait before buying the same token again
tracking.buy_cooldown_secs
0 lets it buy the same token again straight away.whole number
0 to 86400 s
300 s

Watching

Watching settings
SettingWhat it doesValuesStarts at
Measuring windows
tracking.windows_secs
Advanced only
The rolling windows momentum is measured over, in seconds.list of whole numbers
s
5, 10, 30
Decide on the last
tracking.gate_window_secs
Advanced only
Which window the buy decision and rug checks use; it should be one of the measuring windows.whole number
1 to 600 s
10 s
Recalculate every
tracking.metrics_tick_ms
Advanced only
How often everything is recalculated.whole number
50 to 10000 ms
250 ms
Tokens watched at once
tracking.max_concurrent_tracked
Advanced only
When more are being watched, the oldest is dropped.whole number
10 to 10000
500
Stop watching after
tracking.max_track_secs
Advanced only
Forget a token that has not triggered after this long.whole number
10 to 86400 s
600 s

Eligible tokens

Eligible tokens settings
SettingWhat it doesValuesStarts at
Market cap at least
gate.bounds.mcap_usd_min
Skip tokens smaller than this.number
0 to 1000000000 USD
$5000
Market cap at most
gate.bounds.mcap_usd_max
Skip tokens that have already grown past this.number
0 to 1000000000 USD
$60,000
Buying share at least
gate.bounds.buy_ratio_min
Advanced only
The share of trading that is buying, lower fence.number
0 to 100 %
60 %
Buying share at most
gate.bounds.buy_ratio_max
Advanced only
Upper fence; leave at 100.number
0 to 100 %
100 %
Volume to market cap at least
gate.bounds.vol_mc_min
Advanced only
Trading volume compared with market cap, lower fence.number
0 to 1000000 %
20 %
Volume to market cap at most
gate.bounds.vol_mc_max
Advanced only
Upper fence; leave wide.number
0 to 1000000 %
100,000 %
Dev buy at least
gate.bounds.dev_buy_min_sol
Only buy when the dev buy at launch was at least this; 0 turns it off.number
0 to 1000000 SOL
0 SOL
Dev buy at most
gate.bounds.dev_buy_max_sol
Only buy when the dev buy at launch was at most this.number
0 to 1000000 SOL
1,000,000 SOL
Mayhem coins
global.mayhem_coins
Buy pump.fun Mayhem Mode coins: 2 B supply, half of it traded by pump.fun's AI agent, so prices swing hard.on / offOn
Launches made by other programs
global.cpi_launches
Advanced only
Watch and buy pump.fun tokens created inside another program rather than directly. These are most often bundles, so they are skipped unless you turn this on.on / offOff

Buy signal

Buy signal settings
SettingWhat it doesValuesStarts at
Buy when buying is at least
gate.trigger.buy_ratio_min_pct
The share of trading that is buying; higher means fewer, cleaner buys.number
0 to 100 %
80 %
and volume is at least
gate.trigger.vol_mc_min_pct
Volume as a share of market cap; higher means only very active tokens.number
0 to 1000000 %
60 %

Rug protection

Rug protection settings
SettingWhat it doesValuesStarts at
Creator sold
rug.creator_dump_pct
Sell everything if the creator sells this share of the supply; 0 turns the check off.number
0 to 100 %
50 %
Pool lost
rug.reserve_drop_pct
Sell everything if the pool's SOL falls this far from its peak; 0 turns it off.number
0 to 100 %
30 %
Price fell
rug.price_crash_pct
Sell everything if the price falls this far from its peak; 0 turns it off.number
0 to 100 %
50 %
Buying fell below
rug.sell_dominance_floor_pct
Sell everything if sellers take over and buying drops under this share.number
0 to 100 %
20 %
Only with volume of at least
rug.min_volume_sol
Advanced only
The sellers-took-over check needs at least this much trading first.number
0 to 1000 SOL
1 SOL
Block the creator after a rug
rug.blacklist_on_rug
Never buy from that creator again.on / offOn

Selling

Selling settings
SettingWhat it doesValuesStarts at
Stop-loss
sell_strategy.stop_loss_pct
Sell everything if the trade is down this much.number
-99 to -0.5 %
-30 %
Protect gains on the way down
sell_strategy.sl_ranges
Bands of drop from the peak: sell a share for each step down, everything at the bottom of the band.list of ranges1 range
Take profit on the way up
sell_strategy.tp_ranges
Bands of profit: sell a share for each step up (From = To is one sell at that profit). A step the price jumps past still sells.list of ranges1 range
Check for unsold tokens every
exits.stuck_scan_secs
Advanced only
How often the bot looks in its wallet for tokens it bought that nothing is selling, such as after a sell that kept failing, and sells them. Tokens you bought yourself are never touched. 0 turns it off.whole number
0 to 86400 s
not set
Sell again after a failed sell
exits.stuck_after_secs
Advanced only
When every try to sell a token failed, the bot sells it again once this long has passed with no new try.whole number
10 to 86400 s
not set

Execution

Execution settings
SettingWhat it doesValuesStarts at
Slippage
global.slippage_basis_points
Advanced only
How far the price may move between deciding and trading; 500 bps is 5 %.whole number
1 to 10000 bps
500 bps
Buy priority fee
global.buy_compute_fee
Advanced only
What you pay validators per compute unit to process your buys first.whole number
0 to 100000000 µlamports/CU
3,333,334 µlamports/CU
Sell priority fee
global.sell_compute_fee
Advanced only
The same, for sells.whole number
0 to 100000000 µlamports/CU
1,000,000 µlamports/CU
Send every trade through the AllenHark relay (adds a small tip per trade)
relay.tip_all
On: every buy, sell and clean-up goes through the relay, for a 0.001 SOL tip each (counted in your fees). Off: only buys and urgent exits go through the relay; the rest are sent without a tip.on / offOn
Turn off the AllenHark relay
relay.relay_opt_out
Advanced only
Your choice: on means the bot stops sending through the AllenHark relay and uses only the fast senders you added. Leave it off unless you know you want that.on / offOff
Fast senders
senders
Advanced only
Your own accounts with other fast senders (Nozomi, 0slot, Jito, Helius Sender, an RPC). The bot sends each trade through all of them and the relay; with two or more on it pays only one tip per trade. API keys stay on your server.list of [[senders]] entriesnone

Suggestions

Suggestions settings
SettingWhat it doesValuesStarts at
Try changes in practice
advisor.enabled
Advanced only
Lets the AI assistant try a bigger change in a practice run for 24 h before you use it. No API key of your own is needed.on / offOn
Suggested buy size at most
advisor.limits.max_buy_sol
Advanced only
A suggestion can never set the buy size above this.number
0.001 to 100 SOL
0.5 SOL
Suggested buy size at least
advisor.limits.min_buy_sol
Advanced only
A suggestion can never set the buy size below this.number
0.001 to 100 SOL
0.001 SOL
Stop-loss no lower than
advisor.limits.stop_loss_floor_pct
Advanced only
A suggested stop-loss must sit between this and the next value.number
-99 to 0 %
-95 %
Stop-loss no higher than
advisor.limits.stop_loss_ceil_pct
Advanced only
The tightest stop-loss a suggestion may set.number
-99 to 0 %
-2 %
Most ranges
advisor.limits.max_ranges
Advanced only
The most stop-loss or take-profit ranges a suggestion may have.whole number
1 to 32
8
Longest wait between buys
advisor.limits.max_cooldown_secs
Advanced only
The longest re-buy wait a suggestion may set.whole number
0 to 86400 s
3600 s

Set for you

These are part of the config but are set by AllenHark or elsewhere in the app, so they are read-only in Expert settings.

SettingWhy you can't change it here
Live trading
global.live
Switched with Go live.
Wallet file
global.payer_keypair_path
Follows your active wallet.
Relay endpoint
node.relay
Managed by AllenHark.
Relay QUIC endpoints
node.relay_quic
Managed by AllenHark.
Relay API key
node.relay_api_key
Managed by AllenHark.
Relay QUIC fan-out
node.relay_quic_fanout
Managed by AllenHark.
Relay QUIC certificate pins
node.relay_quic_pins
Managed by AllenHark.
Skip relay certificate check (development)
node.relay_quic_insecure_skip_verify
Managed by AllenHark.
ShredStream endpoint
node.shredstream_uri
Managed by AllenHark.
Backup ShredStream endpoint
node.shredstream_backup_uri
Managed by AllenHark.
gRPC endpoint
node.grpc_uri
Managed by AllenHark.
gRPC token
node.grpc_x_token
Managed by AllenHark.
RPC endpoint
node.rpc_uri
Managed by AllenHark.
Listen for UDP shreds
node.use_udp_shreds
Managed by AllenHark.
UDP shreds port
node.udp_shreds_port
Managed by AllenHark.
Where launches are seen
node.detection_source
Managed by AllenHark.
Relay tip wallet
node.tip_wallet
Managed by AllenHark.
Keep-alive URL
node.keep_alive_url
Managed by AllenHark.
Relay tip
node.tip_lamports
Managed by AllenHark: set to what Relay needs.
SOL price refresh
pricing.sol_usd_poll_secs
Managed by AllenHark.
Database
database.url
Managed by AllenHark.
Bot port
server.ws_port
Managed by AllenHark.
Bot address
server.bind
Managed by AllenHark.
Model
advisor.model
Managed by AllenHark.
Longest answer
advisor.max_tokens
Managed by AllenHark.
API version
advisor.anthropic_version
Managed by AllenHark.