fxDreema

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

    Can someone help me with High Low conditions please

    Questions & Answers
    3
    9
    1344
    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
      badrsky last edited by

      I'm trying to make an EA that Buy when High [0] > High [1] and close the buy trade when Low [0] < Low [1]

      and the opposite for selling as well

      I tried many times but when I test it, it doesn't open any trade and don't know why ??

      any help is appreciated

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        It is not posible to evaluate "High [0]" because it is the most recent bar opened. Then, the bar's High is not a "right" value.

        You should try High [1] > High [2], it should work.

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

          Thanks for your reply

          I got what you mean, so how can I make it for the price when it breaks the high or low of the last bar?

          1 Reply Last reply Reply Quote 0
          • V
            vnpython 0 last edited by

            i think when candle 0 close (floating) goes up (higher then open, and come back down, then that will become High? of course until the candle closes, that high still remains 'high' right?

            1 Reply Last reply Reply Quote 0
            • J
              josecortesllobat last edited by

              I think what you want to evaluate is something like this: if the current Price (Ask/Bid) raises above the High[1] or falls below Low[1], enter Long or Short.

              Is that what you want to do?

              B 1 Reply Last reply Reply Quote 0
              • B
                badrsky @josecortesllobat last edited by

                @josecortesllobat
                yes that is exactly what I want to do and also for closing the trade as well, but I couldn't make it here if you could please share with me the tree and conditions

                1 Reply Last reply Reply Quote 0
                • J
                  josecortesllobat last edited by

                  This might be work but it has not been checked,

                  0_1539539525707_f76a763f-e1bb-4b25-a53c-437d23a60399-image.png

                  You can shift the "Price" field to Bid or Ask as per your convenience.

                  0_1539539646481_8b02efab-eed6-4337-9ad1-10a6fbc8ea30-image.png

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

                    Thank you so much for your help

                    the last thing I need to find is how can I disable the SL and TP because it's already set to 50 pips by default

                    Regards,

                    1 Reply Last reply Reply Quote 0
                    • J
                      josecortesllobat last edited by

                      At the dropdown menĂº you have those options

                      0_1539701096731_ad15ca23-b203-417e-9b5c-1a0e0ec057c3-image.png

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

                      Online Users

                      C
                      M
                      O
                      H
                      F
                      H
                      M

                      10
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors