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

More help

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.