Smoothed Heikin Ashi
-
Hi,
I am trying to create an EA that buys when the smoothed heikin ashi indicator turns green and sell when the heikin ashi turns red.
Attached is the indicator. Can someone show me how it can be done?[0_1528996351234_Heiken_Ashi_Smoothed.mq4](Uploading 100%) -
@b-seow said in Smoothed Heikin Ashi:
Heiken_Ashi_Smoothed.mq4
Better find out what is inside the output buffers with that Trace block. Here is an example of how to use it: https://fxdreema.com/demo/mt4-trace-multiple
What I can tell you for Heiken Ashi is that even the built-in Heiken Ashi indicator (that comes with MetaTrader) is a little bit weird. The information in the output buffers is not that easy to use. There is also difference between MT4's version and MT5's version of this indicator, they don't output the same kind of information. So, in fxDreema I added extra layer of input and output parameters, so the indicator can be used in the same way in MT4 and MT5, easily.

Look at those input parameters above... they don't exist in the original indicator that is used.
Look at how buffers switch from top to bottom and from bottom to top (and the pink and yellow lines cross):

How to detect the first red candle... it appears when the Buffer 0 (the yellow line) crosses Biffer 1 (the pink line). Try something like this:

-
@fxdreema Can you share the Heiken_Ashi-Smoothed indicator?