PROTECTED SOURCE SCRIPT
Güncellendi Якорь сделки — простая версия (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
Sürüm Notları
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
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, özgürce ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgi burada.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.