Take this as a little puzzle: What is wrong with this comparison?
if (day_close > EMA20)
...
Hmm,
My first thought is that maybe there's no differnece between day_close and EMA20 since I've typed "vars EMA20 = series(EMA(day_close,20));" before? So the computer doesn't understand what I mean. And by the looks of the result-chart... It enters a trade almost every day ^^.
Thanks jcl for helping me out.
Beerz