def make_decreasing_ohlc(open, high, low, close, dates, **kwargs):
 (flat_decrease_x, flat_decrease_y, text_decrease) = _OHLC(open, high, low, close, dates).get_decrease()
 kwargs.setdefault('line', dict(color=_DEFAULT_DECREASING_COLOR, width=1))
 kwargs.setdefault('text', text_decrease)
 kwargs.setdefault('showlegend', False)
 kwargs.setdefault('name', 'Decreasing')
 ohlc_decr = dict(type='scatter', x=flat_decrease_x, y=flat_decrease_y, mode='lines', **kwargs)
 return ohlc_decr

def make_decreasing_ohlc ( open , high , low , close , dates , ** kwargs ) : ( flat_decrease_x , flat_decrease_y , text_decrease ) = _OHLC ( open , high , low , close , dates ) . get_decrease ( ) kwargs . setdefault ( 'line' , dict ( color = _DEFAULT_DECREASING_COLOR , width = 1 ) ) kwargs . setdefault ( 'text' , text_decrease ) kwargs . setdefault ( 'showlegend' , False ) kwargs . setdefault ( 'name' , 'Decreasing' ) ohlc_decr = dict ( type = 'scatter' , x = flat_decrease_x , y = flat_decrease_y , mode = 'lines' , ** kwargs ) return ohlc_decr
makes decreasing ohlc sticks .