jcpParticipant
New
I would like to request conversion of the MetaTrader Wedge Pattern indicator for the purposes of building a screener around this specific pattern
[attachment file=80100]
Dependency on ATR (also attached)
Code and examples here: https://www.mql5.com/en/code/13781
Explanation of the logic here: https://www.mql5.com/en/blogs/post/648601
I’ll have a look. Do you know that a screener for detecting Wedge patterns is already available here: Wedge pattern screener
That’s an interesting way to find Wedge patterns. As described by the author, this is the method he’s using in the code:
Explain about the logic ,step by step:
- plot the high & low point , trend line
- the points inside 0.5 Standard deviation ignore. [fig 1]
- calculation of the distance between trend line and points . then ranking these. [fig 2]
- at the 1st point ,calculating slope from each points. and calculating deviation of slope angle.
- the slope angle outside 1.2 Standard deviation ignore.
- choose the most outside line from those remaining. [fig 3]
- if not found does calculation at 2nd points
[attachment file=80110]
fig.1
[attachment file=80109]
fig.2
[attachment file=80111]
fig.3
As I expected, the original MT4 indicator uses a lot data arrays, with also specific mql4 instruction to sort/rank automatically the values. This is definitely not doable with ProBuilder 🙁
But I think I can do something to find and plot wedge patterns with the original idea and the use of a linear regression channel, we’ll see.. 🙂