Hi Christian,
While I haven't worked a lot with limit orders myself (mainly using insight's to do buying and selling), I did look into it and your algorithm a bit and found this documentation;
Then I implemented that into your algo but it still was not working, saw an error message in the log
“Backtest Handled Error: Order Error: id: 968, Insufficient buying power to complete order (Value:-10), Reason: Your portfolio holds 210 DAI, 210 DAI of which are reserved for open orders, but your Sell order is for 10 DAI. Cash Modeling trading does not permit short holdings so ensure you only sell what you have, including any additional open orders.”
I'm not sure what is meant by "reserved for open orders" but it did give me the idea that you need to enable margin trading for it to work,
so I found this on how to enable margin trading for crypto;
I then went into your code and made all the appropriate changes and it seems to be doing what it is supposed to, buying and selling at exactly 1$ price.
I've attached my backtest and code below, let me know if that solved your problem or if you need additional help, thanks!