This library provides a few simple public methods to create and plot Volume Profiles:
class VolumeProfile   { ... public:   void              VolumeProfile(datetime _from, datetime _to);                     ~VolumeProfile() {};   double            GetHVPrice();   void              Plot(); ...   };
- GetHVPrice returns the price that is related to highest volume in the range.
Here is a sample script to instantiate and plot a desired Volume Profile:
#include <VolumeProfile.mqh> void OnStart() Â Â { Â Â Â Â Â Â datetime from=iTime(_Symbol, PERIOD_CURRENT,50); Â Â Â Â Â Â datetime to=iTime(_Symbol, PERIOD_CURRENT,20); Â Â Â Â Â Â VolumeProfile *VP = new VolumeProfile(from, to); Â Â Â Â Â Â VP.Plot(); Â Â Â Â Â Â Print(VP.GetHVPrice()); Â Â Â Â Â Â delete VP; Â Â }