fxDreema

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

    Setup within the next 40 bars

    Questions & Answers
    2
    6
    372
    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
      SirLuk last edited by

      Hi, how do I do this? I have a condition and once it's met, a second condition has to be met within 40 bars or the whole setup is invalid. Any suggestions? Thanks in advance.

      jstap 1 Reply Last reply Reply Quote 0
      • S
        SirLuk last edited by

        Also I would like to know how to do this is in a easy way: I want a condition the says "in the last 40 bars at least once a candle crossed and closed beyond the 10 and 15 EMA." How do I do that?

        1 Reply Last reply Reply Quote 0
        • jstap
          jstap @SirLuk last edited by

          @sirluk Set a flag to true on 1st condition, set to false after 40 bars, use once per bar with a formula adding +1 every bar, reset to 0 when 1st condition met, check flag before buy/sell.

          Learn fxDreema Without the Wait!

          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

          Don’t miss out

          Click here➡️ https://mybook.to/fxDreema to get your copy today!

          Enjoy! 😊

          1 Reply Last reply Reply Quote 0
          • S
            SirLuk last edited by

            Thanks @jstap, this part worked fine. Any suggestions about my second question with the 10 and 15 EMA?

            jstap 1 Reply Last reply Reply Quote 0
            • jstap
              jstap @SirLuk last edited by

              @sirluk This loop will count candles above/below MA, change the value in the modify block to start at a further candle, you will then have to work out what you do when a candle crosses.

              https://fxdreema.com/shared/Rrh7uVs9c

              Learn fxDreema Without the Wait!

              My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

              The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

              Don’t miss out

              Click here➡️ https://mybook.to/fxDreema to get your copy today!

              Enjoy! 😊

              1 Reply Last reply Reply Quote 0
              • S
                SirLuk last edited by

                Thanks, I'll have a look if I can work it out.

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

                Online Users

                Z
                S
                C
                P
                E

                13
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors