Hi All,
In my statergy i want to avoid the high priority events, is there anyway to do it? Like reading forexfactory calender ?
thanks
QUANTCONNECT COMMUNITY
Hi All,
In my statergy i want to avoid the high priority events, is there anyway to do it? Like reading forexfactory calender ?
thanks
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.
Mia Alissi
To avoid high-priority economic events in your trading strategy on QuantConnect, you can utilize the
TradingEconomicsCalendar
class, which provides access to a wide range of economic events. Here's a step-by-step guide to help you implement this:Initialize the Trading Economics Calendar: You need to set up a custom data subscription to receive updates on economic events.
Filter High-Priority Events: Use the properties of the
TradingEconomicsCalendar
class to identify and filter high-priority events. You can focus on specific categories or countries that are relevant to your strategy.Schedule Events: Use QuantConnect's Scheduled Events feature to trigger actions at specific times, such as pausing trading during high-priority events.
Implement Logic to Avoid Trading: In the
OnData
method, check the current time against the schedule of high-priority events and adjust your trading logic accordingly.Here's a basic outline of how you might set this up in your algorithm:
This example demonstrates how to set up a basic framework to avoid trading during high-priority economic events. You can customize the filtering logic based on your specific needs and the events you consider high-priority.
Sources: Scheduled Events - QuantConnect.com, Trading Calendar - QuantConnect.com, Scheduled Events Algorithm, Calendar Consolidators - QuantConnect.com, Handling Data - QuantConnect.com
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.
Keerthan kumar
is there anyway i could view this calender in any webpage?
Keerthan kumar
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!