fxDreema

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

    Test whether x candles have been touching moving average line in a row

    Questions & Answers
    3
    8
    770
    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.
    • General Melchett
      General Melchett last edited by

      Hi all

      I would like to send myself a notification when an EMA line has touched x number of candles in a row. Is there a way to do this with fxdreema?

      I am guessing it is possible with 'indicator moves with' block but I am not sure how to configure it. Can anyone offer any advice?
      0_1649243857456_Screenshot 2022-04-06 141624.png

      1 Reply Last reply Reply Quote 0
      • S
        SirLuk last edited by

        You could do two condition blocks per candle…lets say x is 4 candles. So you need 8 condition blocks, 2 per ID. One block is candle ID 1 crosses above EMA ID 1, one block is same but „crosses below“. Then you do that for each candle in the past you want checked. Then connect the blocks and put signal at the end.

        1 Reply Last reply Reply Quote 0
        • General Melchett
          General Melchett last edited by

          Thanks @SirLuk was just looking at that BUT...how do you ID the candle? There's no candle ID selector in the crossing block so I'm not sure how I could specify what candle to test.

          Unless I would have to store variables for candles with pass/fail flags until x candles passed the test?

          1 Reply Last reply Reply Quote 0
          • S
            SirLuk last edited by

            Use normal condition blocks, like this:

            0_1649245840572_Unbenannt.PNG

            One of these blocks has to pass to get to the next two blocks with the ID 2.

            1 Reply Last reply Reply Quote 1
            • General Melchett
              General Melchett last edited by

              Aaaaaaaaah yes! Thank you! Will try that, cheers man

              1 Reply Last reply Reply Quote 0
              • General Melchett
                General Melchett last edited by General Melchett

                Edited below...

                General Melchett 1 Reply Last reply Reply Quote 0
                • General Melchett
                  General Melchett @General Melchett last edited by

                  @general-melchett said in Test whether x candles have been touching moving average line in a row:

                  In case anyone is interested, I had to modify the conditions: basically if price passes ABOVE candle low AND price passes BELOW candle high, for this to work...
                  0_1649321050853_Screenshot 2022-04-07 114351.png

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

                    @general-melchett That AND block is redundant in that position. Connecting both condition blocks one on top of the other will get the same effect.

                    (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

                    S
                    O
                    K
                    M
                    M
                    C

                    18
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors