If I have a really big trade in 1 direction, then goal will be small in the other direction. If I make that small trade, then I'll need another really big trade in the first direction, which may take forever. Would be useful to have a time-based algorithm to bring goal closer to 0. Might lose money on the first trade in favor of a lot more arbitrage going forward.
Once this is done, we can remove the hard lower limit of cutoff/4 for arbitrage.
If I have a really big trade in 1 direction, then
goal
will be small in the other direction. If I make that small trade, then I'll need another really big trade in the first direction, which may take forever. Would be useful to have a time-based algorithm to bringgoal
closer to 0. Might lose money on the first trade in favor of a lot more arbitrage going forward.Once this is done, we can remove the hard lower limit of
cutoff/4
for arbitrage.