fxDreema

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

    What am I missing?

    Questions & Answers
    2
    6
    1586
    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.
    • isp00rt
      isp00rt last edited by isp00rt

      This is a part of my latest EA and it doesn't work:
      https://fxdreema.com/shared/SBX9d9xib

      What is intended to do is easy. Once price reaches 50 pip move SL to 3 pips beyond breakeven. Once it reaches 100 pips close the order. Well, I don't know why but it doesn't do any of them.

      0_1545405128263_00.png

      Could someone please tell me what am I missing?

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

        0_1545404070553_d6276c13-f1f5-413f-97cd-0cf7b5b51a20-image.png

        Between trading and gambling is a very small gap, be careful.

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

          this is testable in tester:
          https://fxdreema.com/shared/o0zAtdend

          0_1545404355603_953be754-09a9-44f3-a1cd-aa182374bdfb-image.png

          Between trading and gambling is a very small gap, be careful.

          1 Reply Last reply Reply Quote 1
          • isp00rt
            isp00rt last edited by

            I forgot to say that Variable A is reset at a different place in my EA, not shown at my example. That point is already fixed.

            On the other hand, trading model is exactly what I need according to its definition. I want the SL to move only when the price is ABOVE open price in a buy and BELOW open price in a sell. Additionally, I don't understand why a button is required for it to work. Your additional blocks are really necessary? Why should I add a button?

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

              For tester 😄 because you want to test it as fast as possible (you can always open the trade in other ways)
              When it is working in the tester, and is not working on the demo, than problem is somewhere in broker conditions (like set SL too close to the current price is not allowed by some brokers) ..

              Between trading and gambling is a very small gap, be careful.

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

                Oh. Ok 😉 I will try it. Thanks

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

                Online Users

                N
                S
                T
                A
                Y

                14
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors