text: Title: Leledc Exhaustion Bar indicator (Request)
  Body: This Pinescript code is really easy but I didn't even manage to set up a really simple for loop I guess because I was too tired :D Anyways
  
  Can someone help me to convert this pine code to python?
  
  ```python
  maj_qual=input(6),maj_len=input(30)
  min_qual=input(5),min_len=input(5)
  maj=input(true,title="Show Major")
  min=input(true,title="Show Minor")
  
  lele(qual,len)=>
      bindex=nz(bindex[1],0)
      sindex=nz(sindex[1],0)
      ret=0
      if (close>close[4]) 
          bindex:=bindex + 1
      if(close<close[4]) 
          sindex:=sindex + 1
      if (bindex>qual) and (close<open) and high>=highest(high,len) 
          bindex:=0
          ret:=-1
      if ((sindex>qual) and (close>open) and (low<= lowest(low,len)))
          sindex:=0
          ret:=1
      return=ret
  
  major=lele(maj_qual,maj_len)
  minor=lele(min_qual,min_len)
  ```
  Thank you !