OPEN-SOURCE SCRIPT
Seba'sCalc

Seba'sCalc is a lightweight trade planning table that sits directly on your
chart. Fill in four inputs and every key metric is calculated instantly.
────────────────────────────────────────
WHAT IT DISPLAYS
────────────────────────────────────────
• Amount — Your total invested capital
• Risk — Actual dollars at risk if SL is hit
[ Qty × (Entry − SL) ]
• Qty — Position size based on your amount and entry
[ Amount ÷ Entry ]
• Entry — Your planned entry price
• TP — Take Profit level
• SL — Stop Loss level
• Profit — Expected dollar gain if TP is hit
[ Qty × (TP − Entry) ]
• Risk/Reward — Ratio of potential profit to potential loss
[ Profit ÷ Risk ]
────────────────────────────────────────
INPUTS
────────────────────────────────────────
All you need to enter is:
→ Invested Amount
→ Entry Price
→ Take Profit (TP)
→ Stop Loss (SL)
────────────────────────────────────────
CUSTOMIZATION
────────────────────────────────────────
• Theme — Dark (high contrast black) or Light (clean white/grey)
• Position — Place the table anywhere on the chart
• Text Size — Tiny / Small / Normal / Large
• Profit value turns green on a winning trade, red on a losing one
────────────────────────────────────────
WORKS ON ALL ASSETS
────────────────────────────────────────
Crypto, Forex, Stocks, Commodities — any market where you
define your own entry, TP, and SL.
────────────────────────────────────────
HOW TO USE
────────────────────────────────────────
1. Add the indicator to your chart
2. Open Settings (gear icon)
3. Enter your Amount, Entry, TP, and SL
4. The table updates instantly on the last bar
No repainting. No signals. Pure planning tool.
chart. Fill in four inputs and every key metric is calculated instantly.
────────────────────────────────────────
WHAT IT DISPLAYS
────────────────────────────────────────
• Amount — Your total invested capital
• Risk — Actual dollars at risk if SL is hit
[ Qty × (Entry − SL) ]
• Qty — Position size based on your amount and entry
[ Amount ÷ Entry ]
• Entry — Your planned entry price
• TP — Take Profit level
• SL — Stop Loss level
• Profit — Expected dollar gain if TP is hit
[ Qty × (TP − Entry) ]
• Risk/Reward — Ratio of potential profit to potential loss
[ Profit ÷ Risk ]
────────────────────────────────────────
INPUTS
────────────────────────────────────────
All you need to enter is:
→ Invested Amount
→ Entry Price
→ Take Profit (TP)
→ Stop Loss (SL)
────────────────────────────────────────
CUSTOMIZATION
────────────────────────────────────────
• Theme — Dark (high contrast black) or Light (clean white/grey)
• Position — Place the table anywhere on the chart
• Text Size — Tiny / Small / Normal / Large
• Profit value turns green on a winning trade, red on a losing one
────────────────────────────────────────
WORKS ON ALL ASSETS
────────────────────────────────────────
Crypto, Forex, Stocks, Commodities — any market where you
define your own entry, TP, and SL.
────────────────────────────────────────
HOW TO USE
────────────────────────────────────────
1. Add the indicator to your chart
2. Open Settings (gear icon)
3. Enter your Amount, Entry, TP, and SL
4. The table updates instantly on the last bar
No repainting. No signals. Pure planning tool.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
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.