sma image

This commit is contained in:
Camilo1704
2020-02-07 11:35:14 -03:00
parent 8954b6c65a
commit 4d88d201f9
@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 18,
"metadata": {
"scrolled": true
},
@@ -20,7 +20,7 @@
"DataTransformerRegistry.enable('default')"
]
},
"execution_count": 12,
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
@@ -37,13 +37,13 @@
"import pandas_datareader as pdr\n",
"import datetime\n",
"\n",
"\n",
"#alt.renderers.enable('jpg')\n",
"alt.data_transformers.disable_max_rows()"
]
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
@@ -53,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
@@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
@@ -78,7 +78,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
@@ -90,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 6,
"metadata": {
"scrolled": true
},
@@ -102,7 +102,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 7,
"metadata": {
"scrolled": true
},
@@ -113,7 +113,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 8,
"metadata": {
"scrolled": true
},
@@ -121,10 +121,10 @@
{
"data": {
"text/plain": [
"<asset_backtester.portfolio.portfolio.Portfolio at 0x12fda59d0>"
"<asset_backtester.portfolio.portfolio.Portfolio at 0x13a325310>"
]
},
"execution_count": 19,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
@@ -140,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 9,
"metadata": {
"scrolled": true
},
@@ -162,7 +162,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 10,
"metadata": {
"scrolled": true
},
@@ -172,7 +172,7 @@
"output_type": "stream",
"text": [
"0% [██████████████████████████████] 100% | ETA: 00:00:00\n",
"Total time elapsed: 00:00:47\n"
"Total time elapsed: 00:00:43\n"
]
},
{
@@ -727,7 +727,7 @@
"[2517 rows x 5 columns]"
]
},
"execution_count": 21,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
@@ -746,7 +746,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 19,
"metadata": {
"scrolled": true
},
@@ -755,10 +755,10 @@
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-adca463d506944e6944cda62c41bbf39\"></div>\n",
"<div id=\"altair-viz-13fc370fb27c42d79b50d11b8f2bafd2\"></div>\n",
"<script type=\"text/javascript\">\n",
" (function(spec, embedOpt){\n",
" const outputDiv = document.getElementById(\"altair-viz-adca463d506944e6944cda62c41bbf39\");\n",
" const outputDiv = document.getElementById(\"altair-viz-13fc370fb27c42d79b50d11b8f2bafd2\");\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
@@ -806,7 +806,7 @@
"alt.LayerChart(...)"
]
},
"execution_count": 22,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
@@ -824,17 +824,17 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-7870ab070d074673a35314aaa5f8c3ab\"></div>\n",
"<div id=\"altair-viz-86fc1bb9c7c8470a95420bd9e90c48b8\"></div>\n",
"<script type=\"text/javascript\">\n",
" (function(spec, embedOpt){\n",
" const outputDiv = document.getElementById(\"altair-viz-7870ab070d074673a35314aaa5f8c3ab\");\n",
" const outputDiv = document.getElementById(\"altair-viz-86fc1bb9c7c8470a95420bd9e90c48b8\");\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
@@ -882,7 +882,7 @@
"alt.VConcatChart(...)"
]
},
"execution_count": 23,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
@@ -900,10 +900,8 @@
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {
"scrolled": false
},
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
@@ -1010,7 +1008,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 14,
"metadata": {
"scrolled": true
},
@@ -1020,7 +1018,7 @@
"output_type": "stream",
"text": [
"0% [██████████████████████████████] 100% | ETA: 00:00:00\n",
"Total time elapsed: 00:00:43\n"
"Total time elapsed: 00:00:45\n"
]
},
{
@@ -1575,7 +1573,7 @@
"[2517 rows x 5 columns]"
]
},
"execution_count": 25,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
@@ -1593,17 +1591,17 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 15,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-a40ab6bc1fed496384c5aa6c58d6a754\"></div>\n",
"<div id=\"altair-viz-f55371a8d77a40339d4beb9e2636908e\"></div>\n",
"<script type=\"text/javascript\">\n",
" (function(spec, embedOpt){\n",
" const outputDiv = document.getElementById(\"altair-viz-a40ab6bc1fed496384c5aa6c58d6a754\");\n",
" const outputDiv = document.getElementById(\"altair-viz-f55371a8d77a40339d4beb9e2636908e\");\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
@@ -1651,7 +1649,7 @@
"alt.VConcatChart(...)"
]
},
"execution_count": 26,
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
@@ -1669,10 +1667,8 @@
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {
"scrolled": false
},
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
@@ -1798,5 +1794,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}