You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 584 of simulated_broker.py (in _execute_order()), there is a comment about scaling down the order if there isn't available cash. However, a few lines later scaled_quantity is set to just order.quantity. Is it desired that the scaling actually happen? I'm definitely seeing a negative cash balance commonly when running simulations, which makes sense since orders may be placed well before they're actually filled.
The text was updated successfully, but these errors were encountered:
On line 584 of simulated_broker.py (in _execute_order()), there is a comment about scaling down the order if there isn't available cash. However, a few lines later scaled_quantity is set to just order.quantity. Is it desired that the scaling actually happen? I'm definitely seeing a negative cash balance commonly when running simulations, which makes sense since orders may be placed well before they're actually filled.
The text was updated successfully, but these errors were encountered: