# Trailing Stoploss

\
In Metabot, the trailing stoploss is an advanced feature that dynamically adjusts the sell-lo (stoploss) as the token's profit/loss (P/L) increases, aiming to secure gains from significant price increases that don't quite reach the sell-hi (take profit) threshold. Here's how it works:

1. **Trailing Stoploss Mechanism**:
   * If a token's P/L peaks (e.g., +190%) but doesn't hit the sell-hi (e.g., +200%) and then starts to decline, the trailing stoploss adjusts the sell-lo accordingly.
   * For example, if the sell-lo is initially set at -40%, and the P/L reaches +190%, the trailing stoploss might adjust the sell-lo to a higher percentage like +74%. This adjustment gives the token room to fluctuate while still protecting profits.
2. **Continuous Adjustment**:
   * The trailing stoploss will keep adjusting the sell-lo based on the highest P/L recorded. It only increases the sell-lo to lock in profits and doesn't decrease it.
3. **Does Not Affect Sell-Hi**:
   * This feature only modifies the sell-lo. Your sell-hi (take profit) remains unchanged.
4. **Activating After a Trade**:
   * If trailing stoploss is activated after a trade has been made, it starts from the current sell-lo.
5. **Manual Adjustments**:
   * You can manually adjust the sell-lo, and the bot will recalibrate based on the new value.
   * Setting a new stoploss value resets the maximum P/L record, and the bot considers the P/L at the time of the new setting as the new maximum.

The trailing stoploss feature in Metabot provides a strategic way to protect gains from market fluctuations, especially when a token's price increase is significant but not enough to trigger the sell-hi.
