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
Portfolio Simulation Mode
Filtering industries
Last Activity 7/31/2024 11:39 AM
2 replies, 1252 viewings

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

^ Top
TonyJ

Regular
2525
Posts: 59

Joined: 12/11/2003
Location: Marietta, GA

User Profile
 
Subject : Filtering industries
Posted : 1/5/2018 10:38 AM
Post #43956

Not sure if this is the best forum for this question so apologies in advance.

I'm looking to backtest a strategy that works off of a standard index (S&P 500, S&P 100, Nasdaq 100, etc.) but I'd like to filter out stocks that belong to certain industries (Drugs, Energy, etc.)

I'd like to do this so that the backtest uses the stocks that were in the index at the time less those stocks in certain industries.

One way would be to use OmniLanguage commands in the strategy to filter out (ignore) stocks in a given industry but I don't see a way to accomplish that.

Another thought is whether there might be a way to filter out industries via OmniScan.

I'd appreciate anyone's thoughts on how to possibly accomplish this.
^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Filtering industries
Posted : 1/5/2018 11:07 AM
Post #43958 - In reply to #43956

Either method will work, or use Dynamic Scan. Weakness is that the MG's are not historically dynamic. I don't think many if any of the gereral Indexes are either. Not sure about the latter.

You can use Group(Symbol) (or SubGroup or Sector) to find the MG group and if statements to block that symbol if it's in a group you don't want.
^ Top
TonyJ

Regular
2525
Posts: 59

Joined: 12/11/2003
Location: Marietta, GA

User Profile
 
Subject : RE: Filtering industries
Posted : 1/5/2018 12:26 PM
Post #43961 - In reply to #43956

Thanks Jim. I'll try the Group(Symbol) approach this weekend.
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.