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 Upgrade Forums
ATM
ATM Method failing test with Option Errors
Last Activity 4/21/2021 9:48 AM
9 replies, 1167 viewings

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

^ Top
LSJ

Legend
500
Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : ATM Method failing test with Option Errors
Posted : 10/1/2018 9:07 AM
Post #45507

I am testing an ATM method with several market states each with a separate stock list and filter.
The test invariably fails and produces no port sim results.

The error is:



There are no option related references in any of the strategies or market states.
The market states are identical except for symbols but the one in the box is the one producing the error.



This is the ATM log list produced. All the references to optstats don't seem right but what do I know.



[Edited by LSJ on 10/1/2018 9:31 AM]

Attached file : optstats.jpg (39KB - 652 downloads)
Attached file : method.jpg (107KB - 669 downloads)
Attached file : ATM log.jpg (229KB - 654 downloads)

^ Top
Barry Cohen

Sage
5000100010010010025
Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/1/2018 3:04 PM
Post #45515 - In reply to #45507

This has nothing to do with options. I'm not 100% sure, but I will take a guess given what I'm seeing in your screenshots. You have a market state with the name "Real Estate Bullish Hotel/Motel". A csv file is created for every market state that is in use.

The following characters are restricted for use in Windows filenames: /?<>\:*|"

Since your market state uses a /, it's probably failing to create a file based on it & giving you that message. So you might be able to easily fix it if you rename the market state.

And if you copied that method from someone, & this is the issue, you might want to tell the method creator the same thing.

^ Top
LSJ

Legend
500
Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/1/2018 4:21 PM
Post #45516 - In reply to #45507

Naw, I made that mistake all by myself. The errors it was throwing diverted me from the simple.

Thanks.
^ Top
LSJ

Legend
500
Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/2/2018 7:16 AM
Post #45518 - In reply to #45515

On the naming issue I still get the error "illegal characters in path". I am using a list directly from Omniscan which seems to have the illegal character once that list is in my focus list.





[Edited by LSJ on 10/2/2018 8:37 AM]

Attached file : Omniscan homo.jpg (90KB - 619 downloads)

^ Top
Barry Cohen

Sage
5000100010010010025
Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/2/2018 10:33 AM
Post #45520 - In reply to #45518

What you showed initially was the market state had the invalid name. I'm not sure how you are using the OmniScan lists with ATM.
^ Top
LSJ

Legend
500
Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/2/2018 10:52 AM
Post #45522 - In reply to #45520

Yes, I imported this list and many others from Omniscan into the focus list. I then named market states the same to keep it organized so I would know what is in the state. When I created the state I copied the name of the list and overlooked the illegal character.

Now though, even though I have deleted the "Hotel/Motel" market state and created a new state just "Hotel Motel" I still get an error. I believe because the "Hotel/Motel" Omniscan list is still in the focus list.

I removed that Omniscan list from the focus list, did a copy of it and named it without the "/" and added it to my focus list.

I restarted OT, removed all temp and results files and am re-running the backtest. So far, so good at 75%.

Can you confirm that the Omniscan list with a "/" in the focus list does not propagate or cause an error because maybe I'm looking for lists in all the wrong places <:)



[Edited by LSJ on 10/2/2018 10:53 AM]

^ Top
Barry Cohen

Sage
5000100010010010025
Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/2/2018 12:09 PM
Post #45523 - In reply to #45522

I'm not aware of any circumstance that causes an OmniScan list to be inserted into a Windows filename. If you hadn't restarted OT before that would be why it might've not fixed it.
^ Top
LSJ

Legend
500
Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/3/2018 9:33 AM
Post #45526 - In reply to #45523

After struggling with this for days I finally found it. Thad found indications that the brokerage.otd and the ATM ITS files were involved. Those were replaced but the problem persisted. The error messages and log pointed to a lot of things that were not it.

It turns out that the answer was in the symbol for some user data indexes. There were not illegal characters but OT didn't like something about it, probably the length (what is the a limit for a symbol length?). They have all been removed and OT just finished a successful backtest. Whew!


^ Top
LSJ

Legend
500
Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/4/2018 8:31 AM
Post #45535 - In reply to #45507

Thought it was fixed but not quite.

The ATM method in question consistently does this:

Analysis runs in real mode and populates AT Focus List column.
Switch to Port Sim and run analysis always results in "illegal Characters in Path" and aborts.

Excerpt from log:
10/4/2018 6:57:50 AM Mode change from Real Mode --> Portfolio Sim.
10/4/2018 6:57:50 AM Creating charts table.
10/4/2018 7:00:12 AM Error 5: Illegal characters in path..
Occured in routine - CEquity .RunEquitySimulation

Any suggestions?

^ Top
Barry Cohen

Sage
5000100010010010025
Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: ATM Method failing test with Option Errors
Posted : 10/4/2018 9:28 AM
Post #45537 - In reply to #45535

Does your market state or other market states still have an invalid character? If not, try deleting your ...OT2018/VBA/ITS folder before starting OT.
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.