Skip to content

Instantly share code, notes, and snippets.

@junajan
Last active December 30, 2016 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junajan/32f63ccdd2a3177a2348d6eca272cbb6 to your computer and use it in GitHub Desktop.
Save junajan/32f63ccdd2a3177a2348d6eca272cbb6 to your computer and use it in GitHub Desktop.
=== DAX version ===
Reading DAX history data from 1998-11-02 to 2016-12-30
INIT CAPITAL: 20000
02.11.1998: BUY 4x DAX for price 4761.149902
02.05.2000: SELL 4x DAX for price 7555.919922 (profit 11179.08008 = 55.9%)
11.01.2001: BUY 4x DAX for price 6465.209961
02.05.2002: SELL 4x DAX for price 4964.560059 (profit -6002.599607999997 = -19.25%)
01.11.2002: BUY 7x DAX for price 3165.159912
02.05.2003: SELL 7x DAX for price 2986.00 (profit -1254.1193840000014 = -4.98%)
01.12.2003: BUY 6x DAX for price 3821.199951
07.01.2004: SELL 6x DAX for price 4004.399902 (profit 1099.1997059999994 = 4.59%)
12.01.2004: BUY 6x DAX for price 3995.909912
02.05.2005: SELL 6x DAX for price 4224.02002 (profit 1368.6606479999973 = 5.47%)
01.07.2005: BUY 5x DAX for price 4617.069824
02.05.2006: SELL 5x DAX for price 6051.290039 (profit 7171.101075000002 = 27.17%)
03.11.2008: BUY 6x DAX for price 5026.839844
03.05.2010: SELL 6x DAX for price 6166.919922 (profit 6840.480468000002 = 20.38%)
01.11.2010: BUY 6x DAX for price 6604.859863
02.05.2011: SELL 6x DAX for price 7527.640137 (profit 5536.681643999997 = 13.7%)
03.01.2012: BUY 7x DAX for price 6166.569824
05.01.2016: SELL 7x DAX for price 10310.099609 (profit 29004.708495000013 = 63.14%)
07.01.2016: BUY 7x DAX for price 9979.849609
29.12.2016: SELL 7x DAX for price 11451.049805 (profit 10298.401371999993 = 13.74%)
29.12.2016: END CAPITAL: 85241.59
=== DAX ETF EWG version ===
Reading EWG history data from 1998-11-02 to 2016-12-30
INIT CAPITAL: 20000
02.11.1998: BUY 1454x EWG for price 13.753654
02.05.2000: SELL 1454x EWG for price 16.291348 (profit 3689.807076000001 = 18.45%)
11.01.2001: BUY 1621x EWG for price 14.612324
02.05.2002: SELL 1621x EWG for price 10.96239 (profit -5916.543013999999 = -24.98%)
01.11.2002: BUY 2255x EWG for price 7.881311
02.05.2003: SELL 2255x EWG for price 8.245962 (profit 822.2880049999985 = 4.63%)
01.12.2003: BUY 1636x EWG for price 11.363614
07.01.2004: SELL 1636x EWG for price 12.58553 (profit 1999.0545760000023 = 10.75%)
12.01.2004: BUY 1627x EWG for price 12.654178
02.05.2005: SELL 1627x EWG for price 13.366339 (profit 1158.6859470000018 = 5.63%)
01.07.2005: BUY 1597x EWG for price 13.613007
02.05.2006: SELL 1597x EWG for price 18.939223 (profit 8505.966951999999 = 39.1%)
03.11.2008: BUY 2009x EWG for price 15.059415
03.05.2010: SELL 2009x EWG for price 18.548977 (profit 7010.530058 = 23.17%)
01.11.2010: BUY 1796x EWG for price 20.741549
02.05.2011: SELL 1796x EWG for price 25.143657 (profit 7906.185967999998 = 21.21%)
03.01.2012: BUY 2507x EWG for price 18.013177
05.01.2016: SELL 2507x EWG for price 24.708496 (profit 16785.164733000005 = 37.16%)
07.01.2016: BUY 2588x EWG for price 23.937576
29.12.2016: SELL 2588x EWG for price 26.34 (profit 6217.473312000002 = 10.03%)
29.12.2016: END CAPITAL: 68178.61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment