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 will not compile?
Last Activity 7/6/2025 3:47 AM
4 replies, 1495 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 will not compile?
Posted : 3/25/2019 3:36 PM
Post #30332

I updated OT2019 over the weekend to pre-release 2p.

Today I tried to compile an OL indicator. No luck.

Please see the attached png.

The error message appears to be saying there is an issue with the VB compiler?

How should I proceed?

Thanks

Keith

Attached file : OL compile error.png (89KB - 191 downloads)

^ Top
Jim Dean

Sage
2000100010010010010025
Posts: 3433

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

User Profile
 
Subject : RE: OL will not compile?
Posted : 3/25/2019 3:44 PM
Post #30333 - In reply to #30332

It's a generic message. It means something bad happened during compile.

Standard procedure is to
1. close OT and delete all VBA/Temp files
2. restart OT and watch bottom left messages like a hawk to see if any compile errors occur
3. fix the things that didn't compile properly

... this could include MANY things ... OLang, CC, any OScripts anywhere, Strats, etc.

Most often, it's an inadvertent change to an OLang routine ...
^ Top
kmcintyre

Veteran
10025
Posts: 132

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

User Profile
 
Subject : RE: OL will not compile?
Posted : 3/25/2019 4:03 PM
Post #30334 - In reply to #30332

Thanks Jim

restarting OT is raising a dialog about compile errors. I see SAMA and DAMA lines called out. I will reload Trade Secrets 1 assets.

The vb temp files are in …/OT2019/vba/temp?

While I have you, do you know what BarMonth and BarDay (I think I have those names right) return? Are they integer functions?

Thanks again...



^ Top
Jim Dean

Sage
2000100010010010010025
Posts: 3433

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

User Profile
 
Subject : RE: OL will not compile?
Posted : 3/25/2019 7:35 PM
Post #30335 - In reply to #30334

yes re the Temp folder

BarMonth() returns 1-2
BarYear() returns a four-digit year
BarDayOfMonth() returns 1-31
BarDayOfWeek() returns 1-7 (I don't recall offhand if Sun or Mon is 1)
BarHour() & BarMinute are similar.

You can simply plot any of these with a quick indicator, to illustrate
^ Top
kmcintyre

Veteran
10025
Posts: 132

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

User Profile
 
Subject : RE: OL will not compile?
Posted : 3/25/2019 9:30 PM
Post #30336 - In reply to #30332

all resolved...

thanks

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.