PROTECTED SOURCE SCRIPT
Zaktualizowano Якорь сделки — простая версия (RU, v2.3)

What does
Displays the fixed entry price for the transaction in a horizontal line and shows the current PnL (net, optionally with fees) and the percentage deviation of the current entry price. The indicator does not generate trading signals and does not make decisions for the user — it is a purely visual assistant for tracking an already open position.
How to use
Enter the Entry price.
Choose A Direction (Long/Short).
Specify the Size Mode:
Quote ($) — enter the position amount in the quote currency; the indicator itself will recalculate the number of coins at the entry price.
Basic (coins) — enter the number of coins directly.
(Optional) Enable Commission Accounting and set the commission in bps per side — the PnL will be shown as "clean".
If desired, include a label at the current price and/or a table in the corner of the chart (colors, position, and sizes can be adjusted).
Parameters
Transaction: Direction, Entry Price, Size Mode, Size.
Commissions: flag "Take into account commissions", Commission per side (bps).
Online info: show the label, its size, and the color of the text/background.
Entry line: color for long/short, thickness, style (solid/dotted/dots).
Table: show/hide, angle, colors, and frame.
Formulas (transparent)
Number in the database:
baseQty = (mode = $) ? sizeUSD / entryPrice : sizeBase
Gross PnL:
grossPnL = (close - entryPrice) * baseQty * direction
Commissions (if included):
fees = entryPrice * baseQty * feeSide + close * baseQty * feeSide, where feeSide = bps / 10000
Pure PnL:
netPnL = grossPnL − fees
Yield, %:
retPct = (close / entryPrice − 1) × 100 × direction
Important / Restrictions
The indicator does not "redraw": it does not change historical values — it only visualizes the set level and calculates the PnL from the current price.
This is not a trading system or a buy/sell recommendation. It is used as an auxiliary accounting tool.
Commissions are taken into account in the simplest "entry + potential exit at the current price" model; financing/swaps/slippage are not taken into account.
It works on any timeframes and symbols where the current price is available.
Disclaimer
This indicator is provided solely for educational and informational purposes. It is not an investment recommendation, does not guarantee profit and does not reduce risks. You make your own trading decisions.
Version history (briefly)
v2.3 — Quote ($) / Base (Coin) size mode, pure PnL, minimalistic label, customizable table and layout.
v2.x — simplification of logic, no reference to time/candlesticks for greater stability.
Tags (for search purposes)
pnl, risk management, position tracking, entry line, profit, long, short, ru
Displays the fixed entry price for the transaction in a horizontal line and shows the current PnL (net, optionally with fees) and the percentage deviation of the current entry price. The indicator does not generate trading signals and does not make decisions for the user — it is a purely visual assistant for tracking an already open position.
How to use
Enter the Entry price.
Choose A Direction (Long/Short).
Specify the Size Mode:
Quote ($) — enter the position amount in the quote currency; the indicator itself will recalculate the number of coins at the entry price.
Basic (coins) — enter the number of coins directly.
(Optional) Enable Commission Accounting and set the commission in bps per side — the PnL will be shown as "clean".
If desired, include a label at the current price and/or a table in the corner of the chart (colors, position, and sizes can be adjusted).
Parameters
Transaction: Direction, Entry Price, Size Mode, Size.
Commissions: flag "Take into account commissions", Commission per side (bps).
Online info: show the label, its size, and the color of the text/background.
Entry line: color for long/short, thickness, style (solid/dotted/dots).
Table: show/hide, angle, colors, and frame.
Formulas (transparent)
Number in the database:
baseQty = (mode = $) ? sizeUSD / entryPrice : sizeBase
Gross PnL:
grossPnL = (close - entryPrice) * baseQty * direction
Commissions (if included):
fees = entryPrice * baseQty * feeSide + close * baseQty * feeSide, where feeSide = bps / 10000
Pure PnL:
netPnL = grossPnL − fees
Yield, %:
retPct = (close / entryPrice − 1) × 100 × direction
Important / Restrictions
The indicator does not "redraw": it does not change historical values — it only visualizes the set level and calculates the PnL from the current price.
This is not a trading system or a buy/sell recommendation. It is used as an auxiliary accounting tool.
Commissions are taken into account in the simplest "entry + potential exit at the current price" model; financing/swaps/slippage are not taken into account.
It works on any timeframes and symbols where the current price is available.
Disclaimer
This indicator is provided solely for educational and informational purposes. It is not an investment recommendation, does not guarantee profit and does not reduce risks. You make your own trading decisions.
Version history (briefly)
v2.3 — Quote ($) / Base (Coin) size mode, pure PnL, minimalistic label, customizable table and layout.
v2.x — simplification of logic, no reference to time/candlesticks for greater stability.
Tags (for search purposes)
pnl, risk management, position tracking, entry line, profit, long, short, ru
Informacje o Wersji
What doesDisplays the fixed entry price for the transaction in a horizontal line and shows the current PnL (net, optionally with fees) and the percentage deviation of the current entry price. The indicator does not generate trading signals and does not make decisions for the user — it is a purely visual assistant for tracking an already open position.
How to use
Enter the Entry price.
Choose A Direction (Long/Short).
Specify the Size Mode:
Quote ($) — enter the position amount in the quote currency; the indicator itself will recalculate the number of coins at the entry price.
Basic (coins) — enter the number of coins directly.
(Optional) Enable Commission Accounting and set the commission in bps per side — the PnL will be shown as "clean".
If desired, include a label at the current price and/or a table in the corner of the chart (colors, position, and sizes can be adjusted).
Parameters
Transaction: Direction, Entry Price, Size Mode, Size.
Commissions: flag "Take into account commissions", Commission per side (bps).
Online info: show the label, its size, and the color of the text/background.
Entry line: color for long/short, thickness, style (solid/dotted/dots).
Table: show/hide, angle, colors, and frame.
Formulas (transparent)
Number in the database:
baseQty = (mode = $) ? sizeUSD / entryPrice : sizeBase
Gross PnL:
grossPnL = (close - entryPrice) * baseQty * direction
Commissions (if included):
fees = entryPrice * baseQty * feeSide + close * baseQty * feeSide, where feeSide = bps / 10000
Pure PnL:
netPnL = grossPnL − fees
Yield, %:
retPct = (close / entryPrice − 1) × 100 × direction
Important / Restrictions
The indicator does not "redraw": it does not change historical values — it only visualizes the set level and calculates the PnL from the current price.
This is not a trading system or a buy/sell recommendation. It is used as an auxiliary accounting tool.
Commissions are taken into account in the simplest "entry + potential exit at the current price" model; financing/swaps/slippage are not taken into account.
It works on any timeframes and symbols where the current price is available.
Disclaimer
This indicator is provided solely for educational and informational purposes. It is not an investment recommendation, does not guarantee profit and does not reduce risks. You make your own trading decisions.
Version history (briefly)
v2.3 — Quote ($) / Base (Coin) size mode, pure PnL, minimalistic label, customizable table and layout.
v2.x — simplification of logic, no reference to time/candlesticks for greater stability.
Tags (for search purposes)
pnl, risk management, position tracking, entry line, profit, long, short, ru
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.