Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 7 of 8 1 2 3 4 5 6 7 8
Re: Yahoo has changed their protocol [Re: konorti] #466659
06/26/17 17:15
06/26/17 17:15
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
iF I use Yahoo (SP500 DAILY DATA) in my backtest, I obtain these résultats :


strategy compiling..........
Test: strategy ^GSPC 2008..2018
Monte Carlo Analysis... Median AR 9%
Profit 4651$ MI 67$ DD 672$ Capital 841$
Trades 746 Win 76.8% Avg +757.5p Bars 2
AR 9% PF 2.58 SR 1.07 UI 3% R2 0.98
Chart... ok
Copied to Clipboard!


If I use fxcm data (sp500 daily data ) , I obtain these results

strategy compiling...........

Test: strategy SPX500 2008..2018
Monte Carlo Analysis... Median AR 42%
Profit 1850$ MI 25$ DD 694$ Capital 592$
Trades 620 Win 70.8% Avg +34.3p Bars 3
AR 50% PF 1.51 SR 0.51 UI 10% R2 0.87



It's clear that there a difference. In fact, I use open, high low and close data from Yahoo to do my backtest. These data are different from fxcm. That's why, I want use daily data for live trading in daily mode

Re: Yahoo has changed their protocol [Re: stephane97490] #466733
06/29/17 20:38
06/29/17 20:38
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Did you see any clear difference in trades in file: Logtesttrades.csv?
I would test it also visually during only last months (to see trades on bars) what is difference between them.
And maybe checking the history with file ZHistoryEditor.exe and trades from log file...

Re: Yahoo has changed their protocol [Re: konorti] #466734
06/29/17 20:51
06/29/17 20:51
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
I haven't check the history but i think that the difference of performance is possibly caused by the nature of data, specially the high , low and close, and orders are not executed at the same moment,

Re: Yahoo has changed their protocol [Re: stephane97490] #466735
06/29/17 21:13
06/29/17 21:13
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Did you enter into AssetsFix.csv the line:
^GSPC,50,0.1,0,0,0.01,0.01,0,2,1,0.02,

Re: Yahoo has changed their protocol [Re: konorti] #466750
06/30/17 15:56
06/30/17 15:56
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
I've changed like your recommandation : it returns
Error 053: ^GSPC unavailable at this time
Load NAS100 prices.. 5100 h0.00 0.00 0.00

Trade: model2 2017-06-30
Lookback period (145 bars)
Error 030: asset ^GSPC missing in INITRUN
Error 011: Function KAMA called with invalid parameters (no price)
Error 011: Function EMA called with invalid parameters (no price)



the script is :

function run()
{
NumYears=15;
StartDate = 20100101;
EndDate = 20171231;
BarPeriod = 60*24;
LookBack = 145;
set(PRELOAD);


//asset("^GSPC");
//if(is(INITRUN))
assetHistory("^GSPC",FROM_AV);
asset("^GSPC");
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));
/////////////////////////////////
vars slowema = series(EMA(Price,80));
asset("NAS100");
if(fastema[0]>slowema[0])
{
enterLong();
}
if(fastema[0]<slowema[0])
{
exitLong();
}

printf("%.2f ",zerolag[0]);
printf("%.2f ",fastema[0]);
printf("%.2f ",slowema[0]);
}

Re: Yahoo has changed their protocol [Re: stephane97490] #466757
06/30/17 18:05
06/30/17 18:05
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Next week i will try to replicate your code to google history as i dont have zorro paid version to access AV history to see what is the problem.

Re: Yahoo has changed their protocol [Re: konorti] #466826
07/04/17 07:16
07/04/17 07:16
Joined: Jul 2016
Posts: 27
K
konorti Offline
Newbie
konorti  Offline
Newbie
K

Joined: Jul 2016
Posts: 27
Sorry I tried, it is the same problem for me. There is a way I think to import csv as data, and use as data and not as price history. I havent done that so I cant help.

Re: Yahoo has changed their protocol [Re: konorti] #466827
07/04/17 08:36
07/04/17 08:36
Joined: Jan 2017
Posts: 64
J
Jeff1228 Offline
Junior Member
Jeff1228  Offline
Junior Member
J

Joined: Jan 2017
Posts: 64
I have been using AV for a while, I found the latest data (EOD) I could download from AV has been the data 2 trading days ago, not like other sites just a few hours after the trading hour is over I can get the latest EOD data. Has anyne found the same? What's wrong here?

Thank you

Re: Yahoo has changed their protocol [Re: konorti] #466894
07/06/17 09:16
07/06/17 09:16
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
thanks

Re: Yahoo has changed their protocol [Re: Jeff1228] #466895
07/06/17 09:17
07/06/17 09:17
Joined: Jun 2016
Posts: 30
france
S
stephane97490 Offline
Newbie
stephane97490  Offline
Newbie
S

Joined: Jun 2016
Posts: 30
france
I've noticed that AV depends on yahoo data, so when yahoo isn't working, AV doesn't deliver or updates their data

Page 7 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