How To Code Proper Heikin Ashi Candles
-
Hello,
Does anyone know how to code Heikin Ashi candles like the examples below?
Bull 1: Body larger than wicks, and upper wick larger than lower wick
Bull 2: Body larger than wicks, and only upper wick present (no lower wick)
Bear 1: Body larger than wicks, and lower wick larger than upper wick
Bear 2: Body larger than wicks, and only lower wick present (no upper wick)
Bull1
Bull2
Bear1
Bear2 -
Sadly, fxDreema does not offer any block or option measuring Heiken Ashi wicks and bodies. You will need to find a custom indicator that can do it and then try to upload it to your fxDreema account.
-
You can do that in a condition block, if a bull candle then the open is lower than the close, I'm not sure if the values returned will be correct though, and you might be better to use custom code.

-
Take Bull1 above for example: Can't we just code H_ashi_bull_upperwick as bigger than H_ashi_bull_lowerwick like attached via formula, check distance or other condition blocks?
ss

-
@allstarengin Technically it should work, but I never tried.
-
@l-andorrà But for instance, how will the bot understand what "H_ashi_bull_upperwick" is? I mean I just wrote H_ashi_bull_upperwick in variables block with letters. I think I must define the variables "H_ashi_bull_upperwick" and "H_ashi_bull_lowerwick" for the bot, but how? Is it possible and which blocks should I use?
-
@allstarengin you need some formula blocks, just for example, this one give you the upper size of a bull heiken hashi candle (the adjust's field code converts the price fraction to pips)

-
@ambrogio thank you bro, I'll try it
And as it says the adjust's field is optional, so I don't have to fill it, right? -
@allstarengin if you prefer the values in pips you must use that adjust code, otherwise you can leave it empty
-
Means eg.: yesterday USDCHF bull daily high 0.85819 minus daily close 0.85561 = 0.00258
-
thank you

-