fxDreema

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

    EA simple that works by the movement of the price.

    Questions & Answers
    2
    45
    16852
    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.
    • tcanuto
      tcanuto last edited by

      Have another strategy that takes turns it into EA. will work like this:

      Work at the opening of the stock exchanges of London and New York.

      In the first seconds of the opening, if the market moves up 5 pips in just 5 seconds, opening a sell order. Continue to analyze the market how many hours I decide.
      To sell will also be the same thing, if the market 5 pips move down within 5 seconds. Continue to analyze the market and how many hours I decide.

      The pips and seconds may be modified by me after the MT4 platform

      Need also to BreakEven, Trailing Stop, Hedge, a Hedge with mobile option, working as a Trailing Stop.

      The hedge and Hedge mobile option, having an option to turn on and off as you wish, as true or false, for example, in the MT4 platform

      Could you help me?

      I thank you!

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

        There are two blocks - "Time Bomb Up" and "Time Bomb Down" that can be used in this case, but note that if you use them in backtest, the results will be absolutely incorrect.

        http://fxdreema.com/examples
        Take a look at "Using Constants (Inputs) in project" project. This is how to put Input parameters for the EA.

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

          Had forgotten to say ... the order of Hedge will be a pending order with x pips from the opening price of the order.

          In fact I already own another hedge EA commercial, but I need to build on my own and so I can work with just 1 EA instead of 2 EAs and also to make backtests.

          But thanks for the tip ... I will try what you told me.

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

            There is no need to build universal EA when you can just put, disable, remove or modify some blocks 🙂

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

              Hello! Another thing I had forgotten was an option like this:

              STOP-LOSS wil progressively be reduced to reach 0 pips and left at 0 pips (0 SL).
              EXAMPLE: 2 pips reduced to 1.5 pip reduced to 1 pip reduced to 0.5 pip reduced to 0 pips (0 SL) or FREE TRADE if you want. Then for instance move the SL for profit of 1 pip for 2 pips.

              I'm reasoning to do, but do not know how. Seems simple, but I can not do.

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

                I can suggest:
                Start trades loop => (in loop) Shrink SL and TP

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

                  __I can suggest:
                  Start trades loop => (in loop) Shrink SL and TP[/quote:2nqlyuyg]

                  How I will use these 2 blocks to work as planned? You will also need the block condition?

                  How do I solve this puzzle? I'm sorry, because I know the basics.

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

                    Must also correct the SL that sometimes it appears with many pips, or sometimes it does not trigger the SL.

                    In this EA and also in my other EA I had this same problem. It seems to me that you said should be influnencia breakeven with the TralingStop working, but I believe that it should not hinder the operation. Must be something in the code that conflicts with this, I guess.

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

                      Fxdreema Hello! Long time huh? So ... due to the continuing problem of SL, I decided to create a security that work well:

                      If the SL appear above 5 pips SL or has not SL, modify the SL to 5 pips. I tried but could not make it work properly.

                      Please create a sample project so I can know how I do it. Also necessary that the SL moves from 5 pips to 4, 3, 2, ... until in profit for the BE.

                      If the current price is positive, take care to trigger the BE and Trailing Stop.

                      I look back!

                      Until more!

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

                        If I am close to the question... http://fxdreema.com/shared/TkZhN3qde

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

                          That's right fxDreema! Correct. Thank you.

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

                            Hello fxDreema. Okay with you?

                            I need to know how do I cancel the "Modify loop in SL or TP" is triggered when the Break Even or Trailing Stop?

                            For this happening when the BE is triggered after a time back to the previous SL, and need to remain in the BE or TS.

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

                              At first I think it's not so good idea to mix trailing stop, break even and custom stops manipulation - all at once 🙂
                              Trailing stop and break even blocks works on it's own, they can manipulate many trades and they does not keep records of which of them are modified. But if you construct everything with pink blocks, you can keep some records with custom variables, "(in loop) Once per trade" or "(in loop) Modified status"

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

                                So ... I tried to do differently, but that was simpler, and it worked. But the constant SLPipsDistPriceChannel I created is not working as it should be.

                                I left the pink block off earlier, but in this project to give you, as the previous one, the constant was working properly.
                                http://fxdreema.com/shared/S53qTfyJb 🙂

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

                                  So now indicators data cannot be shared to the project. Bugs are always running after me 😆
                                  Nevermind. Now you use "Shrink" blocks that are created to shrink SL/TP with some pips, and the input value here should be like this: 5, 10, 15, 20. Optionally it can be in what I call "digits" format like this: 0.0005, 0.0010, 0.0015, 0.0020. But not in price level format like 1.2837. There is no reason to shrink SL with 1.3265 pips, for example.

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

                                    __So now indicators data cannot be shared to the project.[/quote:1w3yea1c]
                                    I'm sorry again. I'd forgotten the indicator. The indicator is attached. Actually the indicator is being used in all my EAs.

                                    Bugs are always running after me 😆
                                    Nevermind. __Now you use "Shrink" blocks that are created to shrink SL/TP with some pips, and the input value here should be like this: 5, 10, 15, 20. [/quote:1w3yea1c]
                                    I am using SL 'Dynamic Size' based on the Price Channel indicator.

                                    __Optionally it can be in what I call "digits" format like this: 0.0005, 0.0010, 0.0015, 0.0020. But not in price level format like 1.2837. There is no reason to shrink SL with 1.3265 pips, for example.[/quote:1w3yea1c]
                                    What is happening is that the toDigits(SLPipsDistPriceChannel) is not working properly. It was you who taught me this same way.

                                    ......
                                    Price Channel.mq4

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

                                      I'm almost sure that you want to do this: http://fxdreema.com/shared/f8fXi5QNb

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

                                        __I'm almost sure that you want to do this: http://fxdreema.com/shared/f8fXi5QNb[/quote:1zwqpuxu]

                                        Yes .. almost. But instead of using the block "(in loop) Modify TP and SL ..." I need to use "(in loop) SL Shrink" because this way it worked. But it did not work correctly + toDigits(SLPipsDistPriceChannel) e -toDigits(SLPipsDistPriceChannel). Not giving this space pips away from price channel.

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

                                          The problem is not in toDigits. This function transforms only the value that is inside the function (which is SLPipsDistPriceChannel), but it does not make anything over the value of the indicator, which is some price level value (similar to 1.31034) and such a value is just not suitable for Shrink block. Or you really want to shrink the current SL with about 1.3 pips on every new candle?

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

                                          Online Users

                                          A
                                          J
                                          D
                                          E

                                          23
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors