%run "Retropy_framework.ipynb"
Installing requirements .. Done
l = [getYield("GHYS.L@Y"), getYield("IE00B5L65R35@JT", altPriceName="IS15@IC"), getYield("ERNS.L@Y")]
show(*l, 0, ta=False, log=False)
mode = "TR"
a = ["GHYS.L", "IE00B5L65R35@JT", "ERNS.L"]
a.append("GHYS.L:33.33|IE00B5L65R35@JT:33.33|ERNS.L:33.34")
a = [get(x, mode=mode) for x in a]
show(*a, 1, 0.8, 1.2, log=False, trim=False)
dds = [dd(x) for x in a]
show(*dds, -5, -10, -100, log=False, ta=False)
# IS15.L@AV and IS15.L@Y show a dead wrong price
# IS15@IC shows a correct price but has no dividends info
# "IE00B5L65R35@JT" has a correct TR price (divs adjusted)
# IE00B5L65R35@JT and IS15.L@Y have dividends info almost the same, and IE00B5L65R35@JT has a longers divs history
l = ["IS15.L@AV", "IS15.L@Y", "IS15@IC", "IE00B5L65R35@JT"]
v = [get(s) for s in l]
show(*v)
show(divs("IS15.L@Y"), divs("IE00B5L65R35@JT"), ta=False, log=False)
# IE00BCRY6441@JT seems to be the only one that is correct
# both Y and AV fail to account for a dividend and the start
# IC has no divs data
a = ["ERNS.L@AV", "ERNS.L@Y", "ERNS@IC", "IE00BCRY6441@JT"]
show(*a, trim=False)
show(divs("ERNS.L@Y"), divs("IE00BCRY6441@JT"), ta=False, log=False)
# all except IC seem to be correct
a = ["GHYS.L@AV", "GHYS.L@Y", "GHYS@IC", "IE00B8KQFS66@JT"]
show(*a, trim=False)
show(divs("GHYS.L@Y"), divs("IE00B8KQFS66@JT"), ta=False, log=False)
# be sure to save before you publish
# when done, you will get a public link to an HTML file with the results
publish()