fxDreema

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

    Heiken Ashi smoothed indicator into EA

    Questions & Answers
    4
    25
    5288
    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.
    • bsinclair
      bsinclair last edited by bsinclair

      I am not sure what the issue is here. I am trying to create an EA with custom indicator "Heiken Ashi smoothed" but it's not working. I have it using buffer 1 (thin signal line) crossing buffer 2 (orange & blue line) as signals. However using 2 different timeframes for signals. Master timeframe for trend direction and then slave timeline to enter trades in trend direction.

      0_1586989999037_3e3bd0ad-c7a4-4b28-8321-b0fb3480f936-image.png

      0_1586990240837_01d4ed6d-8224-4717-ba42-b5686af94a3e-image.png

      Here is the indicator: 0_1586989801742_Heiken ashi smoothed oscillator.mq5

      Here is the EA I created with fxDreema: 0_1586989906310_DP-HASO.mq5

      Any help with why this is not working would be welcomed. Thank you!

      X 1 Reply Last reply Reply Quote 0
      • X
        Xfire @bsinclair last edited by Xfire

        @bsinclair Hi. your blocks have 3 problems.

        1. Just using one Trailing stop and connect to first block yellow side(left)
        2. Indicators blocks together connect to orang connection
        3. create separate blocks for close position

        if you want i check your logic please share your project here by a link (in the menu)

        IN GOD WE TRUST

        bsinclair 1 Reply Last reply Reply Quote 0
        • bsinclair
          bsinclair @Xfire last edited by

          @xfire Thanks for the help. This is really cool. Didn't know you could share project too. Here is the link. https://fxdreema.com/shared/M34H2kAYd

          X 1 Reply Last reply Reply Quote 0
          • X
            Xfire @bsinclair last edited by

            @bsinclair it is the best structure for your blocks0_1587044925958_Annotation 2020-04-16 234735.png .
            you should create blocks for close positions

            IN GOD WE TRUST

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

              We have a problem here: how can you trail your stops if there is no position
              0_1587045512271_1babe3e5-3889-4a7e-aa4b-3703f531f7cc-image.png

              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

              X 1 Reply Last reply Reply Quote 0
              • bsinclair
                bsinclair @Xfire last edited by bsinclair

                @xfire What is the purpose of "If trade >Condition > Close Trades"? Isn't close position taken care of by the Trailing stop?

                X 1 Reply Last reply Reply Quote 0
                • bsinclair
                  bsinclair last edited by

                  @roar You have a great point.. lol.. I removed that now.. Sorry for my ignorance. Just learning here.

                  1 Reply Last reply Reply Quote 1
                  • X
                    Xfire @roar last edited by

                    @roar yes that is correct. thank you 😉

                    IN GOD WE TRUST

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

                      Its an easy fix, just connect the yellow of "no position" to the trailing stop, just like my red line.

                      If you think about it, FALSE of "no position" is the exactly same as TRUE of "if trade".

                      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
                      • X
                        Xfire @bsinclair last edited by

                        @bsinclair yes, you can just be working with Stop less.

                        IN GOD WE TRUST

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

                          @xfire & @roar - Thank you for your help!
                          I have updated the project. Link: https://fxdreema.com/shared/JxtHuimVd

                          Removed the "No position" all together and using trailing stop to close positions, but it's still not making any trades when I run optimization.

                          Now I wondering if it's my indicator and it's buffers. Any suggestions how to fix that?

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

                            @bsinclair Its your margin condition. 0 is never above 1. Change it to "return infinite"

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

                              @roar Like this?
                              0_1587048434907_844a75de-4c9d-4c42-bb2a-17a9ea72922c-image.png

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

                                @bsinclair yess

                                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

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

                                  @roar Ok. Let's see how this goes. Wish there was a way to test in Fxdreema vs. having to download, import and test in MT5. lol. But hey Fxdreema is a life saver for me, I can learn this, learning all the coding of mql5 was killing me.

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

                                    @Xfire @roar
                                    Well.. bad news.. still no trades occurring. I am at a loss now why it won't make trades. Only thing I can think of is it's the indicator and it's buffers.

                                    Here is the latest project link: https://fxdreema.com/shared/KCrYmcbJb

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

                                      @bsinclair must be the indicators, then. This is why I never use custom indicators, they are always trouble lol 😄

                                      Troubleshoot the project by breaking it to smaller parts.. The comment block and simple draw line block are great troubleshooting tools

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

                                        @Xfire @roar - Ok the indicator is not the problem!
                                        I am so furstrated now. I know this strategy is successful and just want to create EA so everyone can enjoy the profits.

                                        If anyone can create this strategy, please help!!

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

                                          @bsinclair how do you know the indi is ok?

                                          Have you tried this?
                                          0_1587221861896_d81be7d3-5d5f-4840-9a7a-07bb5e40a08c-image.png

                                          This?
                                          0_1587221875308_f7e3637f-b740-42d6-bce6-7433e2ca28ed-image.png

                                          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

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

                                            This is what I am trying to create for everyone..
                                            Using the Heiken ashi smoothed oscillator indicator (attaching below), when the HA oscillator line is above (buy) or below (sell) the HA oscillator average on 2 timeframes… 1H and 20min on EURUSD I have had 85% accuracy with my trades manually. I have done so by watching and waiting for the signal direction to be the same in both time frames. The 1H timeframe is my master for signal direction and 20m is my entry signals.

                                            Here are the inputs I would recommend for the EA to have:

                                            ///----Signal Inputs ----//

                                            ---Signal 1 (Master Trend Direction for Signal Entries)---
                                            Timeframe: "X"
                                            Pre smoothing average Period: #
                                            Pre smoothing average Method: Simple / Exponential / Smoothed / Linear
                                            Pos smoothing average Period: #
                                            Pos smoothing average Method: Simple / Exponential / Smoothed / Linear
                                            Signal Period: #
                                            Signal Method: Simple / Exponential / Smoothed / Linear

                                            ---Signal 2 (Entry Signal)---
                                            Trade Signal Mode = During Candle / Close of Candle
                                            Timeframe: "X"
                                            Pre smoothing average Period: #
                                            Pre smoothing average Method: Simple / Exponential / Smoothed / Linear
                                            Pos smoothing average Period: #
                                            Pos smoothing average Method: Simple / Exponential / Smoothed / Linear
                                            Signal Period: #
                                            Signal Method: Simple / Exponential / Smoothed / Linear

                                            //----Trade Entry & Exit Management ----
                                            Min Margin Level % for Additional Trade Entry: #
                                            Close on Opposite Signal from Master Signal: True / False

                                            //---- Time Properties ---//
                                            Use Time Properties: True / False
                                            Start Hour: #
                                            Start Minute: #
                                            Stop Hour: #
                                            Stop Minute: #
                                            Close All trades on Friday Close: True / False
                                            Friday Stop Hour: #
                                            Friday Stop Minute: #

                                            //----Money Management --//
                                            Volume Type: Fixed Lot / % of Equity
                                            Volume Value: # (allow for decimals)
                                            Target Daily Profits in ticks (0 = off): #
                                            Target Daily Losses in ticks (0 = off): #
                                            Max Number of open positions in trend (0=off): #

                                            //--- Stop Parameters --- //
                                            Take Profit (ticks, 0=off): #
                                            Stop Loss (ticks, 0=off): #
                                            Trail Start (ticks, 0=off): #
                                            Trail Distance (ticks, 0=off): #
                                            Trail Step (ticks, 0=off): #
                                            Break Even Start (ticks, 0=off): #
                                            Break Even Value (ticks, 0=off): #

                                            Heiken ashi smoothed oscillator indicator: 0_1587222265642_Heiken ashi smoothed oscillator.mq5

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

                                            Online Users

                                            M
                                            U
                                            S
                                            9
                                            S
                                            E
                                            E

                                            17
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors