Heikin Ashi Problem Cannot Open Trade - MT4
-
I am struggling to use Heikin Ashi in FX DREEMA. I simply cannot even get it to open any trades. (I can easily build basic cross over EA's and a few others, But I cannot get Heikin Ashi to work)
This is a simplified version of what I need.
Condition 1 - No TRADE
FOR Buys Condition - If previous DAILY Heikin Ashi is Bullish AND the Hourly Heikin Ashi's turns from bearish to bullish - Enter buy
FOR Sells Condition - If previous DAILY Heikin Ashi is Bearish AND the Hourly Heikin Ashi's turns from bullish to bearish - Enter SellAny help would be appreciated
Julian -
Can you please share your project?
-
Hi there! Thank you for the reply.
Here is a link to the current state of the EA. This is just a basic form of the final product, but as I mentioned, I cannot even get this to work.
If you can provide a solution I would be so happy, it's frustrating the crap out of me.https://fxdreema.com/shared/b9XLmVHed
Thats the link.
Julian
-
@julianrbach Firstly I recommend you to specify cabdle ID 1 in all operands of all 'condition' blocks leading to both 'buy/sell now'. Secondly I recommend to use numbers instead of names to identify blocks.
-
Ok let me try that! Thanks
-
-
Ok so I did that, tried it on the Strategy Tester, but nothing is happening at all.
Also tried it on a regular chart, and I get a error stating that it cannot load the .ex4 file.
I first took the mq4 file into the Meta Editor, and then compiled it there (without error) and saved it in my experts folder. So I have no Idea what is the issue.
-
Just as a final check - I changed all the condition blocks to Moving average conditions. And that worked perfectly.
BUT
As soon as I use the Heikin Ashi in the condition blocks it does not work. Do I need a specific Heikin Ashi indicator to make this work? -
@julianrbach Before doing that could you please tell me why you need the daily HA close price should be above 0? That condition is always true. Any price will always be above 0. What are you exactly looking for?
-
@l-andorrà
Lets just look at the BUY leg of this for simplicity.If yesterdays DAILY Heikin ashi bar closes Bullish, only then should it pass to the second condition (Where it focus on the hourly candles and the specified conditions).
But now you metioned that this first condition will always pass as TRUE. Is there a way to set up the first condition so that if the DAILY Heikin Ashi closes as Bearish, it will NOT pass to next condition?Is there a way to have a condition block, that includes Heikin Ashi, to result in TRUE if Bullish, and FALSE if Bearish?
Thanks for all your feedback up to now.
Julian -
@julianrbach Not directly. You can try something like this:

In this example I'm comparing the open price of yesterday's Bull HA daily candle with today's open price. If this condition is true, any other condition connected below this one will be checked.