fxDreema

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

    How to add EA condition to take trade when moving average is fixed and not pull back

    Questions & Answers
    next candle open trade afte
    3
    5
    1034
    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.
    • rogerthat
      rogerthat last edited by

      Hi guys. I have a moving average crossover trading EA and would like to know how do I set the EA to only take trades when the moving average crosses over and stays in it's position ( no pull back) usually after the current candle closes. The problem I am experiencing now with my EA is that the fast moving average touches the slow moving average and it opens a trade. Then as time passes the moving average pulls back and moves the other direction. It is as though the crossover never happened but I am still in the losing trade. I would like to have the EA only take trades after the current candle once the moving average is painted or fixed in it's position.

      1 Reply Last reply Reply Quote 0
      • B
        biztet last edited by

        Hi @rogerthat . I think your situation, in the MA condition block, you need to set the Candle ID =1. And so your EA will open trade only after the crossing is confirmed, that is after the candle is closed.

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

          Hey thanks for your help. I have tested your solution in my demo and carefully observed what the EA does. However the problem I am experiencing with setting the candle ID =1 is that the current candle=0 also first has to close before the trade is taken which can cause me to lose many profitable pips. What I would like to have is that if candle =1 conditions are confirmed that the trade is taken the moment the candle=0 opens instead of waiting for candle=0 to close also. Do you perhaps have a solution to this?

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

            @rogerthat Biztet is right. The only way to confirm a crossover happened is by working on candle ID1. Otherwise, you'll never be completely sure your visual crossing right now is a final crossing after a few minutes.

            (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
            • B
              biztet last edited by

              @rogerthat , you will never get the perfect entry with MA. Either you use a custom indi or you have a very good strategy, then you might get close to perfect entry. Well, if you have one, please do share with us. 😁

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

              Online Users

              W
              M
              M
              N
              G
              H
              S
              E

              19
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors