|
43 | 43 | "\n",
|
44 | 44 | "### Later we will make this a tutorial explaining what hollow candles are and how to use them.\n",
|
45 | 45 | "\n",
|
46 |
| - "#### There is also currently some code in here prototyping a function to dump a style made with `mpf.make_mpf_style()` into a file that can then be installed into `mplfinance/src/mplfinance/_style_data/` and used as one of mplfinance's built-in styles.\n", |
| 46 | + "---\n", |
| 47 | + "\n", |
| 48 | + "### There is also some code below<br> prototyping a function<br>to dump a style made with `mpf.make_mpf_style()`<br><br> into a file that can then be installed into `mplfinance/src/mplfinance/_style_data/`<br><br> and used as one of mplfinance's built-in styles.\n", |
47 | 49 | "\n",
|
48 | 50 | "---\n",
|
49 | 51 | "---\n",
|
|
345 | 347 | " 'checkers',\n",
|
346 | 348 | " 'classic',\n",
|
347 | 349 | " 'default',\n",
|
348 |
| - " 'hollow',\n", |
| 350 | + " 'kenan',\n", |
349 | 351 | " 'mike',\n",
|
350 | 352 | " 'nightclouds',\n",
|
351 | 353 | " 'sas',\n",
|
|
390 | 392 | ],
|
391 | 393 | "source": [
|
392 | 394 | "mpf.plot(tdf.loc['09-10-2011':'10-20-2011'],type='hollow_candle',volume=True,style='checkers',tight_layout=True,figscale=0.75)\n",
|
393 |
| - "mpf.plot(tdf.loc['09-10-2011':'10-20-2011'],type='hollow_candle',volume=True,style='hollow',tight_layout=True,figscale=0.75)" |
| 395 | + "mpf.plot(tdf.loc['09-10-2011':'10-20-2011'],type='hollow_candle',volume=True,style='kenan',tight_layout=True,figscale=0.75)" |
394 | 396 | ]
|
395 | 397 | },
|
396 | 398 | {
|
|
645 | 647 | " 'checkers',\n",
|
646 | 648 | " 'classic',\n",
|
647 | 649 | " 'default',\n",
|
648 |
| - " 'hollow',\n", |
| 650 | + " 'kenan',\n", |
649 | 651 | " 'mike',\n",
|
650 | 652 | " 'nightclouds',\n",
|
651 | 653 | " 'sas',\n",
|
|
701 | 703 | }
|
702 | 704 | ],
|
703 | 705 | "source": [
|
704 |
| - "#mpf.plot(df,type='hollow_candle',style='hollow',volume=True,figscale=0.75)#,style=s)\n", |
705 |
| - "\n", |
706 | 706 | "updn = dict(up='k',down='r')\n",
|
707 | 707 | "#m = mpf.make_marketcolors(base_mpf_style='default',up='k',down='r',hollow='w',wick=dict(up='k',down='r'),\n",
|
708 | 708 | "# edge=dict(up='k',down='r'))\n",
|
|
711 | 711 | "\n",
|
712 | 712 | "mpf.plot(df,type='hollow_candle',volume=True,style=s,figscale=0.75)\n",
|
713 | 713 | "\n",
|
714 |
| - "mpf.plot(df,type='candle' ,style='hollow',volume=True,figscale=0.75)\n", |
| 714 | + "mpf.plot(df,type='candle' ,style='kenan',volume=True,figscale=0.75)\n", |
715 | 715 | "mpf.plot(df,type='candle' ,style=s,volume=True,figscale=0.75)\n",
|
716 | 716 | "\n",
|
717 | 717 | "import pprint\n",
|
|
994 | 994 | "source": [
|
995 | 995 | "#mpf.plot(tdf,type='renko',volume=True,style='blueskies')\n",
|
996 | 996 | "#s = mpf.make_mpf_style(base_mpf_style='default',facecolor='#b4c0d4')\n",
|
997 |
| - "mpf.plot(df,type='hollow_candle',style='hollow',volume=True,figscale=0.75)#,style=s)\n", |
| 997 | + "mpf.plot(df,type='hollow_candle',style='kenan',volume=True,figscale=0.75)#,style=s)\n", |
998 | 998 | "\n",
|
999 | 999 | "m = mpf.make_marketcolors(base_mpf_style='default',up='k',down='r',hollow='w',wick=dict(up='k',down='r'))\n",
|
1000 | 1000 | "s = mpf.make_mpf_style(base_mpf_style='default',marketcolors=m)\n",
|
|
0 commit comments