OPEN-SOURCE SCRIPT
Güncellendi Trade Calculator {Phanchai}

Trade Calculator 🧮 {Phanchai} — Documentation
A lightweight sizing helper for TradingView that turns your risk per trade into an estimated maximum nominal position size — using the most recent chart low as your stop reference. Built for speed and clarity right on the chart.
Key Features
How to Use
Scope
Notes & Assumptions
Risk Warning
Trading involves substantial risk. Always double-check every value the calculator shows, confirm your stop distance, and verify position sizing with your broker/platform before entering any order. Never risk money you cannot afford to lose.
Open Source & Feedback
The source code is open. If you spot a bug or have an idea to improve the tool, feel free to share suggestions — I’m happy to iterate and make it better.
A lightweight sizing helper for TradingView that turns your risk per trade into an estimated maximum nominal position size — using the most recent chart low as your stop reference. Built for speed and clarity right on the chart.
Key Features
- Clean on-chart info table with configurable font size and position.
- Row toggles: show/hide each line (Price, Last Low, Risk per Trade, Entry − Low, SL to Low %, Max. Nominal Value in USDT).
- Configurable low reference: Last N bars or Running since load.
- Low label placed exactly at the wick of the lowest bar (no horizontal line).
- Custom padding: add extra rows above/below and blank columns left/right (with custom whitespace/text fillers) to fine-tune layout.
- Integer display for Risk per Trade (USDT) and Max. Nominal Value (USDT); decimals configurable elsewhere.
- Open source script — easy to read and extend.
How to Use
- Add the indicator: open TradingView → Indicators → paste the source code → Add to chart.
- Pick your low reference in settings:
- Last N bars — uses the lowest low within your chosen lookback.
- Running since load — tracks the lowest low since the script loaded.
- Total Capital — your account size in USDT.
- Max. invest Capital per Trade (%) — your risk per trade as a percent of Total Capital.
- Use Table Position and Table Size to place it.
- Add Extra rows/columns and set left/right fillers (spaces allowed) for padding.
- Toggle individual rows (on/off) to show only what you need.
- Act. Price in USDT — current close.
- Last Low in USDT — stop reference price.
- Risk per Trade — whole-USDT value of your risk budget for this trade.
- Entry − Low — absolute risk per unit.
- SL to Low (%) — percentage distance from price to low.
- Max. Nominal Value in USDT — estimated max nominal position size given your risk budget and stop at the low.
- Last N bars — uses the lowest low within your chosen lookback.
Scope
- This calculator is designed for long trades only (stop below price at the chart low).
Notes & Assumptions
- Does not factor fees, funding, slippage, tick size, or broker/venue position limits.
- “Running since load” updates as new lows appear; “Last N bars” uses only the selected lookback window.
- If price equals the low (zero distance), sizing will be undefined (division by zero guarded as “—”).
Risk Warning
Trading involves substantial risk. Always double-check every value the calculator shows, confirm your stop distance, and verify position sizing with your broker/platform before entering any order. Never risk money you cannot afford to lose.
Open Source & Feedback
The source code is open. If you spot a bug or have an idea to improve the tool, feel free to share suggestions — I’m happy to iterate and make it better.
Sürüm Notları
Small bugfix. The Label was sometimes at not correct positionAçık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
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.