The value of Close changes depending on Session end time, when I use my new indicator in a strategy.
If I set the Session end time to the actual end time of the index, the return value is fine.
But when I set the Session end time to the time where I want to stop trading that index, I get the high value reached by that timestamp. That of course is a different value.
Comment