---
title: Trailing Stop Loss Using Price Values from TradingView
slug: trailing-sl-from-tradingview-price
date: 2026-01-27
modified: 2026-09-04
author: Bhavishya Goyal
excerpt: ""
meta_description: "Learn how PickMyTrade converts TradingView price-based SL into point distances, Applies trailing stop logic accurately after entry."
focus_keyword: ""
canonical_url: "https://docs.pickmytrade.trade/docs/trailing-sl-from-tradingview-price/"
og_title: Trailing Stop Loss Using Price Values from TradingView
og_description: "Learn how PickMyTrade converts TradingView price-based SL into point distances, Applies trailing stop logic accurately after entry."
og_image: ""
schema_type: WebPage
categories: []
tags: []
reading_time: 2
word_count: 439
robots: "index, follow"
lang: en-US
---

# Trailing Stop Loss Using Price Values from TradingView

**Last Updated:** September 4, 2026  |  **Published:** January 27, 2026

PickMyTrade now supports **trailing Stop Loss (SL) derived directly from price values sent by TradingView**. Instead of treating TP and SL as fixed prices, PickMyTrade first **calculates the point distance** between the entry price sent in the alert and the TP/SL prices, then applies those distances dynamically from the actual fill price.

This ensures accurate trailing behavior even when the fill price differs from the alert price.

---

## How It Works (High-Level)

1. TradingView sends **absolute TP and SL prices** via JSON.
2. PickMyTrade calculates the **point distance** between:
  - Entry Price (alert price)
  - TP price
  - SL price
3. When the order fills, PickMyTrade:
  - Rebuilds TP and SL from the **actual fill price**
  - Applies **trail trigger**, **trail stoploss**and **trail frequency**
4. Trailing logic is handled entirely by Tradovate.

---

## JSON Example from TradingView

```
'symbol': 'MNQ1!',
 'data': 'buy',
 'price': '26000',
 'sl': 25990,
 'tp': 26030,
 'trail': 1,
 'trail_stop': 2,
 'trail_trigger': 5,
 'trail_freq': 1,
```

### Market Context

- Alert Price: **26000**
- Direction: **BUY**

---

## Step 1: Calculate Point Distance (From Alert Price)

| Type | Price | Distance |
| --- | --- | --- |
| Take Profit | 26030 | 30 points |
| Stop Loss | 25990 | 10 points |

PickMyTrade stores **only the distances**, not the raw prices.

---

## Step 2: Order Gets Filled (Real Fill Price)

Due to slippage or market conditions, the actual fill happens at:

**Fill Price: 26018.5**

PickMyTrade now rebuilds TP &amp; SL from this price.

---

## Step 3: Rebuild Initial TP &amp; SL from Fill Price

| Type | Calculation | New Price |
| --- | --- | --- |
| Take Profit | 26018.5 + 30 | 26048.5 |
| Stop Loss | 26018.5 − 10 | 26008.5 |

These are the **true working orders** placed at the broker.

---

## Step 4: Trailing Configuration

Example trailing settings:

- **Trail Trigger:** 5 points
- **Trail Distance:** 2 points
- **Trail Frequency:** 1 points

---

## Step 5: Trailing Activation Logic (BUY Trade)

Initial rebuilt values after fill:

- Entry: **26018.5**
- TP: **26048.5**
- SL: **26008.5**

### Trail Trigger

Price must move **5 points in profit** before trailing starts:

```
26018.5 + 5 = 26023.5
```

Trailing becomes active once price reaches **26023.5**.

---

## Step 6: Trailing Stop Updates

After activation, the stop loss trails the price using:

- **Trail Stop:** 2 points
- **Trail Frequency:** 1 point

### Trailing Behavior

| Market Price | Stop Loss |
| --- | --- |
| 26023.5 | 26021.5 |
| 26024.5 | 26022.5 |
| 26025.5 | 26023.5 |
| 26026.5 | 26024.5 |

✔ Stop loss only moves **up**  
✖ Never moves backward  
✔ Profit is progressively locked in

---

## Step 7: Take Profit Behavior

- TP remains fixed at **26048.5**
- Trade closes when:
  - Price hits **TP**, or
  - Price reverses and hits the **trailing SL**

---

## Key Advantages of This Approach

- Works with **any TradingView strategy or indicator**
- Accurate even with **partial fills or slippage**
- TradingView stays simple — **just send prices**

---

## Important Notes

- TradingView **does NOT trail orders**
- TradingView prices are used **only to calculate distance**
- Actual TP/SL prices are rebuilt **after fill**
- Trailing logic starts **only after trigger is reached**

---

## Best Use Cases

- Automated strategies using limit or market orders
- Traders who want **price-based alerts**, not tick math
- Accounts where fill price accuracy matters
- Consistent trailing across multiple brokers

[Get PickMyTrade → Automate Your TradingView Strategies](https://pickmytrade.trade "PickMyTrade - Automated Trading")

Last updated: **September 4, 2026**

For AI tools &amp; developers:[View Markdown →](https://docs.pickmytrade.trade/docs/trailing-sl-from-tradingview-price.md)