↑↓ to select, press enter to go, use esc to exit
  • Pricing
  • Strategy Explorer Strategies Strategies
  • Research
  • Data
  • Algorithm Lab Lab Lab
  • Documentation Docs Docs
  • Sign In
Forum
    Platform
  • Pricing
  • Datasets
  • Research
  • Datasets
  • Algorithm Lab
  • Documentation

    SIGN IN

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

  • Sign up for Free
 

back arrow

QUANTCONNECT COMMUNITY

 
Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

OPEN LEAGUE PRO LEAGUE
No Results
  • «
  • 1
  • »
LEAN Logo

Radically Open-Source Algorithmic Trading Engine

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

Join Our Discord Channel

Join QuantConnect's Discord server for real-time support, where a vibrant community of traders and developers awaits to help you with any of your QuantConnect needs.

This research is under review. To publish this research attract three community upvotes.


Draft Discussions




Bookmarked Discussions


Loading...
  • «
  • »
 Share New Research

Refer to our Research Guidelines for high quality research posts.

 Start New Discussion Sign up

SEARCH DISCUSSIONS


TOP 5 Research Publications

-


391,400 Quants.
Become a Quant

Online Now

Code of Conduct

VOTE FOR UPCOMING FEATURES

Share your input and vote on our future direction.

LEAN Roadmap

Create an account on QuantConnect for the latest delivered to your inbox.

Sign Up Today
profile

Answers

Answers

  Backtests

Backtests

  Comments

Comments

  Live Traded

Live Traded

 

 

 

Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

This research is under review. To publish this research attract three community upvotes.
This discussion is a draft. Click here to publish this discusison.

Documentation discussion research/historical-data


Update Backtest





person upvoted this people upvoted this

QuantConnect Robot

 |  | accepted answerAccepted Answer
Permalink
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.

Twitter Facebook LinkedIn Copy Link

Lexx7


1.3k Pro ,

I tried the below code and it ran successfully but returned an empty dataframe.

Can you please check this still works

es = qb.AddFuture("ES") es.SetFilter(timedelta(0), timedelta(180)) future_history = qb.GetFutureHistory(es.Symbol, datetime(2017, 1, 11, 10, 10), datetime(2017, 1, 13, 12, 10)) future_history.GetAllData()

 


Jack Simonson


49.4k Pro ,

Hi,

We've just done an overhaul of our futures data and will have the Research Environment updated soon. Once this is done, this code should work fine, but if you continue to encounter issues with it in the next week, please let us know and we'll do our best to find a solution.


Ch9ki7


9 Pro ,

I want to evaluate some ideas on options. But I need the greeks, looks like we can not get them through `option_history.GetAllData()`. How can we get the greeks and IV?


Link Liang


6.1k Pro ,

Hi Ch9ki7,

In research environment, there is no direct access to those values, therefore you have to calculate on your own. However, we offer those values in backtesting terminal. Here is the usage of option data. Greeks and IV can be accessed as properties of OptionContract object.

Hope it helps!


Brian Weber


1.1k Pro ,

Hi Jack,

I tried the example code for retrieving historical futures data, but when I get all the data nothing prints. Is there a bug for historical futures data?

Thanks,

Brian


  • Notebook

Link Liang


6.1k Pro ,

Hi Brian,

Sorry about the inconvenience, we are aware of the bug and are working on addressing it for the community. Due to the current work in progress, we expect this will be resolved in about 1 week.


Brian Weber


1.1k Pro ,

Thank you, Link! No worries I check back in about a week to try the code again.


Islander


1.6k Pro ,
%matplotlib inline # Imports from clr import AddReference AddReference("System") AddReference("QuantConnect.Common") AddReference("QuantConnect.Jupyter") AddReference("QuantConnect.Indicators") from System import * from QuantConnect import * from QuantConnect.Data.Custom import * from QuantConnect.Data.Market import TradeBar, QuoteBar from QuantConnect.Jupyter import * from QuantConnect.Indicators import * from datetime import datetime, timedelta import matplotlib.pyplot as plt import pandas as pd # Create an instance qb = QuantBook() # Select asset data assets = ["SPY", "EURUSD", "BTCUSD", "GOOG", "ES", "XAUUSD"] spy = qb.AddEquity("SPY") # add equity data eur = qb.AddForex("EURUSD") # add forex data btc = qb.AddCrypto("BTCUSD") # add crypto data goog = qb.AddOption("GOOG") # add goog options es = qb.AddFuture("ES") # add SP 500 futures xau = qb.AddCfd("XAUUSD", Resolution.Minute, Market.Oanda) # Gets historical data from the subscribed assets, the last 360 datapoints with daily resolution h1 = qb.History(qb.Securities.Keys, 360, Resolution.Daily) # Plot closing prices from "SPY" for s in assets: h1.loc[s]["close"].plot()

fails with error:

the label [GOOG] is not in the [index]

but I suppose that if I use SPY and XAUUSD only it fails as well.

Why is this happening?


Hao Bin Zhang


1.4k Pro ,

Islander I think it has to do with this line

h1 = qb.History(qb.Securities.Keys, 360, Resolution.Daily) 

I don't believe the research can handle that much data currently. 


Jared Broad


STAFF Pro ,

We're rebuilding research from scratch. It should be available by the end of next week.

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.


Omegab


126 Pro ,

Hi Jared, is it possible to have Extended Market Stock data in the Research Environment as I tried to pass it to bo AddEquity and History functions to no avail?


Xin Wei


10.6k Pro ,

Hi Omegab,

Extended market hours data is available in the research environment. I've attached a Research Notebook to show how to implement it. Please check it out.


  • Notebook

Jack Simonson


49.4k Pro ,

Hi Mike,

This is a result of how we aggregate and timestamp daily data. It is timestamped at UTC 00:00 the day after it has happened -- i.e., all data from 2019-11-15 is aggregated and we create a Daily OHLCV with the timestamp 2019-11-16 00:00.


QuantConnect Robot INVESTOR

 | 
Permalink
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.

Reply
person upvoted this people upvoted this
|
person upvoted this people upvoted this
Profile Image
Loading...
  • 1
Load More

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!


Allocate to this Strategy

Institutional clients can contact the author and allocate capital to this strategy.

Learn More
Organization

Organization Website

Team

Show More
Clone Strategy

Copy this strategy code to your QuantConnect account and deploy it live with your brokerage.

Clone
Previous Ranking

Browse strategies and organization entries from previous quarter's competitions.


Author:


IN THIS RESEARCH

PARTICIPANTS

Discussion Awards

SHARE RESEARCH
SHARE DISCUSSION
SHARE ARTICLE
SHARE


Actions
View in Strategy Explorer Award Discussion
Print Research
Comments
award-icon

What is an Award?

Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

 
 

Join QuantConnect for Free

QuantConnect Logo

QuantConnect™ 2025. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Research
  • Build vs. Buy
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Settings
  • Discussions List

Company

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

LEAN

  • Fork 4,000
  • Star 12,000
QuantConnect Logo

QuantConnect™ 2025. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Research
  • Build vs. Buy
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Settings
  • Discussions List

Company

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

LEAN

  • Fork 4,000
  • Star 12,000