• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "TradePolicy"
    Differences between revisions 3 and 6 (spanning 3 versions)
    Revision 3 as of 2012-09-17 21:30:17
    Size: 4264
    Editor: Susannah
    Comment:
    Revision 6 as of 2012-09-17 21:33:47
    Size: 4285
    Editor: Susannah
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 7: Line 7:
    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. 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'''.
    Line 21: Line 21:
     * 2nd the bot will acquire and keep at least 2 days worth of food, 20mil wood/iron and 500mil stone in your city. It will sell excess (anything over /max) of something - if you have excess - to get you back up to these minimum amounts at least. It will also spend all of your gold that is over the 50 million minimum set above to buy a resource if you're below minimum in any. If there is nothing extra to sell and no gold to spare, and if you have set the /allowselltomin switch, then it will sell other resource(s) over /min in order to buy a resource that is under /min. For example, '''tradepolicy /type:wood /min:20m /max:30m /batch:500k /allowselltomin'''.  * 2nd the bot will acquire and keep at least 2 days worth of food, 20mil wood/iron and 500mil stone in your city. It will sell excess (anything over /max) of something - if you have excess - to get you back up to these minimum amounts at least. It will also spend all of your gold that is over the 50 million minimum set above to buy a resource if you're below minimum in any. If there is nothing extra to sell and no gold to spare, and if you have set the '''/allowselltomin''' switch, then it will sell other resource(s) over /min in order to buy a resource that is under /min. For example, ''tradepolicy /type:wood /min:20m /max:30m /batch:500k /allowselltomin''.
    Line 23: Line 23:
     * 3rd the bot will try to acquire and keep a maximum of 30mil wood/iron, 1bil stone, and 10bil food. Any time a resource gets over /max, it will sell the excess off in order to bring the rest of your other resources proportionally up to /max. If every resource is at or above /max, then the bot will automatically sell resources as they get over /max and hoard the gold. You can disable this automatic selling of resources over /max by adding the /donotautosellabovemax switch to the line; for example: '''tradepolicy /type:food /min:2d /max:10b /batch:1m /donotautosellabovemax'''. Note the bot will still sell resources over /max if another resource isn't maxed yet, even with this switch set.  * 3rd the bot will try to acquire and keep a maximum of 30mil wood/iron, 1bil stone, and 10bil food. Any time a resource gets over /max, it will sell the excess off in order to bring the rest of your other resources proportionally up to /max. If every resource is at or above /max, then the bot will automatically sell resources as they get over /max and hoard the gold. You can disable this automatic selling of resources over /max by adding the '''/donotautosellabovemax''' switch to the line; for example: ''tradepolicy /type:food /min:2d /max:10b /batch:1m /donotautosellabovemax''. Note the bot will still sell resources over /max if another resource isn't maxed yet, even with this switch set.
    Line 29: Line 29:
    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. 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 CAPTCHAs you receive.
    Line 31: Line 31:
    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. 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.

    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
    • 1st the bot will keep 50 million gold and never make resource bids that would put you below that.
    • 2nd the bot will acquire and keep at least 2 days worth of food, 20mil wood/iron and 500mil stone in your city. It will sell excess (anything over /max) of something - if you have excess - to get you back up to these minimum amounts at least. It will also spend all of your gold that is over the 50 million minimum set above to buy a resource if you're below minimum in any. If there is nothing extra to sell and no gold to spare, and if you have set the /allowselltomin switch, then it will sell other resource(s) over /min in order to buy a resource that is under /min. For example, tradepolicy /type:wood /min:20m /max:30m /batch:500k /allowselltomin.

    • 3rd the bot will try to acquire and keep a maximum of 30mil wood/iron, 1bil stone, and 10bil food. Any time a resource gets over /max, it will sell the excess off in order to bring the rest of your other resources proportionally up to /max. If every resource is at or above /max, then the bot will automatically sell resources as they get over /max and hoard the gold. You can disable this automatic selling of resources over /max by adding the /donotautosellabovemax switch to the line; for example: tradepolicy /type:food /min:2d /max:10b /batch:1m /donotautosellabovemax. Note the bot will still sell resources over /max if another resource isn't maxed yet, even with this switch set.

    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 CAPTCHAs 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 2014-07-09 18:52:04 by Inanna)