There isn't anything incorrect.
difference in data when i plot normAL INBUILD RSI DAily and coded rsi daily
You simply missed to read about existing expansion modes of function TimeFrameExpand() (3rd function argument). Default mode is expandLast
. But it is not the only one (since there are three ones).
Did you read about it?
Now if you replace expandLast
by ... then....
BTW, apparently you have not read this pinned mandatory thread. And if you are finished with that one then please also read this important one. And since all good things come in threes.