Separate data for indicators, transfer more data

Hello Everyone,
the indicator (e.g. sliding window) needs more data points than it generates, because the first N-data do not appear, i thought that in such cases you should pass more data and edit the data in the functions accordingly, so that e.g. with the indicator sliding window the line is the same length as that of the original chart. how does this work?