GetHighest

GetHighest ();

Description

Returns the highest price value reached by the instrument within the time period for which the profile is accumulated.

Example

def yyyymmdd = GetYYYYMMDD();
def day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd));
def period = Floor(day_number / 7);
def cond = 0 < period - period[1];
profile vol = VolumeProfile("startNewProfile" = cond, "onExpansion" = no);
vol.Show();
plot b = vol.GetHighest();

This script plots the High price for each weekly Volume profile.