mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-08-19 12:30:41 +08:00
bugfix Cum. Active Returns with cumprod
This commit is contained in:
@@ -1117,7 +1117,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"asset[[\"PCTRET_1\", \"ACTRET_1\"]].cumsum().plot(figsize=(16, 3), kind=\"area\", stacked=False, color=colors(\"GyOr\"), title=\"B&H vs. Cum. Active Returns\", alpha=.4, grid=True).axhline(0, color=\"black\")"
|
||||
"((asset[[\"PCTRET_1\", \"ACTRET_1\"]]+1).cumprod()-1).plot(figsize=(16, 3), kind=\"area\", stacked=False, color=colors(\"GyOr\"), title=\"B&H vs. Cum. Active Returns\", alpha=.4, grid=True).axhline(0, color=\"black\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user