I have an SMA that I shift 1 forward and it plots fine, but when I try the trade it doesn't like it.
Code
vars smaHS = series(SMA,20); \\is my series I use


when I plot:
Code
plot("SMA High",smaHS[1],0,BLUE); 
it shows it on the price curve and shifted 1 bar forward,

but when I try it as a condition:
Code
 if(Close>smaHS[1]) 
I get an POINTER:DOUBLE:LONG error.

Do I need to specify it as a double somewhere?

Thanx