Convert X-bars Fractals Indicator (Serhii Ivanenko, MQL5) to ProRealTime

Forums ProRealTime English forum ProBuilder support Convert X-bars Fractals Indicator (Serhii Ivanenko, MQL5) to ProRealTime

  • This topic has 5 replies, 2 voices, and was last updated 1 month ago by avatarJS.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #249620

    Fractals are used to identify market structure — a moment t where:

    Down fractal:
    Low(t) <= Lowest(t-a, t+b)
    for the minimum in domain [t-a, t+b]

    Up fractal:
    High(t) >= Highest(t-a, t+b)
    for the maximum in domain [t-a, t+b]

    Example:
    If lookback = 20 and a = b = 3

    Assume that at time t = i = 10 (bar index, where 0 is current, 1 is previous, n is nth bar, etc.):
    Lowest(10-3, 10+3)Lowest(7 to 13) = Low(10)
    Then t = 10 is a down fractal.

    Reference:
    Here is the code of the existing indicator (X-bars Fractals from Serhii Ivanenko) that would be great to convert for ProRealTime users:
    https://www.mql5.com/en/code/1381

    Thank you !

    #249627
    JS

    Hi,

    Try this one…

     

    1 user thanked author for this post.
    #249692

    Thanks but it does not work…

    #249695
    JS

    Have you tried it, because it works fine for me…

    What doesn’t work…?

    #249753

    When I tried it yesterday during regular trading hours, it didn’t work. Now that I’ve tried it when the market is closed, it mostly works. This happens sometimes to me with other indicators as well. I wonder why…

    But there are many false positives. Take a look at the screenshots here where NLB and NRB = 2; there are many examples of the displayed fractal not being the local min or max of the candle range (t-2, t+2, so in total 5 candles). Do you know why this happens?

    #249761
    JS

    Hi,

    Try this one… (small addition error)

     

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login