Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() | 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. ;~) |