Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 6 of 8 1 2 3 4 5 6 7 8
Re: Yahoo has changed their protocol [Re: konorti] #466546
06/20/17 12:53
06/20/17 12:53
Joined: Dec 2016
Posts: 71
F
firecrest Offline
Junior Member
firecrest  Offline
Junior Member
F

Joined: Dec 2016
Posts: 71
Originally Posted By: konorti
I downloaded beta version 1.59.4 but I cant download history with it.
It freezes in the message:

Downloading AGG..


Maybe you need to log onto IB before downloading.

Re: Yahoo has changed their protocol [Re: firecrest] #466560
06/21/17 07:30
06/21/17 07:30
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
So far we didnt need to have IB account to download from yahoo. I didnt change my fxcm login sttings and was able to download from yahoo.Did this change? Can somebody confirm? Can somebody confirm that beta version was also fixed not just normal version (i cant install normal version as my company laptop thinks it is a virus...)

Last edited by konorti; 06/21/17 07:57.
Re: Yahoo has changed their protocol [Re: konorti] #466585
06/22/17 08:28
06/22/17 08:28
Joined: Nov 2016
Posts: 66
GreenBoat Offline
Junior Member
GreenBoat  Offline
Junior Member

Joined: Nov 2016
Posts: 66
Yahoo download doesn't work anymore, that's what this thread is all about.

Re: Yahoo has changed their protocol [Re: GreenBoat] #466591
06/22/17 10:24
06/22/17 10:24
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Beta 1.59.4 had a bug with AV download. Use 1.59.5.

Re: Yahoo has changed their protocol [Re: jcl] #466600
06/22/17 13:09
06/22/17 13:09
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Thanks!
Yesterday I also wrote a code which easily downloads fromm Google, only Assets names should be enterred into the code. Enough to "test" the code. For me 1 minute was enough to download 80 assets' history:
Quote:

int download (string ass)
{
string Code = ass;
string URL = strf("http://www.google.com/finance/historical?q=%s&startdate=01-Jan-2000&output=csv",Code);
string Content = http_transfer(URL,0);

file_write("Historyhistory.csv",Content,0);
dataNew(1,0,7);
if(dataParse(1,"%d-%b-%y,f3,f1,f2,f4,f6","Historyhistory.csv"))
dataSave(1,strf("History%s.t6",Code));
}

void main()
{

while(loop( // Here you can list all assets
"AGG",
"ALFA",
"AMZA",
// ....
))
download(Loop1);


}




Last edited by konorti; 06/22/17 13:11.
Re: Yahoo has changed their protocol [Re: jcl] #466603
06/22/17 20:16
06/22/17 20:16
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
I have a question : how to download data from alpha vantage
I've tried this code but it says : {
"Error Message": "the parameter apikey is invalid or missing. Please claim your free API key on (https://www.alphavantage.co/support/#api-key).

function run()
{
NumYears=5;

assetHistory("MSFT",FROM_AV);
}

THANKS

Re: Yahoo has changed their protocol [Re: stephane97490] #466605
06/23/17 03:48
06/23/17 03:48
Joined: Dec 2016
Posts: 71
F
firecrest Offline
Junior Member
firecrest  Offline
Junior Member
F

Joined: Dec 2016
Posts: 71
Originally Posted By: stephane97490
I have a question : how to download data from alpha vantage
I've tried this code but it says : {
"Error Message": "the parameter apikey is invalid or missing. Please claim your free API key on (https://www.alphavantage.co/support/#api-key).

function run()
{
NumYears=5;

assetHistory("MSFT",FROM_AV);
}

THANKS


I think you need to apply for the key from AV and set it up in the .ini in Zorro folder.

Re: Yahoo has changed their protocol [Re: firecrest] #466606
06/23/17 10:15
06/23/17 10:15
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
THANKS for your help, it's ok for AV

Re: Yahoo has changed their protocol [Re: firecrest] #466609
06/23/17 12:13
06/23/17 12:13
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
I have an another question, for example, I've tried to use the SP500 data from Yahoo to trade on SPX500 in FXCM. It's worked in backtest but when I try to use the script in live : it says :
no asset data for ^GSPC

the script is :

function run()
{
StartDate = 20100101;
EndDate = 20171231;
BarPeriod = 60*24; // 2 hour
LookBack = 600;

set(PRELOAD|LOGFILE|PLOTNOW);
assetHistory("^GSPC",FROM_AV);
asset("^GSPC");
PlotHeight1 = 800; // height of the chart with results
PlotWidth = 2000;

/////////////////////////////////
vars Price = series(priceClose());
vars high=series(priceHigh());
vars low=series(priceLow());
vars zerolag=series(KAMA(Price,10));
vars fastema = series(EMA(Price,50));
vars slowema = series(EMA(Price,80));

asset("SPX500");
if(fastema[0]>slowema[0])
{
enterLong();

}

if(fastema[0]<slowema[0])
{
exitLong();

}


}




there is a solution to solve the problem, to use R but this solution takes more time, more memory so it's no efficient solution.
May be you have a suggestion.
Thanks

Re: Yahoo has changed their protocol [Re: stephane97490] #466638
06/24/17 19:59
06/24/17 19:59
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Sorry maybe this is a dumb question. Why not download history from FXCM?

Last edited by konorti; 06/24/17 19:59.
Page 6 of 8 1 2 3 4 5 6 7 8

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1