Usage:

tradepolicy /type:[restype] /min:[amount] /max:[amount] /batch:[amount] [/allowselltomin] [/donotautosellabovemax]

Example:

tradepolicy /type:wood /min:20m /max:30m /batch:500k

When trading is enabled, the bot will buy and sell resources to achieve the amounts specified in tradepolicy for each resource, or the default amounts if it is not.

In the example above, the bot will try to maintain at least 20mil lumber but no more than 30mil lumber, and will perform trading in batches of 500k at a time. The abbreviation "d" may be used to signify days, rather than quantities, for gold and food minimums and food maximums. For example, /min:10d would signify 10 days' worth of food upkeep based on troops, or 10 days' worth of gold salary based on heroes. Gold cannot have a /max setting.

Trading works in stages. An explanation of these stages will use the following tradepolicy goals as examples:

tradepolicy /type:gold /min:50m
tradepolicy /type:food /min:2d /max:10b /batch:1m
tradepolicy /type:wood /min:20m /max:30m /batch:500k
tradepolicy /type:stone /min:500m /max:1b /batch:1m
tradepolicy /type:iron /min:20m /max:30m /batch:500k

The batch tells the bot how much to wait for to sell or buy at a time, so that it's not constantly spamming with small quantity trades; in this example the bot has to wait until it can buy or sell at least 500k or 1mil at a time, depending on the resource.

If you go into emergency trade and need gold/food for comforting or refuge/revolt protection, it will sell as low as necessary and ignore the minimum batch. Do not set the batch too high on small or new accounts and expect the bot to be able to trade those large amounts.

If you are on a CAPTCHA server, you should set as large of a batch as your resource flow comfortably allows, to reduce the number of trades you do, and therefore the number of CAPCHAs you receive.

All /min settings are ignored in an emergency. Emergency is defined as gold under 24 hours' worth of salary, and 30 minutes' worth of troop upkeep in food.


CategoryAllGoals CategoryResourceGoals

TradePolicy (last edited 2012-09-17 21:30:17 by Susannah)