Heiken Ashi Trade Mgnt Close by opposite signal
-
Hi 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 below with Sell/ Buy Signal, but didnt seem to work as well.
https://fxdreema.com/shared/SBCeeNgwe
Tested it in MT5 with Close Trade Block below.
Unfortunately still doesnt close trade on opposite candle.

-

I see it configured poorly, because you are telling it to buy or sell and close trades, try placing it this way (they can be done in many ways, it is just a look that I am sending) -
Hi thx for your quick reply.
So if i got you correct, left column is for detecting Trade condition and right one is for "management" with Heiken Ashi right?
I was no sure how to apply this, that i uses Heiken Ashi also as the Take Profit.
Therefore got the tip from somebody else to add block for Close Trades for opposite.Currently testing different approaches, thinking about ADX Di crosses for entry condition instead of Heiken Ashi Candle above Candle 2 and Candle of Heiken Ashi to switch from Opposite to trigger candle.
Like previous was Bear and current is Bull, Candle 1. for example.
This was my latest project:
https://fxdreema.com/shared/70vJITJjb
Please note switched to MT5 currently.
But MQL5 blocks seem to be fairly identical to MT4 in FX Dreema. -
Regarding operations and closures you have an infinite number of ways:
- close in pips
- close $
- Indicators
- Contrary condition.
etc.etc.etc.etc
-
Can you please tell me why first approach doesnt work, if under Take Profit section, cause its an in chart indicator, and Heiken Ashi is available, that it doesnt work simply this way, you know to have fewer blocks.

-
Because in your initial link you use buy and then you put close trades, it's like telling the buy to close, that doesn't make sense
-
Yeah,got that, but how about the first approach like on the latest photo.
This is how i started to apply this.
Directly with the Take Profit as Heiken Ashi opposite candle.
Then you're right the close trade block isnt necessary.Unfortuntely it doesnt work with Take Profit in the Buy/ Sell Block, like mentioned even though Heiken Ashi is available as option.
Do you know why or how to fix it?
Thx
-
For that specifically I don't know, maybe I don't understand the question (because of the translator), because I focused on answering based on the opposite condition question and not on the functioning of the Heiken Ashi
-
@fifeivkbdedwcf I see you opened a second thread for the exact same question. Please don't duplicate threads. I replied to the first one.
-
Just wondering why there is a option for Heiken Ashi Indicator for Take Profit section in Buy/ Sell Blocks.
Tried it with different settings, but trade doesnt close by the oppsoite candle.For instance if trade is a buy/ Bull, it would be easiest that in Take Profit i can select Bear candle 1 close and previous oppsite, like on the screenshot.
Why is there a option if it doesnt work that way, thought you might probably know, cause it seems you more advanced than me.
-
-
Have already delete 1 thread from before sir.
Cause there is coming new threads everyday older posts already have been disguised, really dont want to spam, if there are 10 new threads everyday, how should somebody read this please. Nobody looking to older posts, wouldn't do it either.
Just looking for an answer to the question why Heiken Ashio doesnt work by Take Profit in Buy/ Sell Block and yes got 1-2 answers but not directly to this question.
-
@fifeivkbdedwcf I replied to that same question in your other thread. Please be patient and wait for someone to reply instead of opening new threads.
-
Ok i understand, thank you
