Whole market search for RSI criteria
Author: Larcher600
Creation Date: 6/21/2019 12:54 PM
profile picture

Larcher600

#1
WHAT I AM TRYING TO DO IS HAVE A SEARCH FOR WHOLE MARKET SCREEN TO FIND AS AN EXAMPLE:TO FIND RSI SIGNAL ON ALL STOCK AND TO SET WHAT LOOK I WANT SUCH AS A 30% BUY.
profile picture

Eugene

#2
We hear you. There's no need in shouting: Writing in All CAPS Comes Across As Shouting

What you're after can be accomplished by a special kind of WealthScript Strategy called a "screener". You'll find instructions in the Wealth-Lab's Help menu > WealthScript Programming Guide > Techniques > Creating a Screener. There, "An Example Screen" even contains an RSI example code.
profile picture

superticker

#3
QUOTE:
... to ... have a search for whole market screen ...
If you want to screen over the entire market, then just use the Fidelity stock screener, https://research2.fidelity.com/pi/stock-screener#strategies, to capture what stocks meet your criteria. Once that's done, you can selectively add those stocks to a Fidelity watch list (via the check boxes) up to 50 stocks. Afterwards, the WL Data Manager can import that website watch list into Wealth Lab.

You can use any website screener for the above. The only advantage of the Fidelity website screener is its easily imported into a website watch list and then into Wealth Lab. But other web-based screeners work too.

You can also use WL to screen stocks as discussed in Post# 2, but the stocks to be screened this way must already exist in a WL dataset. With this WL screener approach, you can use any WL indicator (such as RSI) to screen the stocks.

In practice, I use "tiered" screening. So I employ the Fidelity website screener for the first tier, then WL screening for the second tier. There's really a third tier where you match the remaining stocks (which passed tiers 1 and 2) to a "specific" WL strategy say with the WL Strategy Ranking tool in the WL Tools menu. You want to make sure the stocks you eventually retain are matched up with the appropriate WL strategy such that their equity curve is positive going. And the ScoreCard metrics in the Strategy Ranking tool let you evaluate that.
profile picture

Larcher600

#4
sorry for the caps eugene I am new guy as far as asking questions and it shows.
I do thank you for the answer and I will try to make it work.

profile picture

Larcher600

#5
Superticker thanks for the info I do use the screeners in trader pro but I will check out the link to see if I can get the look I want with RIS
Were I just started learning WL I guess it will make more sense as I get into programming.
Are there any good examples or tutorial for implementing .
profile picture

superticker

#6
QUOTE:
... I do use the screeners ... I will check out the link to see if I can get the look I want with RSI
There are "paid" web-based screeners that can screen based on the RSI itself. (Since this is a WL forum, I probably can't mention third-party products, but you can google search for them.)

But my example of tiered screening (bottom of Post# 3) is the best way to do it. Employ the Fidelity screener (tier 1) to capture all stocks with the highest recent performance, then use WL screening (as discussed in Post# 2) for tier 2 to screen the tier-1-passed stocks for RSI features, see http://www2.wealth-lab.com/WL5Wiki/RSI.ashx. And then tier 3 screening to fit the remaining stocks into a specific WL trading strategy with the Strategy Ranking tool.

If you're just starting out, then you only have one strategy to test, so you don't need the Strategy Ranking tool. But after you fit the parameters for your one WL strategy, you should:

1) Be sure the strategy equity curve for each stock has a positive slope before accepting that stock into your WL trading dataset(s).
2) Be sure you don't over fit the strategy (PV) parameters. You ideally want to have at least 5 DFs (degrees of freedom) for error for any given stock.

From your Stat 101 textbook: #of trading cases = DF for model + DF for error

So to get 5 DF for error in a 3 parameter (PVs) model you need a minimum of 8 trades when the WL optimizer sets your model PVs for a given stock. Anything short of that is a crap shoot (over fitted). I do sometimes trade stocks with only 2 DF for error, but I do that at my own risk.
profile picture

Larcher600

#7
Wow thanks for your for patience .
I just finished the tutorial by Fidelity and I can understand more of what your saying in the # 1 tier bring in Fidelity Watch list as an example to screen first using Fidelity .
Still one question I have after all go thru all the tiers you talked about will WL do a search, just to see if any stock in my watch list meets the criteria or does just do back testing to see my strategy would have worked.
I have been doing Technical charting for about 20 years and love it , I was lucking enough to be taught by a very good trader that gave lessons to a group of us,
What I am trying to do is I know the look I want, I just want to less searching.
profile picture

Eugene

#8
QUOTE:
will WL do a search, just to see if any stock in my watch list meets the criteria or does just do back testing to see my strategy would have worked.

With WL you can have it both ways. A technique to scan for patterns that meets your criteria is in my post #2. At the same time the logic can be backtested using a separate WealthScript Strategy if you like.
profile picture

superticker

#9
QUOTE:
to see if any stock in my watch list meets the criteria or does just do back testing to see my strategy would have worked.
We are talking about both tiers 2 and 3 here. I would use separate strategies for both tiers 2 and 3.

