|
lorin
 New User
Posts: 2
Joined: 7/25/2010
User Profile |
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.
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
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]
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
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?
|
|
lorin
 New User
Posts: 2
Joined: 7/25/2010
User Profile |
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.
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
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. ;~)
|