fxDreema

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

    Extract value from last Fractals

    Questions & Answers
    2
    3
    676
    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.
    • K
      kerdos last edited by

      Hallo Radoslav, I need some help from you again. I need to extract the HIGH & LOW values for the candle that formed the last DOWN FRACTAL and the same (HIGH & LOW values) for the candle that formed the last UP FRACTAL. I would like also to be able to pick the number of bars since the UP FACTAL (and the DOWN FRACTAL) formed. I used to do that kind of loops easily in amibroker with the use of barssince & valuewhen functions but i have no idea how to do that in mql4. Can you help me please and give me the setup of blocks for getting these values? Thanks in advance.

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

        Here are some extra options, but only for custom indicators. In my MetaTrader I can't find Fractals available as a custom indicator.
        http://prntscr.com/9cbgot

        Otherwise you need "for" loop where you can check each candle starting from the current one, break the loop when the right one is found and get it's data. This is how the last option in the screenshot works, but only for custom indicators. I have no plans to make these options available for each built-in indicator, because... because for now I don't want to put more options in each indicator.

        1 Reply Last reply Reply Quote 0
        • K
          kerdos last edited by

          Thanks Radoslav. I'll try to do it with a custom fractal and we'll see...

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

          Online Users

          V
          E

          27
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors