|
kmcintyre
 Veteran
  Posts: 132
Joined: 9/12/2007
Location: Valley Center, CA
User Profile |
This OL formula is giving me an error when used in a filter block
GetClose(SPY)>ZMA(GetClose(SPY),55)
I want to filter out buy signals unless the close of the SPY is above it's 55 period ZMA.
The error I get is "Index was outside the bounds of the array".
What am I doing wrong?
Thanks
Keith
|
|
Jim Dean
 Sage
       Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
Put the symbol name in quotes, unless you are using a declared string variable to hold it.
|
|
roberthalljr
 Member
Posts: 13
Joined: 3/4/2007
User Profile |
Keith, you might try putting quotation marks before and after each SPY entry (eg "SPY"). Seems to work that way.
|
|
kmcintyre
 Veteran
  Posts: 132
Joined: 9/12/2007
Location: Valley Center, CA
User Profile |
Thanks, guys!
Keith
|