Ok, I solve the puzzle:
You're comparing two series. What you wanted instead was comparing the two recent values of the series:
if(day_close[0] > EMA20[0])
...
Look here:
http://manual.zorro-trader.com/series.htm Haha. Thanks jcl. I'm lucky you are here to save me all the time, so far
.
Ok, I will try with the code you showed me. And i'm also going to try to plot the ma too.
Thanks once again.
Beerz