fxDreema

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

    close trades with object not work!

    Questions & Answers
    3
    11
    1995
    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.
    • M
      mohammad2232 last edited by

      Hello
      why this EA not work !
      https://fxdreema.com/shared/AobTV65Ub
      it should close trades after touch horizontal lines on chart
      Thanks

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

        I'm no expert on objects, but its not usually good to use the == sign when comparing price. The price rarely is exactly something - use the > and the < instead

        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
        • M
          mohammad2232 last edited by

          Thanks for your answer
          but i need do close when touch horizontal lines on the chart for example these tow line
          0_1502453914092_Capture5.PNG

          How can i do this ?
          Thanks

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

            why can't it be like
            above upper line -> close
            below lower line -> close

            in that case the trades will close also when the price is suddenly 0.0001 pips above the upper line - the current project would leave the trades open, because it is not exactly there (==)

            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
            • M
              mohammad2232 last edited by

              ok how can i do above upper line -> close
              below lower line -> close ?
              because both horizontal line was open with hand !
              and in condition block i can't defined which upeer and which lower !
              can you help me for this?
              thanks

              1 Reply Last reply Reply Quote 0
              • M
                mohammad2232 last edited by

                i use this as your help
                https://fxdreema.com/shared/MYogpDiIb
                that i think when i use price level 1 in first block and on chart first select overal line it is true but it is not work again 😞
                how can i do?

                timmyhanke 2 Replies Last reply Reply Quote 0
                • timmyhanke
                  timmyhanke @mohammad2232 last edited by

                  @mohammad2232 0_1502460762595_correct.jpg

                  This is the correct way of doing it .

                  I dont know why you have the same name for the two objects though , i usually create horizontal lines in the ea too , and adjust that how i want it .

                  And by refering to the same object it will now work

                  1 Reply Last reply Reply Quote 0
                  • timmyhanke
                    timmyhanke @mohammad2232 last edited by

                    @mohammad2232

                    im using something like this

                    https://fxdreema.com/shared/cuHqx6epe

                    2 lines for buy trades and 2 for sell , if price pushes one of the lines it follows with price and the oppsite follows after that one maintaining 10 pips

                    1 Reply Last reply Reply Quote 1
                    • M
                      mohammad2232 last edited by

                      Thanks so much for your complete help 🙂
                      but i must use it in order that set with hand and lines too
                      that mean only two line for all traders buy and sell and when trades gor up to upper line closes and when down to lower closes
                      how can i find 2 horizontal lines that hand created and use those on my EA ?
                      Thanks again

                      timmyhanke 1 Reply Last reply Reply Quote 0
                      • timmyhanke
                        timmyhanke @mohammad2232 last edited by

                        @mohammad2232

                        https://fxdreema.com/shared/fsu9xlEyd

                        something like this ?

                        timmyhanke 1 Reply Last reply Reply Quote 0
                        • timmyhanke
                          timmyhanke @timmyhanke last edited by

                          @timmyhanke

                          and if you dont want the ea to create the objects you can delete the draw line part , and use high and low horizonal lines that you manually create on chart 🙂

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

                          Online Users

                          V
                          O
                          J
                          B

                          21
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors