Skip to content

Commit

Permalink
bugfix AIExample, unfortunately, close of today has been used to calc…
Browse files Browse the repository at this point in the history
…ulate, so we cannot earn return of today
  • Loading branch information
Liming Xie committed May 23, 2021
1 parent 0b2d02f commit e2708e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/AIExample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@
}
],
"source": [
"asset[\"ACTRET_1\"] = trendy.TS_Trends * asset.PCTRET_1\n",
"asset[\"ACTRET_1\"] = trendy.TS_Trends.shift(1) * asset.PCTRET_1\n",
"asset[[\"PCTRET_1\", \"ACTRET_1\"]].plot(figsize=(16, 3), color=colors(\"GyOr\"), alpha=1, grid=True).axhline(0, color=\"black\")"
]
},
Expand Down

0 comments on commit e2708e5

Please sign in to comment.