fxDreema

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

    Close an open trade with a new opposite trade.

    Questions & Answers
    3
    4
    2243
    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.
    • L
      Lawrence last edited by

      Hi, can anyone please tell me how to make an EA to close an open trade and open a new trade every time a new condition is met?
      Example: A buy condition is met EA opens a buy trade and then a sell condition is met EA closes buy trade and opens a sell trade.

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        Here

        https://fxdreema.com/examples#Simple-Programs

        You can find an example of what you are requesting under

        Buy-Sell-Buy-Sell on opposite conditions

        L E 2 Replies Last reply Reply Quote 0
        • L
          Lawrence @josecortesllobat last edited by

          Thank you so much.

          1 Reply Last reply Reply Quote 0
          • E
            ezatech74 @josecortesllobat last edited by

            @josecortesllobat Hello, I want a also a similar condition : BUY-SELL-BUY-SELL in opposite. But the indicator is not based on crossing average, it's my customized indicator.

            Here is the pic :
            0_1542320216387_kondisi BUY-SELL in opposite.png

            BUY : if Red line is appear, and closes it if the blue line is apper
            SELL : if the Blue line is appear, and close it if the Red line is appear

            I had try to do as in example in this link but it's not working : https://fxdreema.com/examples#Simple-Programs

            An then now I try to do like below pic (Setting the Block BUY & SELL) :
            0_1542320504733_kondisi BUY-SELL in opposite1.png

            I don't know whether the logic is correct or wrong. Please help me 🙂

            Thank you

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

            Online Users

            V

            8
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors