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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.