Bot commands · Smart sizing and trade rules
/tradeRules and /setRule: a stop, gap or on/off per kind of trade
/tradeRules shows, and /setRule sets, your own stop-loss, same-coin gap or on/off for one kind of trade, such as /setRule shorts stop 30; anything a rule does not set uses your normal settings, on Tier 2 and 3.
- Command
/tradeRules- Also on this page
/setRule- 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, or no trades at all of a weak kind. 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 rules:
Longs strength 2 — stop 35%, gap 3%
…
Shorts strength 2 — stop 30%, gap 3%
…
More:
/setRule short Iron gap 3
/setRule shorts strength 3 off
/setRule Iron on
/setRule longs stop none
Clear one, or all:
/setRule shorts reset
/setRule reset
Trade rules cleared: every trade uses your normal stop and gap again.
Values
| Setting | Value |
|---|---|
| Fields | stop (0 to 90%, or none), gap (0 to 100%), on, off |
| Kinds | longs or shorts, a strength, a side and a strength, a signal name, a side and a name |
| 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 past a rule's stop.
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.
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-11.
Related commands
- /smartSizing/smartSizing shows, and /setSize changes, how much of your position size each kind of trade uses, such as /setSize longs 50 for half-size longs; 0% skips that kind of trade, and Tier 2 and 3 can use it.
- /setStopLoss/setStopLoss sets how far the price may move against an entry before the bot closes it, as a percent of price from 0 to 90, 35 by default; 0 means no stop, and the stop must be closer than your liquidation price.
- /setDifference/setDifference sets the same-coin gap: how far the price must move past your last entry on a coin before the bot adds another entry there, 3% by default; 0 takes every repeat signal.
- /setPositionSide/setPositionSide chooses which signals HafizeBot trades for you: LONGONLY, SHORTONLY or BOTH, which is the default.
More help
- How does the stop-loss work, and why didn't mine trigger?
- What does the same-coin gap do?
- Smart sizing and trade rules commands (Tier 2 and 3)
- All bot commands
Not a member yet? Try VIP free for 3 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.