Hello,
I'm new here now I'm learning and beginning from the basics.
My trading account is in Interactive Brokers and I want to start using the QC platform with multiple live algorithms.
- What is the best way to do it if I'm using more than one algorithm? I don't want the portfolios of multiple algorithms to “mix” together in one trading account.
- How can I limit each algorithm to use only part of the available cash in my trading account? For example I have 10$ in my trading account and I want to use two different algorithms, each with 4$ cash and to keep 2$ unused in my account.
Thanks
Fred Painchaud
Hi Nevo,
Fred
AK M
Hey Nevo, what Fred said is true.
Interactive brokers might help you, however. I think it is easy to create subaccounts in IB with unique account numbers that you can deploy your algorithms to. If you do decide to compromise and use one account, the alpha framework actually allows you to add multiple alphas together into one super alpha, and you can pass in the weights you desire manually if you set your alpha model to consume arguments that way.
Ex:
I had a similar dilemma and ending up using a single account. There are actually benefits to using a single account instead of separate accounts for each algorithm you have.
Ex:
You have 3 different accounts that you have unique alphas deployed to. In 1 year, each account makes 2 trades that double the balance. So pretending the starting value for each account was X, the starting value for all accounts was 3X and the ending value is (2 x 2 x X) x 3 = 12X. But if you had everything in a single account, your starting capital is 3X, but in the same account, you make 6 trades that each double the balance, so your ending balance is 3X x 2 x 2 x 2 x 2 x 2 x 2 = 192X. An extreme example, but the same thing applies if your returns are 15%, 30%, etc.
There are some other assumptions there too, like maybe that's now how your alpha works, but hopefully this example can inform your decision.
Vladimir
Nevo Raz
-> What is the best way to do it if I'm using more than one algorithm?
The best way to do it is to create a composite algorithm that combine several strategies.
Attached “RSI and Ema Cross Composite Alpha Model” is a QCAlgorithmFramework that combines the built-in QC RsiAlphaModel and EmaCrossAlphaModel.
If you are satisfied with my answer, please accept it.
Nevo Raz
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!