#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, 5);
VP.Plot();
Print(VP.GetHVPrice());
delete VP;
}
Comments