//Patterns screener by Marcel van Vliet
//Version 1
//Date 11-30-2017
//Triangle pattern and range (C1 en C2)
//Flag and wedge pattern up (C3 en C4)
//Flag and wedge pattern down (C5 en C6)
//Dscending triangle pattern(C1 en C4)
//Descending triangle pattern (C2 en C5)
C1=high[2]>=high[1] and high[1]>=high
C2=low[2]<=low[1] and low[1]<=low
C3=high[2]<high[1] and high[1]<high
C6=low[2]>low[1] and low[1]>low
C4=low[2]<low[1] and low[1]<low
C5=high[2]>high[1] and high[1]>high
majorcondition = (C1 and C2) or (C1 and C4) or (C2 and C5) or (C3 and C4) or (C5 and C6)
screener [ majorcondition[1] ]