OPEN-SOURCE SCRIPT
Traded Value ($ M)

This indicator calculates and displays the total traded value for each bar in US Dollars (Millions), giving you a clearer picture of real money flow compared to raw volume alone.
How it works:
It multiplies the closing price by the bar's volume, then divides by 1,000,000 to express the result in Millions of USD.
Traded Value ($M) = (Close Price × Volume) / 1,000,000
Color coding:
🟢 Green bar — Price closed higher than it opened (bullish bar)
🔴 Red bar — Price closed lower than it opened (bearish bar)
Why use this?
Raw volume only tells you how many shares/contracts were traded. Traded Value tells you how much money actually changed hands — making it especially useful for comparing activity across stocks with very different price levels.
Best used on: Stocks, ETFs, and instruments traded in USD.
How it works:
It multiplies the closing price by the bar's volume, then divides by 1,000,000 to express the result in Millions of USD.
Traded Value ($M) = (Close Price × Volume) / 1,000,000
Color coding:
🟢 Green bar — Price closed higher than it opened (bullish bar)
🔴 Red bar — Price closed lower than it opened (bearish bar)
Why use this?
Raw volume only tells you how many shares/contracts were traded. Traded Value tells you how much money actually changed hands — making it especially useful for comparing activity across stocks with very different price levels.
Best used on: Stocks, ETFs, and instruments traded in USD.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน