fxDreema

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

    How to open new trades when a trade is closed?

    Questions & Answers
    2
    4
    932
    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
      rafaelgrecco last edited by

      Hi!

      I have made some complex EAs using FXDreema but now I am trying to make a simple one and can't figure out how to make it work...

      I am trying to make a EA where everytime a trade is closed (regardless of type or how it was closed) I want the EA to open two new trades, one Buy and one Sell, up to a limit of 20 opened trades.

      I tried a lot of ways but it always end up opening 20 trades at once (like this last try: https://fxdreema.com/shared/2Qxkao6I).

      It should work like this:

      At first one Buy and one Sell is opened. As soon as a trade is closed, for example Sell reaches TakeProfit, a new Buy and Sell is opened.
      Now I have 3 trades. next time a TP / SL is reached, a new Buy and Sell is opened. Now I should have 4 opened trades... etc.

      Can you help me? Thanks

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

        Note that I work in "on Tick" and "on Trade". I use no SL, because you don't in your example: https://fxdreema.com/shared/sc48MK3ne

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

          GBPUSD, this year - interesting backtest results by the way. Poor modelling quality and not the ideal ending, but at it looks interesting most of the time 🙂 http://prntscr.com/d4ugq2

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

            Thanks man!!

            I kept trying to make it work "on tick", I didn't even think about using "on trade", that is exactly what I need!

            Yeah, the results on Demo account are actually really great using this simple strategy. The only problem is when there is a long and strong tendency. I need to make some adjustments, like finding the optimal SL and a strategy to close less profitable trades on the right occasions.

            Best regards!

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

            Online Users

            E
            B
            M
            J
            B
            A
            E
            R

            19
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors