fxDreema

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

    Check positions

    Questions & Answers
    2
    4
    442
    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.
    • R
      ramimoujaes last edited by ramimoujaes

      Greetings,
      I have a small question. How do we create an expert advisor, where it only checks all opened position price, and then checks where has the price has currently reached. If there is a difference between 100 points (in-profit), then set SL or break even point to 50 points (in-profit) on the opened positions. So essentially, for every 100 points gained, 50 points is set as SL in terms of gain, I am not sure if I said it right.
      I do not have a project opened or ready because I do not know how to start

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

        this might help you first i would try the loop version and then the trailingstep, if both dont work out there is bit more complex way.... just let me know

        https://fxdreema.com/shared/JfYa3ktoc

        1 Reply Last reply Reply Quote 0
        • R
          ramimoujaes last edited by ramimoujaes

          Greetings,
          Thank you for your response.
          If I am trading multiple charts, would I have to place this EA several times, or only once?

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

            Just one but you have to test it first on demo or a backtest.
            Keep in mind, that stocks indices and so an have different pip calculations. This version should work for forex

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

            Online Users

            A
            X
            K
            F
            A

            14
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors