Skip to content

Commit cc9ac59

Browse files
revert unnecessary changes
1 parent 34f8778 commit cc9ac59

File tree

14 files changed

+20
-13
lines changed

14 files changed

+20
-13
lines changed

examples/scratch_pad/stash_plotting.yscale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _valid_plot_kwargs():
8686
and all(isinstance(c, str) for c in value) },
8787
'type' : { 'Default' : 'ohlc',
8888
'Validator' : lambda value: value in ('candle','candlestick','ohlc','ohlc_bars',
89-
'line','renko','pnf','hollow_candle') },
89+
'line','renko','pnf') },
9090

9191
'style' : { 'Default' : 'default',
9292
'Validator' : lambda value: value in _styles.available_styles() or isinstance(value,dict) },
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""Represent today's open to close as a "bar" line (candle body)
2+
and high low range as a vertical line (candle wick)
3+
4+
If config['type']=='hnf_candle' (hollow and filled candles) then
5+
candle edge and wick color depend on PREVIOUS close to today's close (up or down),
6+
and the center of the candle body depends on the today's open to close (up or down).
7+
"""

src/mplfinance/_styledata/binance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'binance',
22
base_mpl_style= 'seaborn-darkgrid',
3-
marketcolors = {'candle' : {'up':'#70a800', 'down':'#ea0070', 'up_hollow':'#70a800', 'down_hollow':'#ea0070'},
3+
marketcolors = {'candle' : {'up':'#70a800', 'down':'#ea0070'},
44
'edge' : {'up':'#70a800', 'down':'#ea0070'},
55
'wick' : {'up':'#70a800', 'down':'#ea0070'},
66
'ohlc' : {'up':'#70a800', 'down':'#ea0070'},

src/mplfinance/_styledata/blueskies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'blueskies',
22
base_mpl_style='fast',
3-
marketcolors = {'candle' : {'up':'w', 'down':'#0095ff', 'up_hollow':'w_hollow', 'down':'#0095ff'},
3+
marketcolors = {'candle' : {'up':'w', 'down':'#0095ff'},
44
'edge' : {'up':'k', 'down':'#0095ff'},
55
'wick' : {'up':'k', 'down':'#0095ff'},
66
'ohlc' : {'up':'#0095ff', 'down':'#0095ff'},

src/mplfinance/_styledata/brasil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
style = {'base_mpl_style': 'fast',
2-
'marketcolors': {'candle': {'up': '#fedf00', 'down': '#002776', 'up_hollow': '#fedf00', 'down_hollow': '#002776'},
2+
'marketcolors': {'candle': {'up': '#fedf00', 'down': '#002776'},
33
'edge' : {'up': '#fedf00', 'down': '#002776'},
44
'wick' : {'up': '#fedf00', 'down': '#002776'},
55
'ohlc' : {'up': '#fedf00', 'down': '#002776'},

src/mplfinance/_styledata/charles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'charles',
22
base_mpl_style= 'fast',
3-
marketcolors = {'candle' : {'up':'#006340', 'down':'#a02128', 'up_hollow':'#006340', 'down_hollow':'#a02128'},
3+
marketcolors = {'candle' : {'up':'#006340', 'down':'#a02128'},
44
'edge' : {'up':'#006340', 'down':'#a02128'},
55
'wick' : {'up':'#006340', 'down':'#a02128'},
66
'ohlc' : {'up':'#006340', 'down':'#a02128'},

src/mplfinance/_styledata/checkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
style = {'base_mpl_style': 'ggplot',
2-
'marketcolors' : {'candle': {'up': '#000000', 'down': '#ff0000', 'up_hollow': '#000000', 'down_hollow': '#ff0000'},
2+
'marketcolors' : {'candle': {'up': '#000000', 'down': '#ff0000'},
33
'edge' : {'up': '#000000', 'down': '#ff0000'},
44
'wick' : {'up': '#606060', 'down': '#606060'},
55
'ohlc' : {'up': '#000000', 'down': '#ff0000'},

src/mplfinance/_styledata/classic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'classic',
22
base_mpl_style= 'fast',
3-
marketcolors = {'candle' : {'up':'w', 'down':'k', 'up_hollow':'w', 'down_hollow':'k'},
3+
marketcolors = {'candle' : {'up':'w', 'down':'k'},
44
'edge' : {'up':'k', 'down':'k'},
55
'wick' : {'up':'k', 'down':'k'},
66
'ohlc' : {'up':'k', 'down':'k'},

src/mplfinance/_styledata/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'default',
22
base_mpl_style= 'seaborn-darkgrid',
3-
marketcolors = {'candle' : {'up':'w', 'down':'k', 'up':'w', 'down':'k'},
3+
marketcolors = {'candle' : {'up':'w', 'down':'k'},
44
'edge' : {'up':'k', 'down':'k'},
55
'wick' : {'up':'k', 'down':'k'},
66
'ohlc' : {'up':'k', 'down':'k'},

src/mplfinance/_styledata/mike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
style = dict(style_name = 'mike',
22
base_mpl_style= 'dark_background',
3-
marketcolors = {'candle' : {'up':'#000000', 'down':'#0080ff', 'up_hollow':'#000000', 'down_hollow':'#0080ff'},
3+
marketcolors = {'candle' : {'up':'#000000', 'down':'#0080ff'},
44
'edge' : {'up':'#ffffff', 'down':'#0080ff'},
55
'wick' : {'up':'#ffffff', 'down':'#ffffff'},
66
'ohlc' : {'up':'#ffffff', 'down':'#ffffff'},

0 commit comments

Comments
 (0)