def make_increasing_ohlc(open, high, low, close, dates, **kwargs):
 (flat_increase_x, flat_increase_y, text_increase) = _OHLC(open, high, low, close, dates).get_increase()
 if ('name' in kwargs):
  showlegend = True
 else:
  kwargs.setdefault('name', 'Increasing')
  showlegend = False
 kwargs.setdefault('line', dict(color=_DEFAULT_INCREASING_COLOR, width=1))
 kwargs.setdefault('text', text_increase)
 ohlc_incr = dict(type='scatter', x=flat_increase_x, y=flat_increase_y, mode='lines', showlegend=showlegend, **kwargs)
 return ohlc_incr

def make_increasing_ohlc ( open , high , low , close , dates , ** kwargs ) : ( flat_increase_x , flat_increase_y , text_increase ) = _OHLC ( open , high , low , close , dates ) . get_increase ( ) if ( 'name' in kwargs ) : showlegend = True else : kwargs . setdefault ( 'name' , 'Increasing' ) showlegend = False kwargs . setdefault ( 'line' , dict ( color = _DEFAULT_INCREASING_COLOR , width = 1 ) ) kwargs . setdefault ( 'text' , text_increase ) ohlc_incr = dict ( type = 'scatter' , x = flat_increase_x , y = flat_increase_y , mode = 'lines' , showlegend = showlegend , ** kwargs ) return ohlc_incr
makes increasing ohlc sticks _make_increasing_ohlc() and _make_decreasing_ohlc separate the increasing trace from the decreasing trace so kwargs can be passed separately to increasing or decreasing traces when direction is set to increasing or decreasing in figurefactory .