def effect(effectpar):
  """
   This function process data from effect parameters
  **Args:**
    *effectpar (str)*: string to parse

  **Returns:**

    *string ColorMadness* - if effect ColorMadness should be applied

    *string ColorUp*     -color of inverse bars above zero

    *string ColorDown*   -color of inverse bars belowe zero

    *string ColorMiddle* -color of actuall data

  """
  ColorMadness="false"
  ColorUp=""
  ColorDown=""
  ColorMiddle=""

  ef_par=''.join(effectpar)
  ef_par=ef_par.split(':')
  for y in ef_par:
    if y.split('=')[0] =='ColorMadness':
      if y.split('=')[1] == "true" or y.split('=')[1] == "false":
        ColorMadness=y.split('=')[1]
        
    if y.split('=')[0] =='ColorUp':
          ColorUp=y.split('=')[1]

    if y.split('=')[0] =='ColorDown':
         ColorDown=y.split('=')[1]
      
    if y.split('=')[0] =='ColorMiddle':
          ColorMiddle=y.split('=')[1]
  return (ColorMadness,ColorUp,ColorDown,ColorMiddle)