I’m assuming Close is a series?

If so, you must dereference a particular element of it, like so:
Code
if(Close[0]>smaHS[1])

In other words, you cannot compare a vars to a var. You must compare a var to a var.