fxDreema

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

    High/Low price in range of candles in not working.

    Questions & Answers
    2
    5
    140
    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.
    • K
      karthiiy last edited by

      Hi friends,

      Please find below link with attached images in which the current candle with ID 0 will compare the last 2 candles with ID 1 & 2. It takes the high price from these 2 candles and when the current candle price breaks the high price it should put buy order.

      Here the issue is if the price of the candle with ID 2 is high than candle with ID 1, then it is putting buy call which is showed in picture1 where you can see the call taken.

      But if the price of the candle with ID 1 is high than candle with ID 2, then it is not putting the buy call which is showed in Pictuer2. Need solution for this .

      I had attached my EA link here with for your valuable suggestions.

      https://fxdreema.com/shared/5Bf2hSiMc

      BUY SUCCESS.JPG

      BUY FAILURE.JPG

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

        Put the in a condition block, draw this line so you can visually check what's happening: image.png

        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! 😊

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

          @jstap That was my first EA without variables. But the result is still the same.

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

            Draw a line so you can visually check

            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! 😊

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

              @jstap Linked "Draw Line" and did the back test for last 3 months. But it's still the same. Out of candle ID 1 &2, it takes call only if Candle ID 2 is having higher high or lower low. If candle ID 1 has higher high or lower low then no calls taken.

              On the below attached image, Candle ID 1 lower low is marked where it has to go for sell but not taken.

              https://fxdreema.com/shared/aK1fL86Vc

              SELL FAILURE.JPG

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

              Online Users

              M
              A
              E

              12
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors