# Filtering

Almost every page on TradeStream has filters. Currently we allow for the following types of filtering:

<figure><img src="https://3449759962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0SAQaFngaHZRCqZHrJkZ%2Fuploads%2FoD6LjqOeRMtIdH5fwX6S%2Fimage.png?alt=media&#x26;token=3323756a-1042-4626-8eb2-98a924b69985" alt=""><figcaption><p>The filter bar</p></figcaption></figure>

* **Status Filtering (Win or Loss)**
* **Filter by Symbol/Ticker**
* **Filter by Date & Time**
  * You can choose if the filtering should be based on open time or close time
    * Range (all trades within a certain boundary)
    * After (all trades after a certain date and time)
    * Before (all trades before a certain date and time
* **Filter by side (buy=long, short=sell)**
* **Filter by exchange**
* **Filter by holdtime**

***

## Using Filters

<figure><img src="https://3449759962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0SAQaFngaHZRCqZHrJkZ%2Fuploads%2FaCvoLLGhDlxmhCLlMmFp%2FFiltering%20demo.gif?alt=media&#x26;token=9de817d6-26a8-4465-ac1d-c1ba408aa059" alt=""><figcaption><p>Filters go brrrrr</p></figcaption></figure>

You can add however many filters you want. Currently there are two filter types:

* Inclusive (Only show trades **WITH** this attribute i.e: Trades for BTCUSDT)
* Exclusive (Only show trades **WITHOUT** this attribute i.e: Trades not for BTCUSDT)

<figure><img src="https://3449759962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0SAQaFngaHZRCqZHrJkZ%2Fuploads%2FendwDIZXb3yD6tDTYJVo%2FExclude%20filter%20demo.gif?alt=media&#x26;token=2b1ad92a-421c-40be-9663-139227738e94" alt=""><figcaption><p>In this example we exclude all trades that are Buys/Longs, so only shorts will be shown</p></figcaption></figure>

{% hint style="info" %}
If you filter by for example tags we use "OR" logic. This means if you search for trades that use the tag "bull" and "big win" you will get trades that have either one of these two tags or both. In the future we will add "AND" logic so that you can filter for trades that have certain combinations of tags or other attributes.
{% endhint %}

***

### Date & Time Filtering

<figure><img src="https://3449759962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0SAQaFngaHZRCqZHrJkZ%2Fuploads%2FOeq6qhi1BuKLUlblwIEi%2Fimage.png?alt=media&#x26;token=ef6e00fd-9f8a-4511-90d1-41273621f904" alt=""><figcaption><p>Date &#x26; Time Filter</p></figcaption></figure>

Like previously mentioned, for date & time filtering you can either decide if the filter should be based on the open or close time of the trade.

Then from there you can choose three modes:

* Before (all trades before a certain date and time
* After (all trades after a certain date and time)
* Range (all trades within a certain boundary)

{% hint style="warning" %}
You need to press ![](https://3449759962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0SAQaFngaHZRCqZHrJkZ%2Fuploads%2FDGmmyISf4DU1xw1DN0hx%2Fimage.png?alt=media\&token=4de00c3d-db7b-4fb7-94e0-d26f6304f48e) after selecting your filter in order to have it set
{% endhint %}

You can either choose filter by pressing one of the presets in the left-side menu or manually select the dates you want to filter by

<figure><img src="https://3449759962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0SAQaFngaHZRCqZHrJkZ%2Fuploads%2FePNYGii25IexGQwmDH0y%2Fdate%20time%20filter%20demo.gif?alt=media&#x26;token=6888bfd1-a309-47c5-938b-926e46cdd422" alt=""><figcaption></figcaption></figure>

<br>
