fxDreema

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

    CONDITION for close trades.

    Questions & Answers
    2
    4
    1757
    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.
    • G
      ggrobot last edited by

      dear all,

      how can i put a condition so that my buy order which has a condition of its own to close by another condition of the close trades ???

      can i put CONDITION --> BUY--> CONDITION -- CLOSE TRADES????

      thank you

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

        CONDITION --> BUY--> CONDITION -- CLOSE TRADES

        This would not be very great, because it always closes a new trade, because the closing can't happen without buying...

        Just separate the "logic trees":
        Condition -> buy
        Another condition -> close

        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

        1 Reply Last reply Reply Quote 0
        • G
          ggrobot last edited by

          thank you , you have been very helpful,(the once per trade worked earlier in another post )
          so i can put another pair of logic trees with condition -sell, and condition -close trade??
          the EA will be able to recognize whether to go for buy and close or sell and close!

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

            The ea runs every tree, on every tick.

            If you are using mt4, you can have both buy and sell trades open.
            If you don't want that, use a "no trade is running" block, for example.

            In the close trades -block, you can filter the trade type, so it closes only buys, for example.

            If you want to show exactly what you are doing, create a shared copy from the Projects-menu (top left).

            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

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

            Online Users

            T
            A
            A
            M
            A
            M
            E
            E
            F
            E
            G
            M
            C
            L
            K

            28
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors