In live trading I've observed a difference in the reported context.portfolio.portfolio_value and context.account.equity_with_loan. I believe at least in theory these should be the same.
2016-08-04 14:54 log_account_balance:136 INFO EquityWithLoanValue:1224**178**.68 PortfolioValue:1224**262**.485
2016-08-04 14:56 SYSTEM INFO (IB) Updating cash in minute performance tracker from 915179.448323 to 915167.42
2016-08-04 14:56 log_account_balance:136 INFO EquityWithLoanValue:1223**485**.3 PortfolioValue:1223**638**.215
As best I can tell zipline uses portfolio_value in calculations for order_target_percent. Perhaps it would be more appropriate to use equity_with_loan for calculations or sync portfolio value to equity_with_loan when doing live trading.