fxDreema

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

    Create partial close ea MT4

    Questions & Answers
    2
    8
    3083
    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.
    • O
      onlinediscuss last edited by

      I would like to create a simple partial close ea with breakeven function.

      Any example in Fxdreema?

      Anyone would like say something how to get start using Fxdreema to create such ea?

      http://fxdreema.com/shared/ZqCeJ11Vd

      any comment?

      close 80% at tp1
      breakeven at tp1
      close 80% at tp2
      close all at tp3

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

        In this project, blocks with names starting with "(in loop)" needs "Start trades loop" to be used, otherwise they will not work correctly.

        This is example of using those blocks: http://fxdreema.com/demo/mt4-9975
        On the left side - "Trailing stop" block, on the right side - the same trailing stop functionality with "(in loop)" blocks.

        The idea is, "Start trades loop" creates a loop, it self executes itself as many times as many trades there are, and every time it loads the parameters of a trade, and those parameters are used from "(in loop)" blocks. Any "in loop" block can work any trade (buy, sell, any market...) and most of "in loop" blocks are universal for trades and pending orders, but what makes difference is the loop starter block.

        1 Reply Last reply Reply Quote 0
        • O
          onlinediscuss last edited by

          http://fxdreema.com/shared/9nIwjyc2e

          (in loop)" blocks has a problem.....

          For example....when the pip away from open price hit the desired value, it will execute the partial close (in loop close part of vol).

          But, bear in mind, the price is going up and down (fluctuating) and the desired value will be hit many times. Hence, the partial close will be executed many time.

          How to avoid this problem? I only want (close part of vol) executed once when the price hits the desired value.

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

            (in loop) Once per trade/order

            1 Reply Last reply Reply Quote 0
            • O
              onlinediscuss last edited by

              http://fxdreema.com/shared/vtFVungAc

              is the arrangement ok?

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

                Once per trade can pass once per trade. Because of that, Pips Away (8 and 9) can be checked only once for every new trade. I think you want to connect it not before, but after Pips Away 🙂
                Break Even block works for all the trades, it has it's own internal loop. Maybe you want to use "(in loop) Modify SL and TP" to set SL to 0 pips from the open price 🙂

                1 Reply Last reply Reply Quote 0
                • O
                  onlinediscuss last edited by

                  how long we can use the ex4 file generated via free subscription?

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

                    Forever. There are no internal restrictions.

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

                    Online Users

                    A
                    E

                    11
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors