fxDreema

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

    2 conditions which don't work

    Questions & Answers
    2
    9
    786
    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.
    • B
      bagheria last edited by

      Hello all,

      Hope you are well! And your trading well!

      I have a problem and I don't understand why it doesn't work.

      Imagien the first condition is MACD (Base line x> Signal line on the last candle) and during a time between 1 and 20 candles, RSI as below 30, so I would like to open a buy order. But it doesn't. Look below!

      Thanks for your help.

      BAG

      0_1627310152388_Capture.JPG

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

        @bagheria you are seeking for 2 crosses to happen at the exact same time. It would work better if you had the first condition as above or below instead of cross. The 2nd condition of cross, will be initiation of the trade.

        1 Reply Last reply Reply Quote 1
        • B
          bagheria last edited by

          Hi,

          Thank you. As this? The main goal is to say RSI crossed below 30 almost one time during the last 20 candles

          0_1627312809138_Capture.JPG

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

            @bagheria that logic says, if MACD main is over MACD signal, then every time the RSI value crosses below 30 over the last 20 candles, it will buy.

            It will trade many times. You may want to limit it to once per bar, and I would do that just before 'buy now.' You could also start the tree with, If No position

            Now if you wanted to say...if MACD main is over MACD signal, then for the next 20 candles I want to wait for the RSI to cross below 30, if it doesn't then reset the MACD signal....that's different.

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

              In reality, I would like to tell that if MACD main is over MACD signal and for the past 20 candles almost one candle was below 30 (RSI) so you can buy

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

                @bagheria try no position solution and once per bar, see which you like

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

                  Thanks a lot. We will see tomorrow!

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

                    oh wait, you already have once per bar. that may be enough.

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

                      Hi,

                      It works perfectly! Thank you so much!!

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

                      Online Users

                      H
                      H
                      A

                      8
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors