OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


  Current location        Thread information  
OmniTrader Professional Forum
OmniLanguage Discussion
OL error using GetClose()
Last Activity 10/5/2024 12:51 AM
3 replies, 2637 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
kmcintyre

Veteran
10025
Posts: 132

Joined: 9/12/2007
Location: Valley Center, CA

User Profile
 
Subject : OL error using GetClose()
Posted : 12/26/2014 1:25 PM
Post #23246

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
^ Top
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: OL error using GetClose()
Posted : 12/26/2014 3:55 PM
Post #23247 - In reply to #23246

Put the symbol name in quotes, unless you are using a declared string variable to hold it.
^ Top
roberthalljr

Member

Posts: 13

Joined: 3/4/2007

User Profile
 
Subject : RE: OL error using GetClose()
Posted : 12/26/2014 4:04 PM
Post #23248 - In reply to #23246

Keith, you might try putting quotation marks before and after each SPY entry (eg "SPY"). Seems to work that way.
^ Top
kmcintyre

Veteran
10025
Posts: 132

Joined: 9/12/2007
Location: Valley Center, CA

User Profile
 
Subject : RE: OL error using GetClose()
Posted : 12/26/2014 6:18 PM
Post #23252 - In reply to #23247

Thanks, guys!

Keith

Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.