fxDreema

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

    Swing Trade EA using Heikin Ashi

    Questions & Answers
    3
    63
    28082
    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.
    • fxDreema
      fxDreema last edited by

      Trailing stop? Maybe checking if the current SL level is below/above the one that is to be set. But I think that trailing stop block can be used for this, well, 2 of them 😮

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

        That's what I wanted from the start, to tell you the truth! We are almost at goal!

        I tried this way, but this Trailing Stop turning back, and lack move above profit.

        http://fxdreema.com/shared/4CPlacCIb

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

          I'm now on a different machine and I have no ""FractalChannel" in it, but I tried with Bollinger Bandls, which is very similar, and it seems to be working: http://fxdreema.com/shared/NFbXlMxOb If I have Buy, it's SL goes up only when lower BB goes up.

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

            And it works with FractalChannel too: http://fxdreema.com/shared/22i1CaPvb 😮

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

              __And it works with FractalChannel too: http://fxdreema.com/shared/22i1CaPvb 😮[/quote:2mrwcpck]
              If you pay attention, that's what I had done last time, but SL keeps coming back, along with the indicator. Would not have a way for him to go only forward without moving back and backwards?
              If an order to buy, the Trailing Stop based on the indicator should only rise. Vice versa for a sell order.

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

                But mine does not go back. If you are trying this project you posted last, there you have this pard on the right with "For each Trade" that will suerely go back. My idea is to use Trailing stop block instead, not with.

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

                  Hello fxDreema.

                  Actually I'm just using through Trailing Stop. The other way I disable the external parameters.

                  Have difference "-toDigits (SLPipsDistFractalChannel)" as he had taught me before, for "-0.0005"?

                  Because I'm using the first option.

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

                    This function "toDigits()" is some that I have created and I can decide to remove or modify it in future. And there is no need to use it if you have some point format rules, because there you are saying what the format should be. For example you can set up 4 and 5 digit symbols (like EURUSD, GBPUSD...) to work always as 4 digits, so that value 0.0005 will be always valid, this is 5 pips, and it does not require calculations (because toDigits() does some more things). So I will recommend -0.0005 or dividing a variable to 10000.

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

                      Yes .. brokerages use 5 digits. And in the case of the pairs of USDJPY, for example 102,110 which is, for example, EURJPY 139,916, there would be no better toDigits? Or 0.0005 would be enough?

                      One other thing ... how do I run the Break Even + commission and Swap?

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

                        Well 0.0005 is 0.0005, nothing more, nothing less. For USDJPY it will not work.

                        Break even is working in the most simple way - it places SL at the open price and forgets. There is an offset parameter so it can place SL at open price +/- some pips if there is a need to compensate something. Real break even will be if it constantly check the trade and when the profit hits 0 to close it, but I think the way it is now is also working for the idea... almost.

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

                          Had way to run the SL or breakeven, using a block "condition" and within it "(in loop) Trade / Order in Loop", "Profit amount of trade", The swap plus money and commission "?

                          How do I work this way?

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

                            I'm not sure if this is a good idea. To break even first you need to detect when the trade is profitable enough to be locked, this information should be kept in an array, and it's nearly impossible to work with arrays in fxDreema. Well, "Once per trade/order" does that in a way, it keeps some data in it's own array.

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

                              Wonder ... could at least resolve the conflict with the BE and dynamic SL.

                              Now we need to do not return for a chance to bring the SL. TS I tested with fractal channel, but did not work properly. SL sometimes did not work.

                              http://fxdreema.com/shared/wBe5qQAZc

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

                                Why so many trailing stops and break evens and custom SL modify functions, I'm pretty sure this does not bring magic 😕

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

                                  In summary, the SL must not hold back using PriceChannel indicator. The SL support should never fall, and always rise in the same way the SL resistance should never rise, but always down.

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

                                    FractalChannel? Which looks like this:

                                    http://c.mql4.com/codebase/2006/08/fractalpchannel.gif

                                    If I understand correctly, you want when the blue line goes up the SL of a Buy trade to go up with it, but if that blue line goes down the SL should not move. And the same thing with Sells and red line. And I can't find problems with this, but I have other problems. If SL is to be placed when the price is above the red line, this creates errors, and eventually I have a trade without SL for some reason - http://prntscr.com/2wfbub
                                    So, I think I'm missing something here.

                                    In any case, if you are running this on demo check if you have another EAs working in parallel with the same trades.

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

                                      __FractalChannel? Which looks like this:

                                      If I understand correctly, you want when the blue line goes up the SL of a Buy trade to go up with it, but if that blue line goes down the SL should not move. And the same thing with Sells and red line.[/quote:18lyzngp]

                                      That same fxDreema!

                                      For me, everything is working ok, just do not make it back missing the SL. Each EA works with its own magic number, with no interference. What is the project that has to work, because I saw that the line of resistance climbed, but SL is not ascended.

                                      What did you do?

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

                                        Ok, honestly, I really don't understand what does not work for you. If you can tell me what block does not work as expected I can fix it, otherwise... I don't know. I just don't understand what these means - "just do not make it back missing the SL" or "Now we need to do not return for a chance to bring the SL". Maybe you are using Google Translate or my english is bad, but I just can't get what exactly is wrong.

                                        Right now I'm playing with here, only for the Buy part: http://fxdreema.com/shared/UwAhVXkfe
                                        Let's make it simple, let's work only for buys just for example. If you can make some screenshots showing the problems maybe I will understand what is wrong. I can suggest this program Lightshot to make fast screenshots.

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          Eric last edited by

                                          About the fractalchannel i dont know if it is the same version mine has a middle band?

                                          just to mention if any one else have the same problem that i got after the metatrader updates? compile?

                                          But now the buffers has change place i now use buffer 0 for high and buffer 3 for low (and buffer 2 for middle)

                                          Indicator tester is a good tool 🙂

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

                                            0, 2 and 3 sounds weird, where is 1 in the picture. Maybe the indicator has some issues, I don't know. Otherwise I use some FractalChannel with only 2 lines (red and blue), 0 input parameters and 2 buffers (0 and 1)... this one actually http://codebase.mql4.com/582

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

                                            Online Users

                                            G
                                            P
                                            M
                                            M

                                            16
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors