Dōteki Heikin Ashi (Dynamic Average Foot/Bar) - indicator for MetaTrader 4




Dōteki Heikin Ashi (Dynamic Average Foot/Bar) - indicator for MetaTrader 4


The standard Heikin Ashi candle representation has an open value that is equivalent to an Exponential Moving Average (EMA) of the Total Price, of which the alpha value of the EMA is fixed at 0.5 (equivalent to an EMA period of 3.0).

In this dynamic version, the period can be changed to whatever value one wishes to use, which also allows one to approximate multi-time-frame analysis, or use the low or high value as a sort of trailing stop-loss. The crossing of the real Close price over the Heikin Ashi open value can also be used as a signal for a change in trend direction.

Also, besides the standard EMA, this version also has the option of using an Almost Zero-Lag EMA instead, which can detect changes in trend direction more quickly, especially when using longer periods of averaging.

When attaching the indicator to the chart, you also have the option of automatically switching the Chart into the Line Graph Mode and optionally hiding the real Close prices from the Line Graph, however, without it, you will not be able to see the cross-over signals between the real Close prices and the Heikin Ashi open values.

Please, also note, that the code can be compiled for both MQL4 or MQL5 by simply changing the file extension (".mq4" or ".mq5"). Hopefully, if time permits, I will update this version with extra features in the future.

Inputs

Sample Chart


Download Dōteki Heikin Ashi (Dynamic Average Foot/Bar) - indicator for MetaTrader 4




Related News




Latest News
Asian Markets Rise as Investors Await Trade News; Hong Kong Stocks Rebound
15.11.2019 04:09
Investing.com - Asian markets rose in morning trade on Friday as investors awaited updates on the Sino-U.S. trade developments. Hong Kong stocks rebounded after falling for more than 5% so far this week. China’s Shanghai Composite was little changed at 2,910.01. The Shenzhen Component slipped 0.1%. White House economic adviser Larry Kudlow
Read more
Trump makes final pitch for Republican challenger in Louisiana governor's race
15.11.2019 04:06
By Alexandra Alper BOSSIER CITY, La. (Reuters) - U.S. President Donald Trump made his final appeal to Louisiana voters on Thursday to wrest power from the Deep South's only Democratic governor in an election later this week, seeking to showcase the power of his support in local races. Trump headlined a rally in Bossier City, marking his third
Read more
Asian shares rise as Kudlow comments lift trade hopes
15.11.2019 04:03
By Andrew Galbraith SHANGHAI (Reuters) - Asian stocks jumped on Friday, propelled by a record S&P 500 finish and White House comments suggesting Washington and Beijing were close to striking a trade deal, reviving hopes the tariff war may near an end. However, analysts said investor sentiment remained fragile after weak data from China reinforced
Read more
Australian mortgage arrears still low, little risk: RBA
15.11.2019 03:12
SYDNEY (Reuters) - Rates of arrears on home loans are at a decade high in Australia, although the overall rate is still too low to threaten financial stability or bank profit margins, a top central banker said on Friday. In a speech in Sydney, Guy Debelle, the deputy governor of the Reserve Bank of Australia (RBA), said tighter lending standards
Read more
Scorecard of Japan's 'Abenomics' stimulus policies
15.11.2019 03:09
TOKYO (Reuters) - Just as Shinzo Abe becomes Japan's longest-serving prime minister, he may be leading the world's third-biggest economy into a downturn, with little ammunition left over from his landmark "Abenomics" stimulus policies deployed seven years ago. The three arrows of Abenomics - bold monetary easing, fiscal
Read more