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.
    • tcanuto
      tcanuto last edited by

      Hello fxDreema. Okay with you?

      I wonder how to make an EA based on Heikin Ashi indicators and AMA.

      This will:

      • When the Heikin Ashi candle is red and cross down the line AMA: SELL.
      • When the Heikin Ashi candle is blue and cross over the line AMA: BUY.

      Basically this.

      Attached is the custom indicators.

      ......
      Heiken_Ashi.mq5
      AMA.mq5

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

        In this situation my responce is to try "Levels tester" block, because this block shows you how values are changing in time, it's something like indicator for indicators. I made it as a tool to check custom indicator buffers, because sometimes they behave weird or not working at all... it depends how the indicator is programmed. Then, when you know what your custom indicator gives to the EA, you will be able to work with it.

        You can check these indicators with "Levels tester" and if both of them are showing lines then they can be crossed. Otherwise... bad luck 🙂

        There is a block named "Indicator is visible" who probably can detect whether some indicator "is red" or "is blue". Red and Blue are just colors, but EAs and indicators works with digits, so you should find the buffer that represents this red color and the one that represents the blue one.

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

          It's also true that I have to update custom indicators system. I tried this Heiken ashi and it's not imported very well in fxDreema, but I will tell you how to do it. When you upload it, write 5 for number of buffers (it shows 1). Then, name buffers something like this:

          Open
          High
          Low
          Close
          Color (0=Blue, 1=Red)

          The last buffer (4) describes the color, and use Condition to check what is the color. ==0 for blue and ==1 for red candle. Other buffers (0,1,2 and 3) are for all the candle parts, obviously.

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

            I tried this but do not know if this correct. Please see if I have done correctly. If not correct, please tell me how to so I can learn.

            http://fxdreema.com/shared/2MfrUit1e

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

              Yes, and if you choose buffer #4 you will see 0 and 1 around candles 🙂

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

                __Yes, and if you choose buffer #4 you will see 0 and 1 around candles :)[/quote:2ipezydy]
                I'm sorry but I do not know how to do this. The translator does not help much. I'll be grateful if you can do for me that I may learn how to do.

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

                  Well, meanwhile I fixed some things, now it uploads this indicator with 5 buffers. Buffer #4 (last one) is the one that is used for color.

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

                    Done this way, but still not working. What is missing?

                    http://fxdreema.com/shared/IGYZsjtce

                    Attached is the log file.

                    ......
                    20131016.zip

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

                      I see things like:
                      KL 2 20:13:28 Tester program file Indicators\Heiken_Ashi.ex5 read error

                      HH 2 20:13:42 Custom Indicator loading of Heiken_Ashi EURUSD,M1 failed

                      And it works for me... but too many positions.

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

                        __I see things like:
                        KL 2 20:13:28 Tester program file Indicators\Heiken_Ashi.ex5 read error

                        HH 2 20:13:42 Custom Indicator loading of Heiken_Ashi EURUSD,M1 failed

                        And it works for me... but too many positions.[/quote:hkjkebc9]

                        Funny because it did not work for me no order whatsoever. Opened several filtered out because I did not order one at a time. Auditioned by brokerage ActivTrades. What can be wrong is? I'll try again.

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

                          Tell me how to get, as tested on two different platforms and still no negotiations.

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

                            The last problem was that .ex4 file cannot be read... for whatever reasons. Try to compile this indicator from .mq4 file with MetaEditor that belongs to the installed MetaTrader.

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

                              Got a better indicator of Heinken Ashi for MT4. Only I am not able to run along with the Heiken Ashi indicator mtf sw. I've tried several ways, but nothing.

                              Here is my project: http://fxdreema.com/shared/eLdxQ538b

                              This indicator has the buffers, but do not think the right combination. Should work as the image below.

                              Could you make me an example with this indicator function properly?

                              "Heiken Ashi dojiSpooter" white - And - "Heiken Ashi mtf sw" blue = Buy.
                              "Heiken Ashi dojiSpooter red" - And - "Heiken Ashi mtf sw" Red = Sell.

                              Yellow candle not negotiate.

                              http://charts.mql5.com/2/886/gbpusd-m1-activtrades-plc-sistema-de-com-rcio-com-rcio-de-swing.png

                              ......
                              Heiken_AshiH_sw_mtf.mq4
                              HeikenAshi_DojiSpotter.mq4

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

                                Post above updated.

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

                                  I don't understand this indicator, but I can say two things.

                                  • No indicator returns boolean values, the only datatype that a custom indicator returns is "double" (numeric, floating point number). But if you compare numeric value with boolean, it will probably think of the boolean value as 0 and 1. In any case buffers 3 and 4 of this indicator does not return values that can be described as boolean.
                                  • I noticed that buffers 3 and 4 does crossovers, so if needed you can use crossover to detect when they change their positions.

                                  Buffers are always with some value, so I think you can't detect when certain color is present by asking if that buffer is > 0. But this can probably be said by comparing buffer with buffer... I notices that they overlap somehow, and I don't understand how, but it should be some rule for that.

                                  About "Signals" blocks... each of them has internal memory that knows the last state, but this somehow makes them "soft" and not reliable. If the EA is restarted, all states are reset. So, if possible, don't use this block.
                                  Such a flip-flop behaviour (to create buy-sell-buy-sell strategy) can be created with checking what type of trade is currently running in the moment when conditions happens. But if this is not your case and you only want to draw arrows... fine, no need to check trades.

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

                                    This was some example that I used days ago to show something... and here you can see how buy-sell-buy-sell rule can be made without "Signals" block. This is the better way.

                                    http://fxdreema.com/shared/HhJKocjGd

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

                                      Thank fxDreema. Crosswalks worked in parts. Some operations that I think should open did not work.

                                      Now I am not able to operate the lock with a SL in support or resistance based on indicator FractalChannel. Seems so simple this bookmark. What should be happening? Instead of fixing the Support or Resistance in SL, the SL is following the market without stopping.

                                      Here is the link design SL PriceChannel: http://fxdreema.com/shared/Rk4emR9pe

                                      Attached. Where am I going wrong

                                      ......
                                      FractalChannel.mq4

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

                                        Hello fxdreema.

                                        How can I work with the indicator described in the post above?

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

                                          Is this "Dynamic value (pips input)" the correct one? I think that "Dynamic value (price input)" is the correct one.

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

                                          Online Users

                                          V
                                          C

                                          13
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors