I'd just like to be able to get signals for Buy: When EMA(5)>EMA(20) AND Stock @ Fresh 20-Day Highs. Exit: When EMA(20)>EMA(5) OR Stock @ Fresh 10-Day Lows (haven't incorporated the second part yet)
This is what my code reads now and its giving me the wrong signals. It gives
me BUY signals before a new 20-Day high.
Buy = EMA( Close , 5 ) > EMA( Close , 20 )
AND High > Ref( HHV( High , 20 ) , -20 );
Sell = EMA( Close , 20 ) > EMA( Close , 5 );
Short = 0;
Cover = 0;
Thanks for the help
