fxDreema

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

    double crosses condition

    Questions & Answers
    3
    7
    1035
    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.
    • A
      akulus last edited by

      Hello friends,

      I have a small bump that i can't get over and i need some help please.

      I am trying to create a simple EA (an example from babypips) when the 10EMA crosses 20EMA and MACD signal line crosses the main line.

      The crosses can happen within a span of 3 or 4 bars and any of the two conditions can come first.

      Here is an example (green area is a valid signal, red areas are not valid signals since both conditions are not met):

      0_1581413332496_double crosses condition.bmp

      The only logical thing i could come up with is in this example where it checks if the 10EMA and MACD are in buy or sell positions and if the signals were in opposite position 4 bars behind. it seems logical to me (as a new user) but it does not generate any signal. Maybe i am arranging the them wrong, maybe it can be done in a different way.

      https://fxdreema.com/shared/ZXJbCFndc

      Please help, thank you,
      A

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @akulus last edited by

        @akulus For the crosses you can take x> or X< condition. Specify the witdt to 3 and I guess that that's what you need. Do this for both, EMA crosss and MACD zero line cross.

        The width days the cross must have happened within the number of specified candles and the condition stays valid (for 0 line cross down, the rest of the candles after x<0 happened, it stayed below 0).

        Does that make sense?

        I like to share my knowledge, but expect the others to contribute as well.

        1 Reply Last reply Reply Quote 0
        • A
          akulus last edited by

          thank you for answering me trader.philipps

          i am not sure i understand. you mean to use the width to 3 for both and use both conditions with 'and'?

          something like this? https://fxdreema.com/shared/ncNBdXCyd

          if yes, it does not work.

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

            I recommend you to substitute both 'AND' blocks and put instead blocks 74 and 76 in their place. The effect is the same at all effects. Their current position means they are executed AFTER block 72, so weird things can happen.

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

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

              @l-andorrà and @trader-philipps thank you both very much.

              i have reached to this version which shows some results and even some profit https://fxdreema.com/shared/HB8LdSnce (there is also a trailing section that is not included here).

              however, looking at the backtest there are some missed signals and all the entries are after quiet periods.

              i think i am using macd wrong. should it check for signal line crossing main line or main line crossing 0 value?

              T 1 Reply Last reply Reply Quote 0
              • T
                trader.philipps @akulus last edited by trader.philipps

                @akulus Okay, let's get through it one by one ..

                0_1581453780520_5a4fdf18-2483-4ebe-91b9-5abc0b8f09d6-image.png

                Use another path with if trade for instance.

                For your conditions block use both with width 5 and use just 1 path per sells and 1 per buys.
                You have no trade block in the begining so first macht in conditions will open trade in either case.

                Change that and show maybe in screenshot where something was missed.

                Like this it works at least so much as you described.

                0_1581457042033_b20d36f6-7557-4262-827c-c14bbd0895fa-image.png

                Entire project: 0_1581457083201_exp.mq4

                0_1581457115156_e07a76a5-6dce-4529-8895-9b783df18bc9-image.png

                I like to share my knowledge, but expect the others to contribute as well.

                1 Reply Last reply Reply Quote 0
                • A
                  akulus last edited by

                  @trader-philipps you are right and it works as i described.

                  thank you very much for your time and patience to explain to me. as you, for sure, can tell i am just starting with fxdreema and i am not that very technical person. i greatly appreciate your help.

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

                  Online Users

                  K
                  R
                  N
                  W
                  L
                  E
                  N
                  A
                  H
                  H
                  O

                  21
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors