@@ -260,6 +260,13 @@ def _valid_make_marketcolors_kwargs():
260
260
or isinstance (value ,str )
261
261
or _mpf_is_color_like (value ) },
262
262
263
+ 'vcedge' : { 'Default' : None ,
264
+ 'Description' : "color of volume bars edge; may be single color," +
265
+ " or may be dict with keys 'up' and 'down'" ,
266
+ 'Validator' : lambda value : isinstance (value ,dict )
267
+ or isinstance (value ,str )
268
+ or _mpf_is_color_like (value ) },
269
+
263
270
'vcdopcod' : { 'Default' : False ,
264
271
'Description' : 'True/False volume color depends on price change from previous day' ,
265
272
'Validator' : lambda value : isinstance (value ,bool ) },
@@ -294,6 +301,8 @@ def make_marketcolors(**kwargs):
294
301
if ohlc == "inherit" then use up/down colors.
295
302
volume = color of volume bars when all the same color;
296
303
if volume == "inherit" then use up/down colors.
304
+ vcedge = color of volume bars edge when all the same color;
305
+ if volume == "inherit" then use up/down colors.
297
306
'''
298
307
299
308
config = _process_kwargs (kwargs , _valid_make_marketcolors_kwargs ())
@@ -336,7 +345,7 @@ def _check_and_set_mktcolor(candle,**kwarg):
336
345
337
346
candle = marketcolors ['candle' ]
338
347
339
- for kw in ['edge' ,'volume' ,'ohlc' ,'wick' ]:
348
+ for kw in ['edge' ,'volume' ,'ohlc' ,'wick' , 'vcedge' ]:
340
349
# `inherit=True` takes precedence:
341
350
if config [kw ] is not None or config ['inherit' ] == True :
342
351
if config ['inherit' ] == True :
0 commit comments