Pattern recognition

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Pattern recognition

Postby Apprentice » Sun Feb 28, 2010 6:08 am

One of three lack of these platforms, the lack of algorithms for pattern recognition

Development and testing of this tool could be complicated and long,
Therefore, I suggest the development of each pattern separately, and their subsequent Collection.

Time is presented with the x-axis coordinate system.
Time (X)
Price is presented with the y-axis coordinate system.
Price (Y)

Downtrend line dots
D1(x1,y1) and D2 (x2, y2)
Uptrend line dots
U1(x1, y1)and U2(x2, y2)

Formula for calculating the line(edges), through the two points, fractals
Y-Y1 =((Y2-Y1) / (X2-X1)) * (X-X1)
X = Time and Y= Price
Price(Period)= ((Price2-Price1) / (Time2-Time1)) * (Period -Time1) +Price1


Distance Formula: Given the two points (x1, y1) and (x2, y2), the distance between these points is given by the formula:
d=((x2-x1)^2 + (y2-y1)^2)^1/2

Triangle

1.As a starting point I suggest fractals

2. Triangle edges
UpTrendLine(U)
Closing price is greater than or equal to the closing price of the previous Point (fractal)
U1(y) <= U2(y) <= U3(y)...
DownTrendLine(D)
Closing price is less than or equal to the closing price of the previous Point (fractal)
D1(y) >= D2(y) >= D3(y)...

3.The triangle pattern, have least 4 confirmation points,
two or more for the drop-down edge of the triangle,
two of more for the growing edge of the triangle.

4. One confirmed, the triangle, it locks, Further price change does not affect him

Closing price is always located within the edges of the triangle,
the Triangle Edge line (y) value for each (x) can be obtained by using the formula

Y-Y1 =((Y2-Y1) / (X2-X1)) * (X-X1)

5. Closing price is always located within the edges of the triangle

6. Punching edge down or up, it gives a signal to sell or buy

7. (D1, X) and (U1, X) lines should not be longer than 5 or 6 times (D1, U1) line

8. (D1, X) must be at least two-third of the length of (U1, X) line
(U1, X) must be at least two-third of the length of (D1, X) line
Attachments
Triangle.PNG
Triangle
Triangle.PNG
Triangle
Last edited by Apprentice on Sun Mar 21, 2010 2:44 pm, edited 6 times in total.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Pattern recognition

Postby Nikolay.Gekht » Tue Mar 02, 2010 10:13 am

Thank you for an idea. I'll start work on it immediately after the beta release of the next version of Marketscope. Now I'm preparing a set of default signals for the Marketscope.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Pattern recognition

Postby Apprentice » Tue Mar 02, 2010 2:36 pm

WEDGE


We only modify 2nd Triangle rule

Rising Wedge
(D2-D1) > (U2-U1)
(D2-D1) and (U2-U1) > 0

Falling Wedge
(D2-D1) < (U2-U1)
(D2-D1) and (U2-U1) < 0

RECTANGLES AND TRADE CHANNELS

(D2-D1) < 1,05 * (U2-U1)
(D2-D1) > 0,95 * (U2-U1)

Replace X with U2 or D2 depending on which line is in question
(no X point, RECTANGLE lines do not intersect)

All these pattern are based on the triangle algorithm,
for other pattern will be necessary to create a second algorithm
Attachments
29xhra8.png
Wedge
5krgxc.jpg
RECTANGLES
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 28 guests