fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Need help with fractals

    Questions & Answers
    3
    4
    1858
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      ricpap last edited by

      I need my EA look for this patter, for buying (down fractal follow by an up fractal then another down fractal but this must be above the first down fractal) and for selling (up fractal follow by an down fractal then an up fractal but this must be below the first up fractal).

      1 Reply Last reply Reply Quote 0
      • R
        ricpap last edited by

        someone?

        roar fxDreema 2 Replies Last reply Reply Quote 0
        • roar
          roar @ricpap last edited by

          @ricpap
          Here: https://fxdreema.com/shared/ExqnpJBZ
          This only does as you described, I think it can be improved by setting some limit to the time distance between the fractals

          Need small help? Tag me in your post
          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema @ricpap last edited by

            Here is what I did. First, I used this custom indicator - https://www.mql5.com/en/code/7982 It works like the one in MetaTrader, but it is a custom indicator. Why? Because only for custom indicators in "More settings" there are extra settings.

            https://fxdreema.com/shared/EqWKTmPod

            Small problem is that in all Condition blocks my "My settings" are closed, which is because I use the current Symbol and Period settings... and "My settings" stays open if one of these is something different.

            In block 1 I'm detecting that the newest fractal is Up (red dot above the chart):
            0_1550736122626_70260d85-b751-4eb0-82d0-c45b3ad77ab1-image.png

            Block 2 is to limit the signal to 1 per bar.

            In block 3 I want to know if the newest Up fractal is < than the previous Up fractal. See that I'm looking for "Value by Visible ID", where Visible ID is the relative number of the fractal on the chart - 0 is the latest one, 1 is the previous:
            0_1550736315674_2054a9c2-9449-4dd8-be33-657da5ddecd2-image.png

            In block 4 I check whether the position relative to the current candle of the previous Up (red) fractal is bigger than the position of the latest Down (blue) fractal. Or in other words, whether the previous red dot is left of the latest blue dot:
            0_1550736333635_4f368f7b-c086-4564-abeb-45b4337017a6-image.png

            In block 5 I check whether the previous blue dot is more left than the previous red dot. Because it looks that the indicator can place two consecutive Up arrows, or Down arrows.
            0_1550736503960_590a5b7f-ae6c-4adc-b914-8978b58d0e3f-image.png

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            H

            7
            Online

            146.9k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors