Posted By: Fred7
Shift on MA - 09/12/19 21:24
I have an SMA that I shift 1 forward and it plots fine, but when I try the trade it doesn't like it.
when I plot:it shows it on the price curve and shifted 1 bar forward,
but when I try it as a condition: I get an POINTER:DOUBLE:LONG error.
Do I need to specify it as a double somewhere?
Thanx
Code
vars smaHS = series(SMA,20); \\is my series I use
when I plot:
Code
plot("SMA High",smaHS[1],0,BLUE);
but when I try it as a condition:
Code
if(Close>smaHS[1])
Do I need to specify it as a double somewhere?
Thanx