fxDreema

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

    Detect if historical candle has X Minutes

    Questions & Answers
    2
    5
    281
    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.
    • MrDaisyBates
      MrDaisyBates last edited by

      Hello again, lovely people!

      I've attempted to create a loop that goes through old candles and then marks them if they meet certain time criteria.

      Specifically, if the loop hits a candle with six minutes (all hours), then draw something on the candle before.

      So, what I need is a "condition" that will detect "true" when the time on the loaded candle has a set amount of minutes, but doesn't discriminate by hour or anything else.

      I've tried a few different things, but this is the main one I feel is closest?

      aafc2840-66fd-44ed-bc65-c9598583466c-image.png

      When I drop it on a chart, it's not ever making it to the draw commands I have. I put a custom MQL block with a print command down there and it's never printing anything (this is only able to be done after detecting a valid candle, and it never happens). So, I'm assuming that it's never flagging valid candles.

      Thanks in advance for the help.

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

        @l-andorrà Sorry to tag you. Is this something you're capable of answering? I know time is a quite tricky thing in Dreema. I'd like to refrain from dragging Roar in if I can avoid it. I feel bad for how he's basically the only person who can answer almost everything (that regularly answers anyways ahahaha).

        1 Reply Last reply Reply Quote 0
        • l'andorrà
          l'andorrà last edited by

          Not sure if I fully understand what you exactly mean. Do you want to identify all candles lasting for at least 6 minutes? You can do that just by selecting a correct timeframe. Sorry for asking it but I simply don't get the idea.

          (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

          (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

          (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

          MrDaisyBates 1 Reply Last reply Reply Quote 0
          • MrDaisyBates
            MrDaisyBates @l'andorrà last edited by

            @l-andorrà Thanks for the reply, bud. Sorry for not being clear enough.

            I'm thinking every 1m candle (or any timeframe for that matter) with a server time of XX:05, I want it to give me a "true" output. And all others, a false.

            So, I would like a condition, that when I run through a loop (increasing candle_id), then every time I hit an old candle with that server time, I want it identified.

            1 Reply Last reply Reply Quote 0
            • l'andorrà
              l'andorrà last edited by

              Technically you can do it via loop, that is true, but now I don't see the logic behind that. Why not using the timeframe you need instead of searching for that info? In your example, if you select the 5M timeframe all candles will be of a XX:X5 type.

              (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

              (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

              (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

              Online Users

              A
              A
              E
              B
              M
              J
              B
              E
              R

              22
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors