In my strategy, I have a time-based exits (e.g. “if within X days not reached profit target - close position”). In order to achieve that (and survive algorithm restarts), I was using Object Store: for every created position I wrote into Object Store time it created, and later I was reading that time and making required calculations.

Recently I discovered Object Store is not reliable, many time fetching stale data (like, hours stale). Storing state in variables in memory is not an option since that will not survive algorithm restart. 

I looking for alternative way to know time at which position created.