Fayssal El Mofatiche commited on
Commit
5ca7818
1 Parent(s): a2361c7

theme changes for qf from cf

Browse files
Files changed (1) hide show
  1. standa.ipynb +3 -3
standa.ipynb CHANGED
@@ -1030,7 +1030,7 @@
1030
  "\n",
1031
  " qf.add_macd(fast_period=macd_fast, slow_period=macd_slow, signal_period=macd_signal)\n",
1032
  "\n",
1033
- " return qf.iplot(asFigure=True)\n",
1034
  "\n",
1035
  "\n",
1036
  "def get_rsi_chart(\n",
@@ -1057,7 +1057,7 @@
1057
  " periods=rsi_periods, rsi_upper=rsi_upper, rsi_lower=rsi_lower, showbands=True\n",
1058
  " )\n",
1059
  "\n",
1060
- " return qf.iplot(asFigure=True)\n",
1061
  "\n",
1062
  "\n",
1063
  "def detect_outliers(\n",
@@ -1261,7 +1261,7 @@
1261
  " df[\"rolling_std_252\"] = df[[\"log_rtn\"]].rolling(window=252).std()\n",
1262
  " df[\"rolling_std_21\"] = df[[\"log_rtn\"]].rolling(window=21).std()\n",
1263
  "\n",
1264
- " fig, ax = plt.subplots(3, 1, figsize=(18, 15), sharex=True)\n",
1265
  "\n",
1266
  " df[\"Close\"].plot(ax=ax[0])\n",
1267
  " ax[0].set(title=\"Price time series\", ylabel=\"Price ($)\")\n",
 
1030
  "\n",
1031
  " qf.add_macd(fast_period=macd_fast, slow_period=macd_slow, signal_period=macd_signal)\n",
1032
  "\n",
1033
+ " return qf.iplot(asFigure=True, theme=\"henanigans\")\n",
1034
  "\n",
1035
  "\n",
1036
  "def get_rsi_chart(\n",
 
1057
  " periods=rsi_periods, rsi_upper=rsi_upper, rsi_lower=rsi_lower, showbands=True\n",
1058
  " )\n",
1059
  "\n",
1060
+ " return qf.iplot(asFigure=True, theme=\"henanigans\")\n",
1061
  "\n",
1062
  "\n",
1063
  "def detect_outliers(\n",
 
1261
  " df[\"rolling_std_252\"] = df[[\"log_rtn\"]].rolling(window=252).std()\n",
1262
  " df[\"rolling_std_21\"] = df[[\"log_rtn\"]].rolling(window=21).std()\n",
1263
  "\n",
1264
+ " fig, ax = plt.subplots(3, 1, sharex=True)\n",
1265
  "\n",
1266
  " df[\"Close\"].plot(ax=ax[0])\n",
1267
  " ax[0].set(title=\"Price time series\", ylabel=\"Price ($)\")\n",