Tier 2, as discussed in Post# 2, is employing a strategy which only needs to perform a trade on the "off-the-chart bar" (i.e. the Bars.Count bar, not the Bars.Count-1 bar) to generate an Alert. Recall, Alerts are only generated for the off-the-chart bar. As a result, you don't really need a trading FOR loop to perform that. All that's important is to perform a Buy on the off-the-chart bar; no other trades are required. The purpose of this tier 2 "strategy" is only for screening, not trading. In your case, you're using the RSI indicator to screen with. In practice, you would probably logically "AND" a combination of criteria.

In Tier 3, you are employing a "real" WL trading strategy with a real trading FOR loop to trade throughout the Data Range. The real goal here is to use the WL Optimizer to set the PV model parameters for best results. After setting those parameters for that strategy, you need to look at the trading equity curve to be sure it's positive going. If it is, then--and only then--do you add that stock to your trading dataset for that specific trading strategy. Obviously, if the equity curve for that stock/strategy pair is negative going, then it's a bad match up.

Some trading strategies work well for some stocks and not others, and vice versa. That's what you have to figure out for tier 3 when using the PV Optimizer.

And for tier 3, you also want to make sure you have enough DF for error in your parameter fit. Obviously, if you only have 3 trades in a 3 parameter model (i.e. zero DF for error), then those modeling parameters could have just been fitted by happenstance. You really need to have an "over determined" system (from an numerical analysis point of view) in a randomly varying process so that there are around 5 DF for "random" error (i.e. 5 "extra" trades--or more). Trust what your stat course taught you about modeling randomly varying processes.

Some WL users are paranoid about having enough DF for error in their models, so they pick Data Ranges of ten years or more. That's probably over done and undesirable since the market changed significantly in 2015 when the Fed started raising interest rates. I would set my Data Range back to 2015, but you may find some stocks won't trade enough to give you 5 DF for error going only that far back. If that's the case, I would just avoid those stocks ... for now.
profile picture

superticker

#10
It's worth noting, but most new WL users skip tiers 1 and 2, and precede directly to tier 3. That's okay if you're only wanting to trade against the S&P500 stocks. If you're doing that, you might want to subscribe to Wealth Data. That clean data-feed provider is a separate Data Manager download (provider plug-in). Search on "Wealth Data" for details. Post in those forum threads if you have questions.

Jim Cramer (of Mad Money) points out that it's the A students that get the As, and that's true of stocks too. There's nothing wrong with trading stocks outside the S&P500 or NASDAQ100 datasets (employing the Fidelity screener to find those prospects) as long as you understand winning with the B and C students will be somewhat harder. But if you are an experienced trader, that shouldn't matter. In 2017, I made most of my profits with small and micro cap stocks, but you need a refined exit algorithm and a cooperating, predicable, bullish market.
profile picture

Larcher600

#11
Hi Again
I have been looking over the material you have send and still trying your thought ideas on the different tiers, I was able to bring the screener from fidelity.
The next step is just trying to learn WL going thru the charts looks, but have admit I am trying to learn the next step with the Tiers that you talked about.
Is there away you could give me an example of the screening I do have some experience in coding when I was using CNC programing and started to learn C++ never finished.
If you could show me one screening such as RSI to what tabs to click, I learn best with examples then once I get the basic then it is just building on a simple thought.
As far as my trading I have tried the JIM Cramer and Mortley and I have got some good stocks out of it , but the big thing I find is that they have to long a view on all there stocks, when I see the technical chart and see what they suggest is diving loosing steam I watch the stock to see if turns around, My thought process is they did the homework. I like the NOVA news letter there picks are more what to buy know.
What I see in WL I can find the looks I need.
profile picture

Eugene

#12
QUOTE:
Is there away you could give me an example of the screening

The example comes with WLP. Simply revisit post #2 above.
profile picture

superticker

#13
QUOTE:
... as my trading I have tried the Jim Cramer ... and I have got some good stocks out of it , but the big thing I find is that they have to long a view on all there stocks ...
Just to clarify, Jim is an "investor," not a trader. And I agree with Jim's comments to not turn a trade into an investment, and vice versa. Qualities of a good trade (favorable RSI) make a poor investment (bad P/E and PEG ratios) and vice versa.

If you're investing, then you plan to hold the position for at least a year so you can get Mitt's capital gains tax rate of 15%; otherwise, you're taxed at the ordinary income rate, which can be twice that if you're in Mitt's tax bracket.

If you're an investor like Mitt and Jim, screening for the Fidelity equity summary scores, P/E ratios, and PEG ratios may make more sense than screening using the RSI. Screening for the RSI might be something a "trader" would do (short-term ownership) rather than an investor (long-term ownership). We are assuming you're a trader if you want to screen for the RSI, but then you need to realize Jim is talking about long-term screening/ownership since he "invests" rather than "trades".

Take the screening example in Post# 2 and marry it to the RSI example cited in Post# 6, and try it. Post any questions if you have them. Remember, it's only Buys (or Sells) on the off-the-chart bar (i.e., bar>Bars.Count-1) that generates Alerts, which are your screening opportunities/results. And you can use the signaling field on the WL Buy primitive to document each lead in the Alert. For example, you can include the RSI value for the last chart bar as an Alert signal message.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).