I would like to receive the 52 weeks high from a secondary weekly data series on primary daily bars
But how to fetch the weekly high instead of close prices?
// weekly BarsArray[1] is returns close prices
double high52week = MAX(BarsArray[1], 52)[0];
// daily
double highLatest = MAX(High, 20)[0];

Comment