I am trying to play around with some kind of market making HFT-style trading algo for futures.
And stuck on the problem, how to reset the look back period at the beginning of the trading session every day. I would be grateful for a code snippet.

Last edited by madpower2000; 01/28/23 19:33.