fixedRangeVolumeProfile

The Fixed Range Volume Profile draws a volume histogram for a window you choose (from time/price A to time/price B). It helps you see where trading actually happened (high-volume nodes), the Point of Control (POC), and the Value Area inside that slice—great for planning entries, stops, and targets in a friendly, visual way.

Syntax (one line)

fixedRangeVolumeProfile(fromTime, fromPrice, toTime, toPrice, styles?)

Parameters

fromTime (number) · Left edge time of the profiled window (e.g., time(120)). fromPrice (number) · Top price bound at the left edge (e.g., high(120)). toTime (number) · Right edge time of the window (e.g., time(40)). toPrice (number) · Bottom price bound at the right edge (e.g., low(40)). styles (VolumeProfileFixedRangeIndicatorOverrides) · Visual controls specific to this tool:

  • poCLineColor (string) · Color of the Point-of-Control line.

  • poCLineStyle (number) · Line style for the POC (0=solid, 1=dotted, 2=dashed…).

  • poCLineWidth (number) · Line width for the POC.

  • valueAreaVolumeColor (string) · Fill/line color used for the Value Area.

  • valueAreaVolumeStyle (number) · Style for Value Area rendering.

  • valueAreaVolumeWidth (number) · Width/thickness for Value Area rendering.

  • volumeAreaTransparency (number) · Transparency (0–100) for the histogram/value area background.

  • volumeColor (string) · Default volume bar color for the profile.

  • volumeStyle (number) · Style for volume bars (0=solid, 1=dotted, 2=dashed…).

  • volumeWidth (number) · Width/thickness of the volume bars.

Return Value

(string) · The drawing ID of the created Fixed Range Volume Profile.

Example

What this does: Every 56 candles, it profiles a past window (from 120 to 40 bars ago), highlights the POC, shows a soft Value Area, and keeps the histogram readable with transparency.

Tips

  • Choose windows around events (breakouts, ranges, session blocks) to see where volume truly accumulated.

  • If the histogram looks too intense, raise volumeAreaTransparency or reduce volumeWidth.

  • Use the POC as a fair-value magnet and the Value Area edges as potential support/resistance.

Warning

  • Very tiny windows (just a few bars) produce unstable, noisy profiles—pick a meaningful move.

  • Times must be passed to the time args and prices to the price args; mixing them will fail.

Good Practice

  • Keep a reusable const style and only tweak color/width/transparency per instrument so your tests stay consistent.

  • Pair this with Anchored VWAP to see both where price traded most (profile) and how far it is from fair value (VWAP).

Last updated