Traders Laboratory - View Single Post - Help with Simple Show Me
View Single Post
  #2 (permalink)  
Old 03-01-2008, 09:27 PM
thrunner thrunner is online now
thrunner has no status.

 
Join Date: Feb 2007
Posts: 178
Thanks: 60
Thanked 47 Times in 25 Posts
Re: Help with Simple Show Me

I suggest you take a look at the code for Head & Shoulders ShowMe within TS for example of how to find these patterns. These are not simple one, two or three bar patterns (for example, looking for a doji, which is basically Open=Close for the current bar) and it requires looking at pivots or swing bars over many bars (could be dozens of bars). The code for H&S is about 200 lines. In addition, no two independent implementation of these indicators will look exactly the same because there are too many variables involved.
Even if you don't do Easylanguage, you could start by drawing a few bars of what the rules entailed in the pictures you posted and see if you could have defined them mathmatically (e.g., H[4] < H[3] AND H[3] = H[1] AND C[3] <> H[3] AND C[1] <> H[1] AND C[0] < L[1] in the simplest 5 bar permutation for the Double top reversal bar pattern).

Reply With Quote