Parent: Object
The VolumeProfileItem class represents a single horizontal price bin in a Volume Profile. The VolumeProfile.Items collection contains the VolumeProfileItem instances generated for a Volume Profile. Each item represents a specific price range and contains the up volume, down volume, Value Area status, Point of Control status, and relative display widths associated with that range.
Contains the down volume assigned to this Volume Profile price range. The VolumeProfile calculation considers a source bar to be down when its Close is less than the previous bar's Close.
Returns true if this VolumeProfileItem is included in the Volume Profile's Value Area. The Value Area begins at the Point of Control and expands outward until approximately VolumeProfile.ValueRangePct percent of the profile's total volume has been included.
Returns true if this VolumeProfileItem is the Point of Control. The Point of Control is the VolumeProfileItem having the greatest TotalVolume in the profile.
Determines whether a value or price range intersects this VolumeProfileItem's price range. The single-value overload returns true when:
value >= RangeMin && value < RangeMax
Consequently, RangeMin is inclusive and RangeMax is exclusive. The second overload returns true when the price range represented by high and low intersects the VolumeProfileItem's range. This includes cases where:
- low falls within the item's range,
- high falls within the item's range, or
- the high/low range completely spans the item's range.
Contains the upper boundary of the price range represented by this VolumeProfileItem. For IsValueInRange(double value), this boundary is exclusive.
Contains the lower boundary of the price range represented by this VolumeProfileItem. For IsValueInRange(double value), this boundary is inclusive.
Returns the total volume assigned to this VolumeProfileItem. It is calculated as:
UpVolume + DownVolume
Contains the up volume assigned to this Volume Profile price range. The VolumeProfile calculation considers a source bar to be up when its Close is greater than or equal to the previous bar's Close.
Contains the relative width of this VolumeProfileItem compared to the Point of Control. It is calculated as:
TotalVolume / PointOfControlItem.TotalVolume
The Point of Control therefore has a WidthPct of 1.0, while lower-volume profile items have proportionally smaller values.
Contains this item's DownVolume relative to the Point of Control's total volume. It is calculated as:
DownVolume / PointOfControlItem.TotalVolume
Contains this item's UpVolume relative to the Point of Control's total volume. It is calculated as:
UpVolume / PointOfControlItem.TotalVolume