fxDreema

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

    How to check if price crossed an indicator at any time during the last "N" candles

    Questions & Answers
    2
    4
    106
    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.
    • J
      jpj52byu last edited by

      I need help building a way to enter into a trade but only if price crosses an indicator within "N" candles of price crossing a different indicator. for example: enter a short trade anytime price crosses below the 50 ema but only if price crossed below the 20 ema anytime in the last 20 candles. Any help would be greatly appreciated

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

        You can use variables to tell the launcher when that happened. You can also create a loop, but the first option is easier. Are you familiar with variables?

        (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
        • J
          jpj52byu last edited by

          I've used variables for some ea's i've made before but I'm not quite sure how I'd do it in this case. could you create an example of how this would work. thank you

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

            @jpj52byu You can do something like this:

            01.png

            I used 2 different MA to confirm there was a crossing somewhere in the last 50 candles. However, this way to do it will not tell you if there was more then one crossing with that period.

            (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

            K
            H
            I
            K
            T
            B

            13
            Online

            146.8k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors