**MrH wrote**>>

So I code a new custom indicator that plots the same indicator on different timeframes in 1 single seperate window.

No big deal, right. But then I start to think about it and there is something wrong (either with my code or with the function, probably with my code):

The deal is: if you calculate an indicator on a H4 timeframe, you will have 4 times less observations than the calculation on an H1 timeframe,

but iCustom does not think of this: it simply takes the last n bars of the indicator calculated on that timeframe, and as a result, the values are just

behind one another, and do not correspond any more: if the indi only calculates on the close of the bar, the H4 reading should be repeated 3 times

so you have 4 times the same H4 observations for every H1 observation in that same time period (4 hours). Offcourse this is true for any timeframe.

Has anyone worked around this or do I have to reinvent the wheel here?

Some feedback (Rosh?) would be helpfull, thank you.

Here is my implementation of fixed time frame moving average.

it shows as staircase on smaller timeframes, regular way on the same timeframe and as a histo range on larger timeframes.

maybe it will help.

**Files:**

So I code a new custom indicator that plots the same indicator on different timeframes in 1 single seperate window.

No big deal, right. But then I start to think about it and there is something wrong (either with my code or with the function, probably with my code):

The deal is: if you calculate an indicator on a H4 timeframe, you will have 4 times less observations than the calculation on an H1 timeframe,

but iCustom does not think of this: it simply takes the last n bars of the indicator calculated on that timeframe, and as a result, the values are just

behind one another, and do not correspond any more: if the indi only calculates on the close of the bar, the H4 reading should be repeated 3 times

so you have 4 times the same H4 observations for every H1 observation in that same time period (4 hours). Offcourse this is true for any timeframe.

Has anyone worked around this or do I have to reinvent the wheel here?

Some feedback (Rosh?) would be helpfull, thank you.