Code to square off position intraday?

All the algo in PI backtest the position in positional way I want to if there is any code to square off position daily so I could backtest my system on intraday basis.

Thanks and regards

there is no function in tradescript language to square off position on intraday bases to use it in backtest.

1 Like