def validate_ohlc(open, high, low, close, direction, **kwargs):
 for lst in [open, low, close]:
  for index in range(len(high)):
   if (high[index] < lst[index]):
    raise exceptions.PlotlyError('Oops! Looks like some of your high values are less the corresponding open, low, or close values. Double check that your data is entered in O-H-L-C order')
 for lst in [open, high, close]:
  for index in range(len(low)):
   if (low[index] > lst[index]):
    raise exceptions.PlotlyError('Oops! Looks like some of your low values are greater than the corresponding high, open, or close values. Double check that your data is entered in O-H-L-C order')
 direction_opts = ('increasing', 'decreasing', 'both')
 if (direction not in direction_opts):
  raise exceptions.PlotlyError("direction must be defined as 'increasing', 'decreasing', or 'both'")

def validate_ohlc ( open , high , low , close , direction , ** kwargs ) : for lst in [ open , low , close ] : for index in range ( len ( high ) ) : if ( high [ index ] < lst [ index ] ) : raise exceptions . PlotlyError ( 'Oops! Looks like some of your high values are less the corresponding open, low, or close values. Double check that your data is entered in O-H-L-C order' ) for lst in [ open , high , close ] : for index in range ( len ( low ) ) : if ( low [ index ] > lst [ index ] ) : raise exceptions . PlotlyError ( 'Oops! Looks like some of your low values are greater than the corresponding high, open, or close values. Double check that your data is entered in O-H-L-C order' ) direction_opts = ( 'increasing' , 'decreasing' , 'both' ) if ( direction not in direction_opts ) : raise exceptions . PlotlyError ( "direction must be defined as 'increasing', 'decreasing', or 'both'" )
ohlc and candlestick specific validations specifically .