Back

Default forex margin requirements/ leverage/ size?

I see something changed as I'm started to get margin calls for relatively low sizes. When testing periods on which those m.calls occur ed, everything is going smoothly.
Update Backtest








Forex securities default to a leverage of 50x. Leverage can be set for each security using the following:
Securities["EURUSD"].SetLeverage(5.0m);
Also, the margin model used can be overridden using:
Securities["EURUSD"].MarginModel = new MyMarginModel();
Where MyMarginModel derives from SecurityMarginModel or ISecurityMarginModel.

Also, margin calls will be issued based on the Portfolio.MarginRemaining value.
0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


This margin-call update makes QC more realistic than ever to how popular brokerages calculate and issue margin orders. If you have large leveraged holdings positions (in dollar terms), and the market moves against you, most brokerages will liquidate a fraction of your holdings to cover the loss even if you have plenty of capital in the account.
0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Clear. MarginRemaining shows everything.
1

Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed