Bot commands · Smart sizing and trade rules

/tradeRules and /setRule: a stop, gap, on/off, cap or leverage per kind of trade

/tradeRules shows, and /setRule sets, your own stop-loss, same-coin gap, on/off, cap or leverage for one kind of trade, one coin or a volume or coin-age band, such as /setRule longs max 12; the rest uses your normal settings, on Tier 2 and 3.

Command
/tradeRules
Also on this page
/setRule, /setMaxLongs, /setMaxShorts, /myMaxLongs, /myMaxShorts
Who can use it
Tier 2 and Tier 3, with auto-trading switched on
Where
In your chat with @hafizebot on Telegram

Trade rules let one kind of trade behave differently: a tighter stop on shorts, a wider gap for one signal name, no trades at all of a weak kind, at most a few open positions of one kind, or a lower leverage for one kind. A rule can also be for one coin, for coins in a 24h volume band, or for coins in a coin-age band. The most specific rule wins.

Examples

/setRule shorts stop 30

/tradeRules then shows your rules and what each side and strength trades with:

Your rules:
Shorts: stop 30%

What each side and strength trades with now, before element, group, coin, volume and age rules:
Longs strength 2 — stop 30%, gap 3%, leverage 2x
…
Shorts strength 2 — stop 30%, gap 3%, leverage 2x
…

More:

/setRule short Iron gap 3
/setRule shorts strength 3 off
/setRule Iron on
/setRule longs stop none

Caps and leverage:

/setRule longs max 12
/setRule Meme max 3
/setRule shorts leverage 2
/setRule longs max off

For a cap on one side there are shortcuts: /setMaxLongs 5 is /setRule longs max 5, /setMaxShorts 3 is /setRule shorts max 3, off (or 0) removes the cap, and /myMaxLongs and /myMaxShorts show it.

/setMaxLongs 5
/setMaxShorts off
/myMaxLongs
Most long positions at once: 5 (the trade rule "longs max 5", /tradeRules)

A cap (max) counts the open positions of that kind: with /setRule Meme max 3, a fourth Meme coin is skipped while three are open. A leverage applies to new positions of that kind instead of /setLeverage. A Binance group such as Meme or Layer-2 takes only max and leverage; to stop trading a group, use /banGroup.

One coin, a volume band or a coin-age band:

/setRule coin BTC leverage 2
/setRule volume under 10M USDT max 3
/setRule shorts age under 30 off

A coin is named after the word coin, as /banCoin takes it, so the coin MEME and the group Meme stay apart. A rule for one coin takes every field but max: one coin is only ever one position. The bands are fixed. Volume is the coin's 24h volume on Binance Futures in USDT: under 10M USDT, 10-50M USDT, 50-200M USDT or over 200M USDT. Age is the number of days since Binance listed the coin: under 30, 30-90, 90-365 or over 365 days. A band cap counts open coins by the band they are in now.

Clear one, or all:

/setRule shorts reset
/setRule reset
Trade rules cleared: every trade uses your normal settings again.

Values

Setting Value
Fields stop (0 to 90%, or none), gap (0 to 100%), on, off, max (1 to your plan's position limit, or off), leverage (1 to 20, or off)
Kinds longs or shorts, a strength, a side and a strength, a signal name, a side and a name; for max and leverage also a Binance group, or a side and a group
Coins and bands one coin (coin BTC, every field but max); a volume band (volume under 10M USDT, volume 10-50M USDT, volume 50-200M USDT, volume over 200M USDT); an age band (age under 30, age 30-90, age 90-365, age over 365, in days); each also under a side (shorts coin BTC)
Which rule wins for stop, gap and on/off: coin, signal name, strength, age band, volume band, side; for leverage: coin, signal name, strength, group, age band, volume band, side; a rule under a side beats the same rule without one
Most rules 64
Starts at no rules (your normal settings)

Questions

Does a rule's stop have to fit my leverage?

Yes, the same as /setStopLoss: on isolated margin the bot refuses a rule stop that liquidation would always reach first, and it will not raise your leverage, or set a rule's leverage, past a stop those trades use.

Does a cap close positions?

No. A cap only skips a new coin of that kind while that many are open. Positions already open stay as they are, and adding to a coin you already hold is never capped.

Does a rule's leverage change my open positions?

No. It applies to new positions of that kind. A coin you already hold keeps its leverage, also when you add to it.

My stop type is OFF. Does a rule's stop still work?

Yes. A stop set in a trade rule is placed even when /setStopType is OFF.

What if the coin's volume cannot be read?

Then the coin is in no volume band: volume-band rules do not apply to it, and your broader rules and normal settings do. A coin whose listing date is not known is in no age band in the same way. To skip such coins altogether, set a minimum with /setMinVolume or /setMinCoinAge.

How do I see why a trade used a rule?

/lastsignals notes when a rule skipped a kind of trade, and /summary shows your rules on the "Trade rules" line.

Updated 2026-10-15.

Related commands

More help

Not a member yet? Try VIP free for 7 days, auto-trading included.

A question this page does not answer? Send /support to @hafizebot, or write to [email protected]. Futures trading carries a high risk of loss; nothing here is investment advice.