fxDreema

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

    MACD Histogram 0 cross buy/sell

    Questions & Answers
    5
    12
    2587
    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.
    • S
      starfactor last edited by

      Hi, i´ve created a simple EA which says that if the MACD Histrogram crosses 0 above -> buy / crosses 0 below - sell.
      Validating the data in the backtest, show´s that it´s not considering the Histogram crossing of 0 , intead it opens positions anywhere.

      Any idea how to fix it? Below a example of the sell condition setup.

      0_1597666658773_2020-08-17_14h14_02.png

      Many thanks

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @starfactor last edited by

        @starfactor in "more setting" field specify candle ID =1

        1 Reply Last reply Reply Quote 0
        • S
          starfactor last edited by

          @ambrogio thanks mate, i have changed it and updated the EA, but seems still not working as designed. Any idea on that?

          0_1597750186823_2020-08-18_13h27_29.png

          A 1 Reply Last reply Reply Quote 0
          • A
            ambrogio @starfactor last edited by

            @starfactor Be careful, you're reasoning with MACD but you're working with OSMA in your condition block, it's not the same thing

            1 Reply Last reply Reply Quote 0
            • S
              starfactor last edited by

              @ambrogio Thanks but I thought this is the setup for using the MACD Histogram for signals?

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

                This depends what you mean by "histogram". In some charting software, the histogram (grey bars) is the difference between macd and its signal line. Metatrader, on the other hand, displays the actual macd main line as histogram.

                Need small help? Tag me in your post
                Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                1 Reply Last reply Reply Quote 0
                • S
                  starfactor last edited by

                  @roar @ambrogio many thanks for your help, the build is now doing what i wanted to achieve. Thank you very much!

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

                    @starfactor please do you mind if you could share your settings link for the EA to see how you set each block. thanks in advance

                    1 Reply Last reply Reply Quote 0
                    • S
                      starfactor last edited by

                      @ebony - sure:

                      https://fxdreema.com/shared/tzlmFJgyc

                      1 Reply Last reply Reply Quote 0
                      • L
                        Luqmaan last edited by

                        I had the same issue with macd. Im not near my pc to show example for you but perhaps i can explain what u need to do.

                        So ur gna first create.

                        1.condition (Macd)
                        2.close trades (sell)
                        3.no trade (buy)
                        4.Buy now
                        5.Close trade (buys)
                        6.no trade (sell)
                        7.Sell now

                        So on 1. (Macd)
                        Ur gna select macd, Main line, candle 1

                        Value: 0

                        Then focusing on just the orrange link of condition 1.

                        On 1 (orange link)
                        Connect number 2( filter by sells) to 1
                        Connect number 3 (filter by buys) to 1
                        And connect number 4 to number 3

                        The focusing on just the yellow link of condition 1.

                        On 1 (yellow link)
                        Connect number 5 (filter by buys) to 1
                        Connect number 6 (filter by sells) to 1
                        Connect number 7 to 6

                        So it will look something like so...

                                                           Macd
                                                    /       /   \         \
                        

                        Close sell trades / \ close buy trades
                        / \
                        No buy trade no sell trade
                        | |
                        Buy now sell now

                        K 1 Reply Last reply Reply Quote 0
                        • L
                          Luqmaan last edited by

                          I forgot to mention
                          U must put macd > 0 and not macd x>0

                          1 Reply Last reply Reply Quote 0
                          • K
                            Kingphred @Luqmaan last edited by

                            @luqmaan pls I know that this post is old, but pls I have been trying to replicate the ea you've described without success, pls I need your help. Thanks

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

                            Online Users

                            M
                            M

                            8
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors