fxDreema

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

    Heiken Ashi Close by opposite signal

    Questions & Answers
    3
    21
    1199
    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.
    • F
      fifeivkbdedwcf last edited by fifeivkbdedwcf

      Hello guys,

      i tried to build an EA for Heiken Ashi.
      Would like to close trade when opposite signal for HA candles appear.
      Currently testing different approaches as well.

      Under Buy/ Sell Block under Take Profit, cause its an in chart indicator tried with " Custom Price Level" with indicator of Heiken Ashi and chose the opposite type.

      Stop Loss is calculated for ATR Multiplier for external Chart indicator which works perfectly fine. Dont know why Heiken Ashi isnt working.

      When testing in Metatrader, when trades run in profit it isnt closed.

      Also tried with Close Block with Sell/ Buy Signal, but didnt seem to work as well.

      https://fxdreema.com/shared/SBCeeNgwe

      l'andorrà F 2 Replies Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @fifeivkbdedwcf last edited by

        @fifeivkbdedwcf You can do something like this:

        01.png

        Then you can change the 'chosen candle type' option for the opposite side. What is important is selecting candle ID 1 as the one to check. That means the previous candle. It will work better with a 'once per bar' block on top of it.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • F
          fifeivkbdedwcf @fifeivkbdedwcf last edited by

          @fifeivkbdedwcf

          Hi @l-andorrà

          Thx for your reply.

          So under the Buy/ Sell Block you would select non for Take Profit and only add the Close Trade Block like you suggested?

          1 Reply Last reply Reply Quote 0
          • F
            fifeivkbdedwcf last edited by fifeivkbdedwcf

            Please note also switched to MT5 might be the same then right?
            One more question, can i also add 1 Block in general for both Buy/ Sell conditions, when they are the same, like a trailing Stop for instance, when i would link it below for both Buy and Sell?

            https://fxdreema.com/shared/MZFyOxEre

            HA.png

            1 Reply Last reply Reply Quote 0
            • F
              fifeivkbdedwcf last edited by fifeivkbdedwcf

              Tested it in MT5.
              Please note its without the trailing stop block.
              Unfortunately still doesnt close trade on opposite candleMT5 Test.png

              1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà last edited by

                You need to create three separate block trees. One for launching trades only. In your example that would include blocks 1,2,5,6,7,8. Then a second separate block tree with the structure I suggested. That one will be dedicated to close trades only. Then a third one for the trailing stop structure. Combining all of them as you did is the reason why you're finding weird results.

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                F 1 Reply Last reply Reply Quote 0
                • F
                  fifeivkbdedwcf last edited by fifeivkbdedwcf

                  Hi, do i need for second block structure a if statement as well?

                  Is this like you suggested?

                  Did replace the idea for trailing stop for now, dont know if it might be really that useful.

                  https://fxdreema.com/shared/LDczeeRrb

                  1 Reply Last reply Reply Quote 0
                  • F
                    fifeivkbdedwcf @l'andorrà last edited by fifeivkbdedwcf

                    @l-andorrà

                    Could you please tell me why i simply cant apply this directly from the buy sell take profit section?

                    Tried it with different settings, but trades doesnt close by heiken ashi.
                    Why is there a option to selected Take Profit by indicator/ in chart, Custom price level, when it doesnt work that way?
                    Just asking cause you seem more advanced in this whole coding game.

                    original-idea.png

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

                      @fifeivkbdedwcf

                      HEIKEN ASHI.PNG

                      F 2 Replies Last reply Reply Quote 0
                      • F
                        fifeivkbdedwcf @ambrogio last edited by fifeivkbdedwcf

                        @ambrogio

                        Hi thank you for post.

                        Changed the idea to use Heiken Ashi for Entry as well recently.
                        Therefore would like to only use it for Trade Mgnt to close when for long position the opposite appears and short vise versa.

                        Do add those condition blocks as seperate "if trade" statement or do you add them for Buy and Sell conditions just below entry condition blocks?

                        Moreover in Buy Sell Block you would the leave Take Profit for Non right?

                        Just asking for curiosity why is there an option in Buy Sell block to close position by indicator like Heiken Ashi with " Custom Price Level" by this doesnt help with closing position?original-idea.png

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

                          What i also noticed, why did you add condition to draw arrow, it this necessary for closing the trade in the EA?

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

                            @fifeivkbdedwcf you are asking a take profit level (is not an opposite close) at these condition:

                            1- bear heiken ashi ID 1 ........are you sure that candle ID1 is a bear heiken ashi candle? it's only a guess, also if you put candle ID 200

                            2- in the case if the candle is bear, is the take profit level a valid price or maybe too close at open price or worst at the wrong side?

                            F 2 Replies Last reply Reply Quote 0
                            • A
                              ambrogio @fifeivkbdedwcf last edited by

                              @fifeivkbdedwcf i put an arrow only just to see on chart when the condition is met. My example shows where the color change. Try it in a visual backtest and you can see

                              1 Reply Last reply Reply Quote 0
                              • F
                                fifeivkbdedwcf @ambrogio last edited by

                                @ambrogio

                                Hi,

                                So you mean that even if would change Change Id to variable and would use this instead Heiken Ashi still would be working correct as Take Profit?

                                I heard from other people that you should use Candle ID 1 for Heiken Ashi cause it is an average indicator and if you would make it to get signal from open this didnt work for me either.

                                What i dont still get tho is, why can you use Heiken Ashi either as condition or indicator is visible block and it works, but it is available in Take Profit but doesnt work.

                                Yes but with opposite i thought cause there is Heiken Ashi already added to chart.
                                That for buy trade it would look for opposite candle to close and vise versa.

                                Ok got that with the arrow, but probably when trade is closed this would be enough i think, but good idea anyway.

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

                                  @ambrogio

                                  Do you mean i would make it like on the pic to add a " If position" side where it can be close by heiken ashi?

                                  A l'andorrà 2 Replies Last reply Reply Quote 0
                                  • A
                                    ambrogio @fifeivkbdedwcf last edited by

                                    @fifeivkbdedwcf said in Heiken Ashi Close by opposite signal:

                                    @ambrogio

                                    Do you mean i would make it like on the pic to add a " If position" side where it can be close by heiken ashi?

                                    https://fxdreema.com/examples buy sell on opposite condition
                                    Replace the condition blocks in this example with the two blocks i showed you above in my picture (block #2 and block #4)

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

                                      @fifeivkbdedwcf said in Heiken Ashi Close by opposite signal:

                                      @ambrogio

                                      Hi,

                                      So you mean that even if would change Change Id to variable and would use this instead Heiken Ashi still would be working correct as Take Profit?

                                      I heard from other people that you should use Candle ID 1 for Heiken Ashi cause it is an average indicator and if you would make it to get signal from open this didnt work for me either.

                                      What i dont still get tho is, why can you use Heiken Ashi either as condition or indicator is visible block and it works, but it is available in Take Profit but doesnt work.

                                      Yes but with opposite i thought cause there is Heiken Ashi already added to chart.
                                      That for buy trade it would look for opposite candle to close and vise versa.

                                      Ok got that with the arrow, but probably when trade is closed this would be enough i think, but good idea anyway.

                                      simply don't use it for take profit level

                                      F 1 Reply Last reply Reply Quote 0
                                      • l'andorrà
                                        l'andorrà @fifeivkbdedwcf last edited by

                                        @fifeivkbdedwcf Man, I understand you want a quick response for your questions, but opening many threads and taking previous threads to ask the same over and over is not the way this forum works!

                                        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                                        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                                        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          fifeivkbdedwcf @l'andorrà last edited by

                                          @l-andorrà

                                          Ok got it, but do have a solution for heiken ashi Take Profit please?

                                          What i dont get is, that is works perfectly as condition block to open position,

                                          but same indication as take profit doesnt work, even though is is available as option to make it use in chart indicators as take profit, like others like parabolic sar,
                                          would work as well.

                                          I've double checked, dont should be used as custom price fraction indicator like ATR, MACD... better custom price level.
                                          Checked for both open and close price from HA and also with or without Candle ID 1.

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            fifeivkbdedwcf @ambrogio last edited by

                                            @ambrogio

                                            Sorry but this isnt helpful, because that is the main purpose of using Heiken Ashi for this strategy.

                                            When trade is open that the EA dont close trade way to early.

                                            Backtested it a lot, that fixed Pips Take Profit is way to strict and every trade is unique for stop loss level as well, therefore chose the SL based on Balance in % of *2 ATR,
                                            but otherwise isnt good to always make it Take Profit based on ATR multiplier for instance, because often Take Profit isnt reached, and Heiken Ashi would indicate perfect exit signal which great profit for each individual trade.
                                            Some Trades take longer and some would be better to be closed earlier if momentum changes.

                                            When using other indicators as Take Profit, Bollinger Bands for instance this would reduce profitable trades way to early when successful.

                                            Also noticed that simple trailing stop based on indicator would also be to strict, cause market fluctuation is normal and trade would be close to earlier, Heiken Ashi would stay most of the times in trend color and market has good room to expend.

                                            Found that Heiken Ashi is perfect Trade Mgnt/ Exit indicator.

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

                                            Online Users

                                            N
                                            M
                                            M
                                            E
                                            J
                                            K
                                            T

                                            17
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors