fxDreema

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

    I have a doubt with the logic of the conditions.

    Questions & Answers
    4
    9
    1426
    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.
    • L
      luisjunior1224 last edited by

      I have a doubt with the logic of the conditions. I'm going to give an example with crossings of emas, but only so they can help me, and that logic applies to any project.

      Imagine that my strategy is based on entering a pullback after crossing of emas, how can I put it so that first it is the crossing then the condition that a candle closes below the ema and then another that closes above that would be the operation trigger.

      As I make the EA understand that one goes after the other and that to meet the last condition the first still remains.

      I suffer from always giving the IDs the number 1 to be able to optimize by open bar, so I don't know how to do it.

      @roar @fxdreema

      Luis Martinez

      1 Reply Last reply Reply Quote 0
      • M
        mcarl42 last edited by

        great question . i would like to know too. you mean trade condition met after recent ema cross. thats when all the good trades happen. you could write like ema was in the opposite direction 10& 15& 20 candles ago so you know theres a trend change.

        L 1 Reply Last reply Reply Quote 0
        • L
          luisjunior1224 @mcarl42 last edited by

          @mcarl42 I want to create an EA that has many conditions, but doing it without variables is giving me a lot of problems in order in logic.

          How can I do to save the cross of a 5 x ema> ema 21 (it is an example) save a variable with that cross and only if I pass that cross (but still remains) I mean that the ema 5 is still above the 21, then move on to the next condition and thus not create conflicts in the code that all conditions pass in the candle ID 0 or ID 1.

          The point is that there are conduits that must pass after other conditions and not in the same candle

          Luis Martinez

          1 Reply Last reply Reply Quote 0
          • M
            mcarl42 last edited by

            yer i know what you mean. im only new here to coding but have lots of experience with charts. i would still write in the code that the ema has only been above ( say its a long trade) for x amount of candles and before that its was opposite , which means writing every ID no#. say ID 1 - 7 ema > ema 7 and before that was <. thats how id do it anyway. i have been thinking about the same thing how to get a signal just after ema cross or within certain bars. hope this helps but people here ( coders) will know better.

            1 Reply Last reply Reply Quote 0
            • L
              luisjunior1224 last edited by

              @MIRO1360 please help bro

              Luis Martinez

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

                You need to create a variable to store that value there by using a 'Modify variable' block. Then you can use that same variable as a condition to me met later in the EA.

                (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.

                L 1 Reply Last reply Reply Quote 0
                • M
                  miro1360 last edited by

                  the inspiration which recently celebrated its third birthday 😄
                  https://fxdreema.com/forum/topic/4222/example-price-pullback-ea

                  Between trading and gambling is a very small gap, be careful.

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

                    @l-andorrà can you help me with an example please?

                    Luis Martinez

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

                      Miro's answer is the solution to what you are looking for.

                      (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
                      G
                      Q
                      C
                      T
                      S
                      A
                      M
                      R
                      G

                      26
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors