The transaction details seem fine. It represents how your trading logic plays out.
First, looking at the "Daily Positions and Gains" tab it shows you are indeed always "100%" invested in either VTI or TLT (or cash at the beginning). There will typically also be a little cash or, in the case of a leveraged portfolio, "buying power" in the portfolio because you cannot purchase fractional shares. If VTI, for example is selling for $83/share and you have $900 in your account, then you could purchase 10 share for $830. There would then be $830 in VTI and $70 in cash (there would be transaction costs deducted too which I'll ignore). So, while you can say you're "100%" invested in VTI, there is actually a little bit of cash there too.
Also keep in mind that the backtest automatically adds any dividends that are realized by your holdings to your account in the form of cash. Not sure if that shows up in this specific case but that will increase ones buying power.
This "rounding" (and potentially dividends) is what's causing the weekly buy and sell of a few shares which you see in the "Transaction Details" tab. If the price of VTI fell below $70 in the above example, then there would be enough cash to by one share, so that is what the algorithm does.
If you aren't using leverage you will typically only ever buy shares as the share price goes down (unless you get a dividend to increase cash). However, if you are using leverage (which this algorithm does) then there is the potential for selling shares too. This happens as the algorithm tries to maintain the leverage at a fixed value (in this case 2). Maybe think of it as a self imposed margin call. Change the leverage to 1 and you will see significantly less of the buy/sell behavior.
The real culprit is the "order_target_percent(xxx, 1)" method. Each week it will ensure you are "100%" invested even if it means buying or selling just a few shares.
In real trading you would probably want to add code to avoid this behavior. Transaction costs would make buying and selling anything below a minimum threshold unprofitable.
Make sense?