fxDreema

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

    don't open a trade if...

    Questions & Answers
    2
    5
    1222
    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
      laccio last edited by

      Hi everybody,
      I need that my EA doesn't execute a trade while a certain condition happens.
      So I explain for example: I want that a trade is open once RSI cross 50, but I want that the EA doesn't execute trades if RSI cross 70 and 30. I need this to avoid a trade if RSI cross 2 values on the same bar (for example 50 and 70 valute or vice versa). Thanks for your help

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

        use 3 conditions one after another
        RSI x> 50
        RSI < 70
        RSI > 30

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

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

          Hi miro Thank you very much for your kind reply, but it is not enough because also if I do this, the trade will open. In fact if I give a condition where rsi must be below 70 and cross below 50, anyway the cross of 2 values can happens during the same bar. I attach you a detail where you can see that also if RSI is below 70 and cross below 50, the EA open a trade. In a few words I need that RSI cut only the 50 value I tried also to use "Indicator moves within margins" but I have the same result. For this I need that the EA doesn't open a trade if RSI cross 70 or 30 level in any case. If you have an idea to solve this problem I will be really grateful. Thank you anyway for your suggestion
          bye
          L
          0_1515289054488_Double cross.png

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

            use more conditions also with candle ID ... if you take first candle (the closed one, not current, current have ID 0) than ID is 1, for second closed is ID 2 ...

            RSI[1] x< 50
            RSI[1] > 30
            RSI[2] < 70

            and opposite:
            RSI[1] x> 50
            RSI[1] < 70
            RSI[2] > 30

            or any other combinations with Candle ID you can combine and come to the result ...

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

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

              Thank you very much Miro. And what about the trailing stop? I set it as explained in FxDreema examples but it doesn't works. Also if the price touch the point of my trailing stop the trade doesn't close and often goes negative for me. Thank you again for your reply.
              Bye
              L.

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

              Online Users

              D
              S
              G

              13
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors