fxDreema

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

    How to check condition blocks and indicator visible "n" times

    Questions & Answers
    2
    4
    199
    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.
    • Q
      Qairos last edited by

      Hello everybody. I am new user and trying to learn. I search a lot but I could not solve the problem. Could you please help with the below subject:

      70690712-2ba2-4fc1-8c55-017a8044d8fc-image.png

      • When the entry condition block 1 is true. After that candle I want to check entry condition block 2 along with "n" bars.

      For example: Entry condition block 1 is true and after 3 bars mid MACD Sell signal is true and after 2 bars Trend Up then I want to open buy order.

      Anyone help please.

      Thanks.

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

        @Qairos if you want to create some kind of time sequence, you should work with candle IDs rather than "once per bar" block.

        Candle ID 0 means the current bar, 1 means last bar, 2 is the bar before that and so on

        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

        1 Reply Last reply Reply Quote 0
        • Q
          Qairos last edited by

          @roar first of all thank you for advise. Candle IDs can be used for previous bars 0,1,2,etc.. However in this case there are several conditions after first condition and for each candle there are thousands of combination for the future bars. I try to set up thanks to your previous replies:

          image.png

          But there is a mistake. After first condition met EA opens order without checking the second or third condition. I could not solve.

          1 Reply Last reply Reply Quote 0
          • Q
            Qairos last edited by

            It is done now, thank you

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

            Online Users

            E
            B
            M
            J
            B
            A
            E
            R

            20
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors