fxDreema

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

    Problem in EA (MA & RSI) Combo

    Questions & Answers
    4
    5
    420
    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.
    • S
      Safeer992 last edited by Safeer992

      hi

      I am tying to make an EA that will buy when price is above MA and RSI (70).
      It will close the trade once price will be below MA and RSI is below 30.

      However facing the problem that EA is closing the trade below highlighted area. 0_1653085558482_1.PNG

      Can anyone help why it is not closing on my required condition!

      As far I understand, current EA is looking first to candle to break MA then RSI to go below 30. If RSI goes below 30 first and candle break MA later, then it is not closing the buy position.

      https://fxdreema.com/shared/tF8fCYL9

      S 1 Reply Last reply Reply Quote 0
      • S
        Safeer992 @Safeer992 last edited by

        @safeer992 can anyone help in this matter!

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

          honestly, this is a very simple EA that can be solved using the standard dreema webpages for help.

          https://fxdreema.com/examples
          https://fxdreema.com/documentation

          your problem can be understood easily if you read it back to yourself on the, if position, side.

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

            @Safeer992 try connect the 2 condition blocks with AND block.

            1 Reply Last reply Reply Quote 0
            • N
              Nguyenjohn last edited by Nguyenjohn

              This problem is simple to fix I also look at your code. the problem is:
              1: Price < MA200 at candle ID1
              2: Price <X RSI value 30
              With this rule at the right point, you mark the candle cross RSI level 30 is above MA200 this means EA will pass and try to find another one this right.
              0_1653188280910_1b662c1c-ef0f-44fd-87c3-ea6585f6990e-image.png
              To fix the problem: the best way I think you need do 2 steps more:
              1: Change Price <X RSI value 30 To Price < RSI value 30.
              2: Make one function If trade >> price <MA200 need send an alert to your phone. to control this trade.

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

              Online Users

              D
              O
              A
              J
              M
              R
              F

              18
              Online

              146.6k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors