Hello,
I want to write my own Heiken Ashi alert, I want to know when the Heiken Ashi's bar change color on all the time frames at once.
But first off I'm struggling to calculate the Heiken Ashi Values. Here is the formula:
Description: Heikin Ashi charts calculate their own open (HAO), high (HAH), low (HAL), and close (HAC), using the actual open (O), high (H), low (L), and close (C), of the time frame (e.g. the open, high, low, and close, of each five minues).
Calculation:
HAO = (HAO-1 + HAC-1) / 2
HAC = (O + H + L + C) / 4
HAH = Highest(H, HAO, HAC)
HAL = Lowest(L, HAO, HAC)
Now, the problem is the following. To calculate the HAO you need the previous HAO. The calculate the previous HAO you need the previous previous HAO. What is the initial HAO value?
I'm not sure if I understand this correctly please help me out.
Thanks!
I want to write my own Heiken Ashi alert, I want to know when the Heiken Ashi's bar change color on all the time frames at once.
But first off I'm struggling to calculate the Heiken Ashi Values. Here is the formula:
Description: Heikin Ashi charts calculate their own open (HAO), high (HAH), low (HAL), and close (HAC), using the actual open (O), high (H), low (L), and close (C), of the time frame (e.g. the open, high, low, and close, of each five minues).
Calculation:
HAO = (HAO-1 + HAC-1) / 2
HAC = (O + H + L + C) / 4
HAH = Highest(H, HAO, HAC)
HAL = Lowest(L, HAO, HAC)
Now, the problem is the following. To calculate the HAO you need the previous HAO. The calculate the previous HAO you need the previous previous HAO. What is the initial HAO value?
I'm not sure if I understand this correctly please help me out.
Thanks!