OPEN-SOURCE SCRIPT

Live Position Sizer (LPS)

718
Description (EN)
(Magyar leíráshoz görgess lejjebb!)

Live Position Sizer (LPS) is a discretionary trading utility designed to visualize risk, reward, and position size directly on the chart in real time.

The indicator draws a TradingView-style long or short position box and calculates the required position size based on your defined capital, maximum risk, stop-loss distance, and a user-defined lot conversion factor.

LPS is intended strictly as a decision-support and risk management tool. It does not place trades or generate automated signals.

Core features:
  • Automatic Long / Short position visualization
  • Dynamic Entry, Stop Loss, and Take Profit levels
  • Real-time position size calculation
  • Configurable Risk/Reward ratio
  • Fully customizable colors, transparency, and line styles
  • Clean, minimal on-chart labels showing direction, RR, and lot size
  • Only one active position box at a time for a clutter-free chart


Position sizing logic:
TradingView internally calculates position size in units, not broker-specific lots.
To bridge this difference, LPS uses a user-defined “Units per 1 Lot” multiplier.

Examples:
  • Forex (standard lot): 100000
  • Gold (XAUUSD): 1 or 100 (broker dependent)
  • Indices (e.g. NAS100): 1


The indicator first calculates the position size in TradingView units and then converts it to lots using this multiplier.
The displayed lot size is rounded to 0.01 lots.

Stop Loss logic:
The Stop Loss level is derived from the High or Low of a selectable previous candle.
Increasing the bar-back value places the Stop Loss further away, which:
  • increases stop distance
  • reduces position size for the same risk


Intended use:
  • Manual / discretionary trading
  • Risk management and position sizing
  • Trade planning and visualization
  • Educational purposes


Important notes:
  • This indicator does not execute trades
  • No alerts or automation by default
  • Lot size and contract specifications vary by broker
  • Always verify the exact lot or contract size with your broker before trading


------------------------------------

Description (HU)

A Live Position Sizer (LPS) egy diszkrecionális kereskedést támogató segédindikátor, amely valós időben jeleníti meg a kockázatot, a célárat és a pozícióméretet közvetlenül a charton.

Az indikátor TradingView-stílusú long vagy short pozíció boxot rajzol, és kiszámolja a szükséges pozícióméretet a megadott tőke, maximális kockázat, stop-loss távolság és egy felhasználó által definiált LOT szorzó alapján.

Az LPS nem stratégia, kizárólag döntéstámogató és kockázatkezelési eszköz.

Fő funkciók:
  • Automatikus Long / Short pozíció megjelenítés
  • Entry, Stop Loss és Take Profit szintek vizuális ábrázolása
  • Valós idejű pozícióméret számítás
  • Állítható Risk/Reward arány
  • Teljesen testreszabható színek, átlátszóság és vonalstílus
  • Letisztult chart label (irány, RR, lot méret)
  • Egyszerre csak egy aktív pozíció box


Pozícióméretezési logika:
A TradingView belsőleg egységekben (units) számol, nem bróker-specifikus LOT-okban.
Ennek kezelésére az LPS egy „Units per 1 Lot” beállítást használ.

Példák:
  • Forex standard lot: 100000
  • Arany (XAUUSD): 1 vagy 100 (brókertől függ)
  • Indexek (pl. NAS100): 1


Az indikátor először TradingView egységekben számol, majd ezt átváltja LOT-ra a megadott szorzó segítségével.
A kijelzett LOT méret 0.01-re van kerekítve.

Stop Loss logika:
A Stop Loss szint a kiválasztott korábbi gyertya high vagy low értékéből kerül meghatározásra.
Nagyobb bar-back érték:
  • távolabb helyezi a stopot
  • azonos kockázat mellett kisebb pozícióméretet eredményez


Ajánlott felhasználás:
  • Manuális, diszkrecionális kereskedés
  • Kockázatkezelés és pozícióméretezés
  • Trade tervezés
  • Oktatási célok


Fontos megjegyzések:
  • Az indikátor nem köt automatikusan
  • Alapértelmezetten nincs alert vagy automatizmus
  • A LOT és contract méret brókerenként eltérhet
  • Kereskedés előtt mindig ellenőrizd a pontos LOT / contract specifikációt a brókerednél

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.