↑↓ to select, press enter to go, use esc to exit
  • Pricing
  • Data
  • Community
  • Algorithm Lab Lab Lab
  • Documentation Docs Docs
  • Sign In
Forum

    Platform

  • Alpha Market
  • Pricing
  • Datasets
  • Community
  • Algorithm Lab
  • Documentation

    SIGN IN

  • Sign in
  • Don't have an account? Join QuantConnect Today

  • Sign up for Free

QuantConnect Community

trophy

trophy

Start New Discussion Sign up
Interesting | Newest | Lean | Data Issues | Integration Partners

New Sign up
No Results
  • «
  • 1
  • »
HI Interesting !
HI Newest !
HI Data Issues !

LEAN is the open source algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a global community of 80+ engineers and powers more than a dozen hedge funds today.

trophy

Alpha League Competition: $1,000 Weekly Prize Pool

Qualifying Alpha Streams Reentered Weekly Learn more

| Awards
Loading...
  • «
  • »
 Start New Discussion Sign up

Filter Discussion by Tags


Community Ambassadors

1st

Nico Xenox

Silver Ambassador

Earn free QuantConnect cloud credits by helping others, each week we airdrop credits to the most active community members.


233,181 Quants.

Become a Quant

Online Now

Our Code of Conduct

Stay Connected

Stay connected with all the latest updates with email alerts or joining our Discord server.

  Open Discord

profile

Answers

Answers

  Backtests

Backtests

  Comments

Comments

  Live Traded

Live Traded

 

 

 

Documentation discussion algorithm-framework/execution

Back

Started By:


Follow Discussion
Reward Discussion Awards
Permalink

QuantConnect Robot INVESTOR


 |   Reward Discussion
0
0
Update Backtest





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.

  0  
2
Twitter Facebook LinkedIn Copy Link

QuantConnect Robot

Permalink

 | 
accepted answer

Accepted Answer

0
Update Backtest





  • Notebook

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.

0
Twitter Facebook LinkedIn Copy Link

Ian Larson


712 Pro ,

Is it possible to use multiple execution models? Such as Standard Deviation Execution Model for anticipated weakly trending markets, and immediate execution model for anticipated strongly trending markets? Which alphas send the signals would be indicitive of market state.

1

Daniel Chen


17.8k Pro ,

Hi Ian,

Thank you for pointing out this creative question! It can be done using Custom Execution Model that combines StandardDeviationExecutionModel and ImmediateExecutionModel internally. Please let me show you one example as a reference.

In this example, it assumes that we should use some indicators to decide which Execution Model to be used. Here I will show how to link the Alpha Model and the Execution Model. I used a boolean *self.strongTrendingMarket* in the Alpha Model and passed the Alpha model to the Custom Execution Model, so the boolean was passed to the Execution Model too. In this way, you can set specific rules in Alpha Model part, and then pass the rules to Execution Model part in order to use different Execution Models at different time. Please check the Logs in the backtest to better understand this example.

To fully understand this example, I recommend you first know the code structure of ImmediateExecutionModel and StandardDeviationExecutionModel. Then, read the overview of Alpha Framework to have a better understanding of the link between Alpha Model and Execution Model. Finally, it will be easy for you to see how I combine these two Execution Models into this Custom Execution Model.

It might be a little bit challenging at first, but I believe you will figure it out. If you have any follow up questions, please feel free to contact me here. Good luck!

1


QuantConnect Robot INVESTOR

Permalink

 | 
0
Update Backtest







  • Notebook

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.

 0 
Twitter Facebook LinkedIn Copy Link
Loading...
  • 1
  • «
  • »

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!

award-icon

What is an Award?

Back
 
 

Join QuantConnect for Free Sign Up

QuantConnect Logo

QuantConnect™ 2023. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Community
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Account
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 2,786
  • Star 7,266
QuantConnect Logo

QuantConnect™ 2023. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Community
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Account
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 2,786
  • Star 7,266