Great! Could you post a workaround (i.e. exactly where in the strategy this improper table handling happens and how to do it properly) so I can avoid the problem in the meantime?
I saw the potential for an infinite loop (or at least undefined behaviour) by iterating the trades table and modifying it (closing one and opening a new one in the opposite direction) at the same time, so I changed it to loop through the trades first and only exit/enter afterwards, but the problem is still there so I either did it wrong or the problem was in a different part. The trouble is, that seems to be the only loop in the Logarithmic regression strategy, and there seem to be none in the indicator?
Thanks for looking into this