Wedge Pattern indicator, conversion code mq4 to prorealtime

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #80099 quote
    jcp
    Participant
    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

    #80106 quote
    Nicolas
    Keymaster
    Master

    I’ll have a look. Do you know that a screener for detecting Wedge patterns is already available here: Wedge pattern screener

    #80108 quote
    Nicolas
    Keymaster
    Master

    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:

    1. plot the high & low point , trend line
    2. the points inside 0.5 Standard deviation ignore. [fig 1]
    3. calculation of the distance between  trend line and points . then ranking these. [fig 2]
    4. at the 1st point ,calculating slope from each points. and  calculating deviation of slope angle.
    5. the slope angle outside 1.2  Standard deviation ignore.
    6. choose the most outside line from those remaining. [fig 3]
    7. if not found does calculation at 2nd points

    [attachment file=80110]
    fig.1

    [attachment file=80109]
    fig.2

    [attachment file=80111]
    fig.3

    #80153 quote
    Nicolas
    Keymaster
    Master

    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.. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Wedge Pattern indicator, conversion code mq4 to prorealtime


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
jcp @jcp Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Nicolas
7 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/10/2018
Status: Active
Attachments: 6 files
Logo Logo
Loading...