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.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
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. ;~)
Deleting message 21294 : RE: OmniLanguage 2008 & 2009


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