fxDreema

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

    Close trades when they reach X pips loss

    Questions & Answers
    2
    4
    1116
    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.
    • C
      coverman last edited by

      I want to make a very simple EA which is closing all trades (for that magic number) when they reach X pips negative. I did the blocks shown in the image, but it doesn't seem to work. What have I done wrong here?

      0_1520527777975_Skärmavbild 2018-03-08 kl. 17.46.48.png

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

        there is block "Check profit (unrealized)" - try use it ...

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

        1 Reply Last reply Reply Quote 0
        • C
          coverman last edited by

          Thank you. I tried this, but get an error when compiling it.
          It says 'TradesTotal - function not defined' and also 'TradeSelectByIndex - function not defined'.

          This is what I did.

          0_1520533313153_Skärmavbild 2018-03-08 kl. 19.21.22.png

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

            it is bug, admin @fxDreema should repair it 😄

            0_1520533724213_be21c8a9-f302-4fe8-bb3e-32c92fcc0045-image.png

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

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

            Online Users

            A
            M
            R
            G
            T
            G
            Y
            C
            S
            S
            S
            A

            24
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors