PROTECTED SOURCE SCRIPT
업데이트됨

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

68
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
릴리즈 노트
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

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.