To the best of my understanding, order_target_percent should set a holding of particular security to a given target, say 50% of portfolio in AAPL. That being said, I created a simplest of algorithms that holds one security, SVXY in this case, at 50% of the portfolio value, rebalancing that 50% every day. When backtested, the algorithm trades like mad, into trillions of dollars of nonsensical trades, instead of rebalancing it swings the portfolio by millions a day.
Am I missing something here, or is the order_target_percent() implementation to blame?