ext_gspc_hist = GetHistory(bars,"^GSPC")
gspc_sma_ = SMA.Series(ext_gspc_hist.Close,60)
Throws the above error.
The strategy settings are for all data avaiable and GSPC is from 1927 (although OHLC data is availbale from later)
I am running on the Yahoo - Nasdaq dataset which is 4192 symbols.
It plots (PlotHistory(ext_gspc_hist,"GSPC")) fine so I assume the program is picking up the data correctly.
I don't understand why I am getting the error when I run the backtest.
Thank you in advance for any help.
gspc_sma_ = SMA.Series(ext_gspc_hist.Close,60)
CODE:
if (ext_gspc_hist.Close[idx] > gspc_sma_[idx]) { b_mkt_cond_1_bool = 1; }
Throws the above error.
The strategy settings are for all data avaiable and GSPC is from 1927 (although OHLC data is availbale from later)
I am running on the Yahoo - Nasdaq dataset which is 4192 symbols.
It plots (PlotHistory(ext_gspc_hist,"GSPC")) fine so I assume the program is picking up the data correctly.
I don't understand why I am getting the error when I run the backtest.
Thank you in advance for any help.
Rename
Can you post the entire code with the line of the runtime error?
Working on adapting code so as to not share all of it. I am not ignoring your request. Each change for me in C# is like passing a kidney stone.
I know you all are not python people but ..........
I know you all are not python people but ..........
QUOTE:Bad assumption. There's no mystery. You can't run 4000 symbols in Yahoo! anymore, not 500, and maybe not even 100. Yahoo! just doesn't support tons of requests like it used to. \
I assume the program is picking up the data
Eugene, we need to work in a rate limiter for Yahoo! - if we can find a sweet spot that works. I'm not an expert on Y!, but this might help get started -
https://developer.yahooinc.com/dsp/api/docs/traffic/info/rate-limits.html
QUOTE:
Working on adapting code so as to not share all of it. I am not ignoring your request.
On second thought, I guess we can skip this step for now. Thanks.
QUOTE:
I don't understand why I am getting the error when I run the backtest.
It's simple. Because the external system does not have the data (like ^GSPC going back to 1927) or, as Cone just suggested, Yahoo is playing dirty tricks on you.
To test and trade large EOD DataSets over 500 symbols, historical watchlists, troublefree and automatic updates, there's no better provider than Norgate Data. https://wealth-lab.com/extension/detail/Norgate
I don't understand something. If I have downloaded the historical yahoo prices.? It turns out I cannot actually use the data?
Does wealthlab itself provide a 4000 + ticker dataset?
Thank you
Does wealthlab itself provide a 4000 + ticker dataset?
Thank you
Sure you can if you've downloaded all the data. The problem is that even if you finally manage to download all those symbols from Yahoo!, you won't be able update them all. Y! will cut you off. That's the reality in 2023 and last year too. And, when WealthLab can't get an update, it starts looking for the update in your list of checked providers. If it can't get the data there, then you're out of luck.
By "wealthlab pro" subscription, I guess you meant "Premium" subscription. Sure you can have a million symbol DataSet if you want... but you're not going to get the data from Y! in 2023.
By "wealthlab pro" subscription, I guess you meant "Premium" subscription. Sure you can have a million symbol DataSet if you want... but you're not going to get the data from Y! in 2023.
Your Response
Post
Edit Post
Login is required