Hi,
There seems to be a problem that when one is in futures mode, as apposed to equity mode, that other routines such as rebalance can be executed before before_trading_start. This causes bugs when the user sets values in before_trading_start to be used by other routines.
Another user noticed this as well, but no one replied to his post.