# Trailing Stop (SLX)

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FfojTYyduSSSM8jesnXv1%2Fimage.png?alt=media&#x26;token=4d402b3c-24b8-4849-b4ff-95dadd9f3762" alt="" width="324"><figcaption></figcaption></figure>

Finandy service offers 2 trailing types:

* Trailing Stop Loss at trigger price (traditional trailing)
* Trailing Stop Loss at Take Profit

{% hint style="warning" %}
Changing the stop-loss price manually while the SLX module is active will disable the SLX module.
{% endhint %}

## Currency price-based trailing

{% embed url="<https://youtu.be/S3hulE0TjPU>" %}

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/d7cac5a0-fd08-4867-909d-5b354b1b926b/image.png" alt=""><figcaption></figcaption></figure>

Trailing stop loss principles:

1. Currency pair price movement
2. Trailing stop repositioning
3. Trailing Trigger Points
4. Dynamic stop points
5. Stop loss activation

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FOYXT7zWsdch4gnYIY3FS%2Fimage.png?alt=media&#x26;token=3b3df382-84b4-4adb-a7c6-b6dfae89c0f2" alt="" width="324"><figcaption></figcaption></figure>

### 1. Place at Breakeven, %

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/734d1047-df2a-4637-9931-f845fe3814c8/image.png" alt="" width="375"><figcaption></figcaption></figure>

Stop Loss is automatically set to breakeven price when specified profit percentage is reached.

{% hint style="warning" %}
Disabled if field is blank.
{% endhint %}

### 2. Breakeven offset, %

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/720ae4d4-c146-449f-899b-e0344f585f92/image.png" alt="" width="375"><figcaption></figcaption></figure>

The Stop Loss order is placed at a certain offset percentage from the breakeven price upon trigger activation in step 1. This feature can increase potential profit when the position is closed by Stop Loss.

{% hint style="warning" %}
If this field is blank, SLX will place an SL order at break-even price when the trigger in step 1 is activated.
{% endhint %}

### 3. Trailing activation (tracking)

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/311e21c1-0e7a-492e-9c0b-53e5d02076e6/image.png" alt="" width="375"><figcaption></figcaption></figure>

Specify profit percentage for Trailing Stop activation. Disables SL module if active.

{% hint style="warning" %}
Disabled if field is blank.
{% endhint %}

{% hint style="info" %}
For example, if **0.5** is specified for a long position with a price of **100**, Trailing will be activated when the price is above **100.5**.
{% endhint %}

### 4. Price offset trigger (callback rate)

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/e238eb39-bc41-48d9-a984-e7d1622699f3/image.png" alt="" width="375"><figcaption></figcaption></figure>

Percentage gap between SL price and current currency pair price.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/29f5f8d4-45f6-486c-b206-9af4b6b946d1/image.png" alt=""><figcaption></figcaption></figure>

1. Currency pair price movement
2. Offset
3. Trailing stop activation
4. Dynamic stop points
5. Price movement controlled by SLX module for Stop orders
6. Position closing

Stop Loss follows the trend for <mark style="color:green;">**Long**</mark> positions when moving up and remains fixed when moving down.

For <mark style="color:red;">**Short**</mark> positions, the Stop Loss follows the trend when moving down and remains fixed when moving up.

### 5. Minimum repositioning step

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2F3W3xDLpO9zVtZXmakBMF%2Fimage.png?alt=media&#x26;token=847121fa-424d-4e42-8a9f-719f783a4c59" alt="" width="323"><figcaption></figcaption></figure>

Minimum percentage difference between current and new price required for Stop Loss movement when trigger is activated.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/296ac0f6-1c18-46a9-a8ba-0212ac2e387e/image.png" alt=""><figcaption></figcaption></figure>

1. Currency pair price movement
2. Previous Stop Loss price
3. New Stop Loss price
4. Stop Loss relocation event
5. Minimum relocation step - distance equal to or greater than the minimum StopLoss step

{% hint style="info" %}
SL variations occur discreetly, no more than **0.02%** of current price. For example, if a variation occurred at a price of **100**, the next variation will occur when the price reaches **100.02**.
{% endhint %}

### 6.  Min. position volume&#x20;

If position volume is below the specified value, Trailing will not be activated and SL will not be adjusted to Breakeven.

#### Example

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FZrt2aFfWek3vgeyk61fJ%2Fimage.png?alt=media&#x26;token=5b89401f-d71a-4c94-a8b5-45742f9ab4b3" alt="" width="323"><figcaption></figcaption></figure>

In this example, **SLX** module will set the stop loss to breakeven or start trailing only if the position size is over <mark style="color:blue;">**100**</mark>.

1. Market buy for **50 USDT** volume.

