# Handling bags

Every trader will have to deal with the situation that sometimes after a buy order has been successfully placed, the price drops and you're stuck with assets that lost value and cannot be sold for profit soon. Such assets block further trade activity for that pair, and are commonly called bags.

There are several things you can do to prevent this from happening, or to deal with bags.

## Wait it out

Not the most appealing option, but a common way to deal with bags is to just wait it out for the market to reach a profitable price level again. This of course won't always work, but it often does. Try to always keep enough base currency balance, to be able to keep on trading while you wait for one or more bags to recover.

Keep in mind that it is not possible to retrieve old bought prices from the exchange API. At some point, usually after 30 days, you have to provide `BOUGHT_PRICE` manually as an override for your pair. On Poloniex Gunbot is able to retrieve older bought prices than 30 days.

## Reversal trading

With reversal trading Gunbot automatically accumulates quote currency while prices drop. It does this by first selling your assets at a lower price, then buying back more units when prices dropped further. This enables you to sell the bag profitably at a lower price than you initially bought it for.

{% content-ref url="/pages/-LdImDer8NYjL6noX8I1" %}
[Reversal trading (RT)](/wiki/trading-strategy-options/reversal-trading-rt.md)
{% endcontent-ref %}

## Stop limit

A common way to prevent accumulating bags is to cut your losses fast. With Gunbot you can set a `STOP_LIMIT` to sell a pair automatically after it loses x% of it's value.

## Averaging down

By buying more assets at a lower price than the initial price, you get a lower average buy price - this allows you to sell at a lower price than the price you initially bought for and get rid of your bags with profit. You can do this manually, or automatically by using `DOUBLE_UP`.

{% content-ref url="/pages/-LdImDeq-khvOlP-iu-u" %}
[Dollar Cost Avg (DCA)](/wiki/trading-strategy-options/dollar-cost-avg-dca.md)
{% endcontent-ref %}

When averaging down, it is recommended to invest a lot more than your initial investment. The more you invest, the lower the average price to sell will be and the sooner you can get rid of your bags.

Because of this, it is not recommended to enable `DOUBLE_UP` for many pairs at the same time. You can control how much funds is used to average down by configuring `DOUBLE_UP_CAP`.

This is how a typical trading history looks when `DOUBLE_UP` has been used:

![](https://user-images.githubusercontent.com/2372008/32096078-95baa8ee-bb05-11e7-8f07-266a7a3952b1.jpg)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gunthy.gitbook.io/wiki/various/handling-bags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
