fxDreema

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

    problem when rich TP open onother position...

    Questions & Answers
    3
    7
    1398
    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
      mashna1364 last edited by

      HI, my problem is when i set TP ,and position (sell or buy) rich to TP , close position and open onother position(sell or buy).HOW correct this problem?
      I want wait until the next sigal...

      https://fxdreema.com/shared/u5a4S2QCb

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

        So you want the first signal to close the sell, and second signal to open new buy?
        This will be closer to your strategy: https://fxdreema.com/shared/ktzx108Lc
        But I'm afraid you will have to define the "signal" in more detail

        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

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

          @roar
          thanks you,but is not working...
          i want My EA when pass a signal open a position( buy or sell) and when rich to TP close position,and wait until next signal (buy or sell).
          I use once a bar filter but its not working and open position in next candle.

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

            You have a fixed pips tp?
            Then you don't need those "close position" blocks.

            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

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

              @roar said in problem when rich TP open onother position...:

              Then you don't need those "close position" blocks.

              please see this Screen shot...

              0_1529667815943_a test.JPG

              i want when indicator is green open a buy position and when take profit (example 20 pip) close position and wait until next signal ( red siganl for sell).

              my problem is open 2 sell position in one candle or next candle,i want EA wait to next signal.( indicator is red)

              M 1 Reply Last reply Reply Quote 0
              • M
                mashna1364 @mashna1364 last edited by

                @mashna1364

                ANYBODY CAN HELP ME?

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

                  In your conditions you ask whether or not the indicator is green or red at the moment. Well, technically you are checking whether or not the values in the buffers are different or equal to EMPTY_VALUE. The thing is that obviously the green (or red) line stays green (or red) for multiple candles in a row. What you actually want is to detect when the indicator line turns green or turns red, you want to do something on the first "green" or "red" candle.

                  You can try "Indicator appear" block, this one detect when the buffer turns from EMPTY_VALUE to something else. Or try a condition like this:

                  Indicator x< (Numeric -> Value) EMPTY_VALUE

                  or...

                  Indicator x> (Numeric -> Value) 0

                  I didn't tested these conditions now, I might be wrong, but I think they will work.

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

                  Online Users

                  L
                  S
                  A
                  F

                  13
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors