fxDreema

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

    MA cross below/above baseline

    Questions & Answers
    3
    7
    289
    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.
    • C
      CryptoKnight1 last edited by

      Greetings all!

      Trying to create and EA that has a MA as a baseline (for this example EMA 100) if a moving average cross happens below the baseline it will take sell’s but not buys. If it happens above the baseline it takes buys and not sells. Here’s what I have so far but it doesn’t appear to be working.

      https://fxdreema.com/shared/jWvlA45Jc

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

        Try set all Candle ID = 1

        C 1 Reply Last reply Reply Quote 0
        • C
          CryptoKnight1 @biztet last edited by

          @biztet thanks for the reply! Just tried setting the candle ID to 1 but unfortunately isn’t working =/

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

            Have you check the MA value see if it's crossing or not?

            C 1 Reply Last reply Reply Quote 0
            • roar
              roar last edited by

              Your example seems to be working just fine

              image.png

              Need small help? Tag me in your post
              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

              C 1 Reply Last reply Reply Quote 0
              • C
                CryptoKnight1 @biztet last edited by

                @biztet yes to be safe I made the value of the fast EMA 1 so it would trigger every time the candle crossed the slow EMA as a test

                1 Reply Last reply Reply Quote 0
                • C
                  CryptoKnight1 @roar last edited by

                  @roar that’s strange I’m running it in demo now and no trades are opening

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

                  Online Users

                  I
                  A
                  E
                  S
                  E
                  J
                  2
                  C
                  R

                  22
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors