Heiken Ashi Logic Step
In the heiken Ashi loop below, why do they differentiate the array that stores high and low data based on if the candle was bullish or bearish? Why wouldn't they always just have high and low data in the same array? Attached the full version if need to help me :)
Hi,
The ha code would translate as :
if( prev_average of buf_3_&_buf_4 < current_price_average )
{ use haLow as the top price & use haHigh as the bottom price } // this would have the effect of flipping the histogram pair to the opposite color
else
{ use haHigh as the top price & haLow as the bottom price }
In the heiken Ashi loop below, why do they differentiate the array that stores high and low data based on if the candle was bullish or bearish? Why wouldn't they always just have high and low data in the same array? Attached the full version if need to help me :)