Hi, I'm fairly new to QuantConnect's algo lab but it looks preferable to MQL5/metatrader. So my question is, how am i supposed to write a GA using this platform when it does not appear to support such an idea. Am I going to have to create 'pseudo' trades and flag them instead of actually placing the trades? For example, if I create a population of 100 individuals which each possess different values (when to enter/exit based on the value of certain parameters), how is this going to work if Oanda, for example, won't let you properly hedge? If one individual decides to buy the EUR/USD and at the same time another individual decides to sell the EUR/USD...this is going to mess everything up because Oanda will just liquidate the original trade, which means I would never be able to score the fitness.
Gurumeher Sawhney
You will need to manually track positions to fully hedge positions as QuantConnect aggregates the whole portfolio so its an average of your past trades.
It might be worth looking into QuantConnect's Algorithm Framework as opposed to a classic algorithm, whose modular framework allows for the creation of multiple alphas within one algorithm. The alpha model provides insights, or a single prediction for an asset. These can be thought of as actionable trading signals; indicating the asset direction, magnitude, and confidence in the near future. When backtesting the direction and magnitude accuracy of the predictions will be tested as well. Multiple alphas can be added into the framework using the Composite Alpha model, which helps pass all the emitted insights through a Portfolio Construction model. If properly implemented it is possible to create a GA using this framework.
Garret Fields
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!