Stockalyze

STOCKALYZE => General Discussion => Topic started by: Tony on October 25, 2019, 10:04:00 AM

Title: Question on historical data
Post by: Tony on October 25, 2019, 10:04:00 AM
Hi Sacha.
Just a question on when historical data is downloaded.

Early on in learning Stockalyze I thought running a trading system on a list of stock symbols would download the historical data.

But now when I run a trading system, and then chart a symbol, I get the brief message "waiting for price history" then the chart is displayed.

So my question is:
How did the system run a trading system and use historical data when, by displaying a chart for a symbol, Stockalye needs to retrieve historical data?

Thanks,
Tony

Title: Re: Question on historical data
Post by: Sacha on October 25, 2019, 12:37:01 PM
QuoteEarly on in learning Stockalyze I thought running a trading system on a list of stock symbols would download the historical data.
Your understanding is right. Just that the data for only those stocks get downloaded that you used in backtesting. It's not only backtesting, anything you do like creating chart, run stock screener, backtesting, or even if you had alert set and you started Stockalyze then the price history of required stocks are downloaded. So, Stockalyze fetches data always on on-demand basis.
For creating chart there is a small optimization. If data is already present then a chart is first created with existing data, so that you get to see the chart as soon as possible and also the download of price is started in the background and chart is updated if there is new data available. If there is no data existing then only you see "waiting for price history".

QuoteBut now when I run a trading system, and then chart a symbol, I get the brief message "waiting for price history" then the chart is displayed.
Are you getting this for same symbol you used in backtesting? Was backtesting done with Eod and you are creating intraday chart or vice versa? If not then it is a bug, but I doubt it. Please confirm. If it is bug it will be solved quickly.

QuoteSo my question is:
How did the system run a trading system and use historical data when, by displaying a chart for a symbol, Stockalye needs to retrieve historical data?
I suspect either the symbol or the periodicity of backtesting and chart don't match. Please confirm.

One more thing to note is that intraday data and EoD data are separate and so both require separate downloads.
Sorry for lengthy explanation but I am putting it here for everyone's help. :)

Regards,
Sacha
Title: Re: Question on historical data
Post by: Tony on October 25, 2019, 03:57:43 PM
Thanks for the explanation.

That answers it.
It was the same symbol used in backtesting.

I am not creating an intra day chart just Eod.

I was backtesting with weekly periodicity. So does that mean only the weekly historical data is downloaded?

And my charts are daily, which is why it needs to download "daily" data to display the chart?

I don't believe it's a bug, just my ignorance.

Thanks again.
Tony
Title: Re: Question on historical data
Post by: Sacha on October 26, 2019, 12:41:46 PM
Which data-provider you had selected? If it was Yahoo and you see this problem then it can in fact be a bug. Can you give me more details please? Which stock and which data provider?
Title: Re: Question on historical data
Post by: Tony on October 29, 2019, 09:28:18 AM
Sorry for the late reply.

I am using Yahoo, but everything works as it's supposed to.

WORK was the symbol I was using at the time.

I'm a happy camper.
Thanks,
Tony
Title: Re: Question on historical data
Post by: Sacha on October 29, 2019, 12:35:42 PM
I am glad things are working as expected.
Thanks for letting me know.