OPEN-SOURCE SCRIPT
ที่อัปเดต: Risk Calculator Pro by GvdM

Risk Calculator Pro - Professional position sizing tool for CFD and CME futures traders. Automatically calculates lot size or contracts based on your risk budget and stop distance. Features auto-detection of popular instruments (Gold, Silver, Oil, Indices), multiple entry modes (current price, manual, previous candle, swing points), and visual profit targets with customizable risk:reward ratios. Displays comprehensive risk table and price level lines with smart labels showing points/ticks and position size. Perfect for disciplined risk management across any timeframe.
Release Note
Updated risk calculation to be manual by default with entry price and stop loss price. This then calculates the lot size to use for the trade. Auto setting still an option.
Release Note
minor improvementsRelease Note
bug fixRelease Note
ImprovementsRelease Note
bug fixRelease Note
added BTCUSD and bug fixesRelease Note
Updated the script for easier manual price entries. You can now click on the chart to set your levels instead of manual entry.
Use the settings menu to update levels.
Release Note
Updated with CFD list with indices:US100 / NAS100 (NQ CFD): contract size 1, point value $1
US500 / SPX500 (ES CFD): contract size 1, point value $1
US30 / DJ30 (YM CFD): contract size 1, point value $1
Release Note
Add the major global indices to the instrument detection section. Germany (DAX), Japan (Nikkei), UK (FTSE), France (CAC), and several others added for both CFD and futures variants.
Upgraded script to Pine V6
Release Note
Bug Fixes to remove run time errors. Release Note
v1.2 — 2026-06-25Reverse-pair detection + correct USD pip value for USD-base forex.
Added joinHit() / pairHit() helpers. Forex pairs now match in either
currency order, so reversed broker listings like USDAUD are detected as
AUD/USD (shown as "USD/AUD (reversed)"). Replaces the verbose v1.1 OR-lists.
USD pip value is now price-aware. When USD is the quote currency
(EURUSD, GBPUSD, AUDUSD) one pip = a flat $10/lot, unchanged. When USD is the
base currency the USD pip value depends on price, so pv = pipSize / price.
Verified against broker data for USDAUD: 100,000 × 0.0001 ÷ 1.43 ≈ $7.00/lot,
matching the broker's 0.07 USD pip value on a 1,000 USD position.
Behaviour change for USDJPY / USDCAD / USDCHF: these USD-base pairs now use
the price-adjusted USD pip value too (previously a fixed figure). Their
auto-calculated lot size will differ from v1.1 — this is the corrected value.
EURUSD / GBPUSD / AUDUSD (normal order) are unchanged.
Release Note
Minor Fixs and imporvementsสคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
Red days build green habits.
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
Red days build green habits.
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน