> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bloodydash.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Strategies

<Frame>
  <img src="https://mintcdn.com/bloodsolutions/MGgZdm_5Dz6L2iq2/images/image-13.png?fit=max&auto=format&n=MGgZdm_5Dz6L2iq2&q=85&s=01a0ef423f17494d37eca302a1c3ce5f" alt="Image" width="2342" height="198" data-path="images/image-13.png" />
</Frame>

To use created task, make sure to move `solswap_example` from **EXAMPLES TO TASKS**

<Note>
  **How strategies work?**

  All calculations are based on BUY MARKET CAP and DON'T DEPEND on position value.

  Example: `If your BUY MC IS 100K and TP 100% bot would sell on 200K MCAP`
</Note>

**General info:**

To use strategies in task, you need to setup strategy file and give it name (example: `copytrade-test`)

To use MULTIPLE STRATEGIES add new lines

<Tabs>
  <Tab title="TP">
    **TP PERC**<br />Take profit percentage to execute sell.

    **TP PERC TO SELL**<br />Percentage of your position to sell on trigger.

    <Note>
      For **SOL** you can also specify **EXACT MARKETCAP** instead of percentage.

      Format example:<br />TP PERC - `10000$` OR `10k$` OR `10m$` for exact marketcap trigger.
    </Note>

    <Note>
      For **Polymarket** you can also specify **EXACT SHARE VALUE** instead of percentage.

      Format example:<br />TP PERC - `0.9$` means sell transaction will be executed when onchain price hits 0.9\$.
    </Note>
  </Tab>

  <Tab title="SL">
    **SL PERC**<br />Stop Loss percentage to execute sell.

    **SL PERC TO SELL**<br />Percentage of your position to sell on trigger.

    <Note>
      For **SOL** you can also specify **EXACT MARKETCAP** instead of percentage.

      Format example:<br />SL PERC - `5000$` OR `5k$` OR `5m$` for exact marketcap trigger.
    </Note>

    <Note>
      For **Polymarket** you can also specify **EXACT SHARE VALUE** instead of percentage.

      Example:<br />SL PERC - `0.1$` means sell transaction will be executed when onchain price hits 0.1\$.
    </Note>
  </Tab>

  <Tab title="Timeout">
    **TIMEOUT MS**<br />X milliseconds to proceed sell after

    **TIMEOUT PERC TO SELL**<br />Percentage of your current position to sell
  </Tab>

  <Tab title="Dev Sell">
    **DEV SELL PERC**<br />Percentage of dev's position sold that will trigger sell

    **DEV SELL PERC TO SELL**<br />Percentage of your current position to sell
  </Tab>

  <Tab title="Inactivity">
    **INACTIVITY TIMEOUT MS**<br />Time in milliseconds to check activity on specific token.

    **INACTIVITY PERC**<br />Movement percentage to determine as inactivity range (both positive and negative price change).

    **INACTIVITY PERC TO SELL**<br />Percentage of your current position to sell on strategy trigger.

    <Note>
      In order to properly detect inactivity you need **MULTIPLE** ticks of `position update interval` during `inactivity timeout`. More updates you have - better detection!
    </Note>
  </Tab>

  <Tab title="Trailing SL">
    ### Trailing stop loss explanation

    This strategy uses ATH which was detected while your position is monitored. If your current position is `X (trailing stop loss percentage)` down from ATH - bot will sell `Y (trailing stop loss percentage to sell)` part of your position. Mostly used for mooners in case they are going to 0.

    ***

    **TRAILING SL PERC**<br />Trailing stop loss percentage

    **TRAILING SL PERC TO SELL**<br />Percentage of your current position to sell
  </Tab>
</Tabs>
