Issue with StaticVarSet , StaticVarGet

Hi all,

I tried to use StaticVarSet, however, seems like it didn't carry over the proper value to the next bar. I tried to debug it by exploring and this is the result :

From my understanding, after I do the StaticVarSet, it has to remember to value and when I call StaticValueGet in the next day(bar), it must use the saved data from previous day but it's not what I thought.

Or I understand this wrongly?

Thanks in advance for any feedback!

It would be much easier for us to identify your error if you posted your code.

No worry, I think I understood it wrongly since the first place. AFL didn't work the way I thought.