| **PnL**                                | **Volume of the position**                  | **Trailing** |
| -------------------------------------- | ------------------------------------------- | ------------ |
| <mark style="color:red;">**0%**</mark> | <mark style="color:red;">**50 USDT**</mark> | -            |

2\. Currency pair price increased, and trailing failed to start as position size was lower than the specified value.

| **PnL**                                  | **Volume of the position**                  | **Trailing** |
| ---------------------------------------- | ------------------------------------------- | ------------ |
| <mark style="color:green;">**1%**</mark> | <mark style="color:red;">**50 USDT**</mark> | -            |

3\. Position averaged out, but trailing stop still inactive as profit has not reached the set trigger.

| **PnL**                                  | **Volume of the position**                     | **Trailing** |
| ---------------------------------------- | ---------------------------------------------- | ------------ |
| <mark style="color:red;">**0.4%**</mark> | <mark style="color:green;">**200 USDT**</mark> | -            |

4. Currency pair price has increased and trailing has been activated.

| **PnL**                                    | **Volume of the position**                     | **Trailing** |
| ------------------------------------------ | ---------------------------------------------- | ------------ |
| <mark style="color:green;">**0.7%**</mark> | <mark style="color:green;">**200 USDT**</mark> | ✅            |

### 7. Price Trigger

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2F1iZIzEdkTTIlqvkZdszP%2Fimage.png?alt=media&#x26;token=eb0037b5-5677-4a3c-aff4-d240e489af93" alt="" width="323"><figcaption></figcaption></figure>

* **Current price** - follows currency pair current price.
* **Order book** - follows best bid/ask price in the order book. Protects against false price movements (squeezes).
* **Candle Timeframe** - SL is moved if candle's closing price deviates a certain percentage from the specified timeframe.

### 8. Order Type

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FoPOOylzExPbznwB8h3f1%2Fimage.png?alt=media&#x26;token=92876d97-c8b5-4a57-bb47-53eb95bba328" alt="" width="323"><figcaption></figcaption></figure>

