I wrote a code with buy / sell / short / cover signal as below. Buy and short signal are fine but it always shows wrong close signal such as sell signal after a short or cover signal after a buy. Anyone can guild me how to remove it?
Hh = HHV( H, 27 );
Ll = LLV( L, 27 );
p1 = hh - ( hh - ll )...