Sorry to bother you...now its really bugging me. I get a message that says "Grammar error" Arithmetic (numeric) expression expected here. I have imported other indicators into tradestion.....even some of the ones you had in this thread. But ive never had to copy and paste the code...