* [**Virtual Floating**](https://docs.finandy.com/trading/manual/order-types/floating-order) - Auto-swap enabled limit order for more profitable exits in high-spread currencies.
* [**Virtual Market**](https://docs.finandy.com/trading/create-order-grid/order-types/virtual-order) - Virtual order that triggers a real order to execute at market price based on other participants' bids.
* [**Stop Market**](https://docs.finandy.com/trading/create-order-grid/order-types/stop-order) - is a type of exchange order that initiates a market order once the stop price is triggered\*.

{% hint style="warning" %}
\*Be aware of market liquidity and volatility when using market orders, as they can execute at a price that is higher/lower than the most recent visible.
{% endhint %}

### 9. Order trigger

Additional options for virtual orders.

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FMTiPQJvP65lgEw2TmStG%2Fimage.png?alt=media&#x26;token=aee9c233-f670-4688-a587-53fde48a9365" alt="" width="323"><figcaption></figcaption></figure>

Trigger for virtual order to close position with a real order.

* **Current Price** \
  If virtual order's trigger price crosses the currency pair price, a real order is created (step 5).
* **Order book** \
  Checks the sell limit price for a **Long** position and the buy limit price for a **Short** position. Protects against false price movements (squeezes).
* **1m candle, 3m candle, etc**. \
  First value is candle's timeframe.

  <mark style="color:green;">**Long**</mark> position will be closed by the Stop Loss if the trigger candle closes at or below the SL level.

  <mark style="color:red;">**Short**</mark> position will be closed by the Stop Loss if the trigger candle closes at or above the SL level.

### 10. Action on #CA

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FhNfqqlAUJLpZybAyZ6s8%2Fimage.png?alt=media&#x26;token=b2cd2109-f1a5-42a8-939c-193572337269" alt="" width="323"><figcaption></figcaption></figure>

When placing a SL at breakeven level, averaging orders will be canceled or remain unchanged.

<table data-header-hidden><thead><tr><th width="185.5"></th><th></th></tr></thead><tbody><tr><td><strong>Parameter</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>Off(default)</strong></td><td>Averaging orders will remain active and not be canceled when the SLX module is enabled.</td></tr><tr><td><strong>Cancel #CA</strong></td><td>All averaging orders will be cancelled when the SLX module is enabled.</td></tr></tbody></table>

## Trailing based on executed Take Profits

{% embed url="<https://www.youtube.com/watch?v=bhU3Vr2WaSI>" %}

The module creates or repositions a **Stop Loss** when a **Take Profit** order is executed on a position.

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FOnN1WlZST5OwFObZ9Zxt%2Fimage.png?alt=media&#x26;token=7488948d-c965-4c61-8258-e1736faec0c9" alt="" width="374"><figcaption></figcaption></figure>

### 1. Activation at BreakEven

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/4237e745-b881-4101-97cf-2ea733dd424f/image.png" alt="" width="375"><figcaption></figcaption></figure>

When № Take Profit is executed, it moves to Break-even Point and continues to follow the executed Take Profit (if specified in set point #2).

For example, If you activate Break-Even (BE) at 1 TP execution, the module will cancel current Stop Loss (SL) after the first TP is executed and set a new SL at the original break-even price.

### 2. Each TP

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/11a5f242-e45d-46af-91e0-3f43fd3bfaf3/image.png" alt="" width="375"><figcaption></figcaption></figure>

Once activated, each executed Take Profit will move Stop Loss closer to the trend based on table´s algorithm. If deactivated, Stop Loss will be set at break-even position´s price and will not be adjusted.

Assuming activation occurs from the second TP, the module will perform the same actions for any other TP that triggers it.

<table data-header-hidden><thead><tr><th width="183.5"></th><th></th></tr></thead><tbody><tr><td><strong>Event</strong></td><td><strong>Action</strong></td></tr><tr><td>Execution <strong>TP</strong> #2</td><td><strong>SLX</strong> module cancels all existing <strong>SLs</strong> and sets a new <strong>SL</strong> at break-even price with the specified order type.</td></tr><tr><td>Execution <strong>TP</strong> #3</td><td>Cancels current <strong>SL</strong>, and set new <strong>SL</strong> at executed <strong>TP</strong> #1 price.</td></tr><tr><td>Execution <strong>TP</strong> #4</td><td>Cancels current <strong>SL</strong>, and set new <strong>SL</strong> at executed <strong>TP</strong> #2 price.</td></tr><tr><td>etc.</td><td>etc.</td></tr></tbody></table>

### 3. Order type

<figure><img src="https://554260309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeAkMGtCw51BYWLVdmuDx%2Fuploads%2FVPRIy7nllHaFa1eRQmo9%2Fimage.png?alt=media&#x26;token=98726c53-6c0d-4c9f-9f75-def030602576" alt="" width="324"><figcaption></figcaption></figure>

* [**Virtual Floating**](https://docs.finandy.com/trading/manual/order-types/floating-order) - Auto-swap enabled limit order for more profitable exits in high-spread currencies.
* [**Virtual Market**](https://docs.finandy.com/trading/create-order-grid/order-types/virtual-order) - Virtual order that triggers a real order to execute at market price based on other participants bids.
* [**Stop Market**](https://docs.finandy.com/trading/create-order-grid/order-types/stop-order) - is a type of exchange order that initiates a market order once the stop price is triggered\*.

{% hint style="warning" %}
\*Be aware of market liquidity and volatility when using market orders, as they can execute at a price that is higher/lower than the most recent visible.
{% endhint %}

### 4. Order trigger

Additional options for virtual orders.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/5c2b4e81-f223-415e-a180-3af796595d54/image.png" alt="" width="375"><figcaption></figcaption></figure>

Trigger for virtual order to close position with a real order.

* **Current Price** \
  If virtual order's trigger price crosses the currency pair price, a real order is created (step 5).
* **Order book** \
  Checks the sell limit price for a **Long** position and the buy limit price for a **Short** position. Protects against false price movements (squeezes).
* **1m candle, 3m candle, etc**. \
  First value is candle's timeframe.

  <mark style="color:green;">**Long**</mark> position will be closed by the Stop Loss if the trigger candle closes at or below the SL level.\ <mark style="color:red;">**Short**</mark> position will be closed by the Stop Loss if the trigger candle closes at or above the SL level.

### 5. Action on #CA

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/9e058d38-27dc-483f-8b20-508de028729c/image.png" alt="" width="375"><figcaption></figcaption></figure>

When placing a SL at breakeven level, averaging orders will be canceled or remain unchanged.

<table data-header-hidden><thead><tr><th width="184.5"></th><th></th></tr></thead><tbody><tr><td><strong>Parameter</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>Off(default)</strong></td><td>Averaging orders will remain active and NOT be canceled when the SLX module is enabled.</td></tr><tr><td><strong>Cancel #CA</strong></td><td>All averaging orders will be cancelled when the SLX module is enabled.</td></tr></tbody></table>

### 6. Check profit?

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/9df01b67-7882-4b66-81a5-c6b28156657b/image.png" alt="" width="375"><figcaption></figcaption></figure>

If enabled, SLX module will move the SL order only when there are profits in the position. If disabled, SLX module will move SL orders regardless of profit or loss.

## Additionally

* SLX activation is performed relative to the breakeven level for the position, but without funding. In case of negative funding for a position, closing a position through the SLX module may result in a loss. \
  In the case of a long stay in a position, the influence of deduction/accrual for funding on the middle line is controlled by the trader independently.
* When trading inside a position, please note that trailing is based on **the average entry price,** not position price.

**Do you have any questions? We can help you in our Telegram chat.**

{% embed url="<https://t.me/finandy>" %}
