Traders Laboratory - View Single Post - Help with Simple Show Me
View Single Post
  #4 (permalink)  
Old 03-02-2008, 02:44 AM
thrunner thrunner is offline
thrunner has no status.

 
Join Date: Feb 2007
Posts: 206
Thanks: 66
Thanked 61 Times in 35 Posts
Re: Help with Simple Show Me

Now I see a sample chart of the bars in question I can see why you say they are simple. In real life, you won't find too many adjacent bar double top or double bottoms like that (I don't think the sample chart is even an actual chart). If you just want to program such a pattern, the logic provided above (or similar logic) will let you program such pattern matching in EL, but you are unlikely to find many matches. There are a lot more practical three bar group patterns you can explore, for example the ones mention in Suri's book

{Suri TBG1; Go Long above H[3]} if H[3] > H[2] and C[2] < C[1] and L[1] > L[2] and H[1] > H[2] and C > H[3] then TB1Long = true else TB1Long = false ; {Suri TBG2; Go Long above H[2]} if H[3] > H[2] and C[2] < C[1] and L[2] < L[3] and O[1] < C[2] and C[1] > C[2] and L[1] < L[2] and C > H[2] then TB2Long = true else TB2Long = false ; {Suri TBG3; Go Long above H[1]} if H[3] > H[2] and C[2] < C[3] and O[1] > C[2] and H[1] > H[3] and C > H[1] then TB3Long = true else TB3Long = false ; {Suri TBG4; Go Long above H[3]} if H[3] > H[2] and H[2] > H[1] and L[3] < L[2] and L[2] < L[1] and C > H[3] then TB4Long = true else TB4Long = false ; {Suri TBG4; Go Short below L[3]} if L[3] < L[2] and L[2] < L[1] and H[3] > H[2] and H[2] > H[1] and C < L[3] then TB4Short = true else TB4Short = false ;
The first ELD ...SURIBARS below is not an actual indicator, just the functions for matching the three bar groups pattern. The second ELD, ...SURI.CANDLEREADER is an indicator, capable of matching several candle stick patterns, written by Suri. You should be able to use that as an example to explore more simple patterns.
Attached Files
File Type: eld 20070716084205SURIBARS 1.ELD (6.5 KB, 27 views)
File Type: eld 20061205194606SURI.CANDLEREADER.ELD (14.3 KB, 27 views)

Reply With Quote