如何编写求100个单位内最大和最小持仓量?

如何编写求100个单位内最大和最小持仓量?

单位是什么? 如果是bar 那就highest(openint,100)和lowest(openint,100) 持仓量会上下变化 建议取回溯固定