OmniTrader Forum OmniTrader 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 Archives
OmniTrader 2009 Technical Support
OmniLanguage 2008 & 2009
Last Activity 12/17/2020 7:15 AM
4 replies, 1609 viewings

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

^ Top
lorin

New User

Posts: 2

Joined: 7/25/2010

User Profile
 
Subject : OmniLanguage 2008 & 2009
Posted : 7/25/2010 12:59 PM
Post #21254

Recently I attempted plotting Alex indicator indSafeZone.txt posted at
http://www.omnitrader.com/omnitrader/proforum/thread-view.asp?threadid=1544&posts=16 . This indicator plots fine in OT2008 but plots incorrectly in OT2009. I appreciate assistance in making it work in 2009 as well. Thanks.
^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: OmniLanguage 2008 & 2009
Posted : 7/25/2010 1:45 PM
Post #21255 - In reply to #21254

OmniLanguage changed significantly from 08-09. There were also some small changes 09-10, regarding Stops, as I recall.

What version of OT do you have? I can work on 2010, but I can't guarantee it will work in an older version.

Are you willing to upgrade to 2010 if necessary?

Do you need just the indicator, or also the Stop, that is provided in that thread?

[Edited by Jim Dean on 7/25/2010 1:49 PM]

^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: OmniLanguage 2008 & 2009
Posted : 7/25/2010 1:57 PM
Post #21256 - In reply to #21255

I just checked the two Ind's that are in that thread ...

The first one, indSafeZone, gives odd results

The second one, indSafeZoneDetrended, gives what looks at quick glace to be correct results.

Mike thought that the second one was better.

Which are you referring to?
^ Top
lorin

New User

Posts: 2

Joined: 7/25/2010

User Profile
 
Subject : RE: OmniLanguage 2008 & 2009
Posted : 7/27/2010 10:10 AM
Post #21293 - In reply to #21256

Thanks for responding Jim. indSafeZone is the one I noticed the problem. There are a few differences such as "_" for line continuation in Omnilanguage. In OT2009 it requires a space while in 2008 it doesn't. It will be helpful if there is a post that summarize the differences.
^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: OmniLanguage 2008 & 2009
Posted : 7/27/2010 10:37 AM
Post #21294 - In reply to #21293

Will the revised ind code work for you? It seems just fine on my machine.

Yes the line-continuation does require " _" ... like other VB code.

Another difference is that 2008 requires explicit code to "carry forward" a "global" variable's value from one bar to the next, ie
MyVariable = MyVariable[1]
This is handled automatically by 2009. Problems can be created if the 2008 version did NOT include that line - thus presuming the new-bar's "MyVariable" is zero, when in 2009 it won't be. Easy to fix, though.

At least one "system" variable (Symboldata.Numrec) had a different name in 2008 ... or at least had a cousin that went AWOL in 2009.

As I recall there are some differences in how 2008 & 2009 handle nested functions.

Can't remember the rest offhand.

If you want more info, you really should shift this line of inquiry over to the OmniTraderPRO forum, since OLang is not supported by the Base OT version. I'm sure that Barry or Matt can point you to the doc from way-back that explains the differences. Or, you could use Search on that forum. ;~)
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.