OPEN-SOURCE SCRIPT

Volume by Time [LuxAlgo]

6 669
The Volume by Time indicator collects volume data for every point in time over the day and displays the average volume of the specific dataset collected at each respective bar.

The indicator overlays the current volume and the historical average to allow for better comparisons.

🔶 USAGE

สแนปชอต

Throughout the day, the volume of every bar is stored in groups organized by the time when each bar occurred.

Over time, the datasets accumulate, and from that, we can simply determine the average value at each specific time of the day.

สแนปชอต

The display is a histogram style, which consists of hollow bars and solid filled columns.

-Hollow bars represent the average volume at that time of the day.
-Solid columns display the current volume from the current bar.


สแนปชอต

By default, the entire history of data is used, but if desired, the number of days under analysis can be specified to provide a more relevant point of view.

A readout of the number of days being analyzed can be seen in the status bar at any time.

Note: Due to partial sessions, it is typical to see this value change throughout the day; this is simply due to the fact that not every trading session has the exact same schedule 100% of the time.

สแนปชอต

The analysis type can also be specified; these can be either Average (Default) or Median.

สแนปชอต

Additionally, a Bi-directional can be toggled for a distinct difference between upwards volume and downwards volume.

🔶 SETTINGS

  • Analysis Type: Choose between Average or Median analysis modes.
  • Length (Days): Set the number of days to use for analysis. Set to 0 for full data (Default 0).
  • Bi-Directional Toggle: Toggle between one-sided or two-sided display.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน