Hi, I tried to develop a screener for a kind of an insidebar/harami but instead of the high and low of the [1] candle, I want to react the screener after the fifth [5] candle has formed. I thought it was just a case of adjusting the harami screener form the library, but whatever I tried the screener does not seems towork. Can anybody help me out with a code?
Ok, to be honest on this post. The included code does not work proper yet. The patterns are only regonized from two candles or are not regonized at all. My intention is to build a screener which will regonize patterns of five candles instead of just two. Need some serious help with this one. All suggestions are welcome……
//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] ]