Skip to Main Content

Using Additional Time Frame Data

This indicator paints previous week close price as a line.

assert(
    !['W', 'M', 'Q', 'Y'].includes(constants.resolution),
    `not applicable to "${constants.resolution}" charts`
);

const data1 = await request.history(constants.ticker, 'W');
const weeklyLanded = land_points_onto_series(data1.time, data1.close, time);

paint(interpolate_sparse_series(weeklyLanded, 'constant'), { style: 'ladder' });
Using Additional Time Frame Data