I changed the TimeExit value to 24 and the TimeFrame value right before to 24. I thought it would be the same as setting TimeFrame to D1 and TimeExit to 1...

Now the script finds profitable patterns...