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
Based on the description of IB, the margin requirement of equities should be based on the stock value to be purchased, not the current value of the stock.
i.e. min{current / limit price} * quantity * margin factor should be required for limit order when checking submitted order
Actual Behavior
current value of stocks * quantity * margin factor is required for limit order
I'm no longer sure this is actually a bug. I tested it in a live account on Interactive Brokers and the margin requirement was always more or less the same, no matter the limit price I entered:
I'm no longer sure this is actually a bug. I tested it in a live account on Interactive Brokers and the margin requirement was always more or less the same, no matter the limit price I entered:
Yes we found the same behavior, we were actually using entry price for margin calculation back in 2019 and we fixed it to use current asset value, take a look at the refactor which has a detailed explanation and examples #3768.
Will close the issue for now 👌
Great. I will do some more tests in the coming weeks regarding the exact margin amount between QC and IB. If I find any discrepancies, I will report them.
Expected Behavior
Based on the description of IB, the margin requirement of equities should be based on the stock value to be purchased, not the current value of the stock.
i.e.
min{current / limit price} * quantity * margin factor
should be required for limit order when checking submitted orderActual Behavior
current value of stocks * quantity * margin factor
is required for limit orderReproducing the Problem
https://www.quantconnect.com/forum/discussion/14666/limitorder-requires-margin-based-on-current-close-price-not-on-limit-price/p1
backtest: https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_4531fc381d219373d9293f0a38e43feb.html
The expected behavior was tested on IB.
System Information
NA
Checklist
master
branchThe text was updated successfully, but these errors were encountered: