The way to get stocks that have the -DI between 5% and 10 % over the +DI is to use two qualifying statements (lines).

-DI greater than (>) +DI (using multiplier) 1.05

-DI less than (<) +DI (using multiplier) 1.10


Hi Trader77...I don't usually include market cap in my scans, but I checked a little and ran this simple scan...

[type = stock] and [country = us] and [market cap > 10,000]

I only got a list of 452 companies, and obviously it should give me essentially the entire universe of stocks...

So my conlucsion is that they are probably using a truncated number for the market cap, ie, 10,000 in the scan is probably equivalent to 10,000,000 in real market cap.
 


Anyone know how to write a scan that gives for some number of periods the maximum difference between -DI and +DI when -DI is greater than +DI?

Try one of the below suggested expressions and see if it meets your needs. Note that the values I chose for time and DMI level were just arbitrary:


Max Difference over 15 day lookback:

[daily minus di(14) > daily plus di(14)] and [daily minus di(14) = daily max(15,daily minus di(14)] and [daily plus di(14) = daily min(15,daily plus di(14)]


Max difference and – DI has been above + DI for extended period:

[daily minus di(14) = daily max(15,daily minus di(14)] and [daily plus di(14) = daily min(15,daily plus di(14)] and [daily min(15,daily minus di(14)) >= 20] and [daily max(15,daily plus di(14) <= 20]


Can anyone help me write a scan, I'm looking for stocks with RSI < 35. I tried to do it myself but keep getting syntax error, I really don't know how to write it.

GR, the standard scan engine would be the ideal place to write this expression. In the advanced interface, the code would be as follows:

[type = stock] and [daily rsi(14) < 35]


How to SCAN on WEEKLY SAR BUY and SELL SIGNAL. I would really appreciate your help
This is one that the standard expression builder can be of great assistance in writing. In the advanced interface, the code is as follows:

SAR buy:

[weekly close crosses weekly parabolic sar(0.02,0.2)]

SAR sell:

[weekly parabolic sar(0.02,0.2) crosses weekly close]

Keep in mind that when you click on a chart of the scan results, the chart display defaults to a daily time period. It will need to be manually changed to a weekly interval in order to view the Parabolic signal.
 


I have been trying to create a scan that will return stocks moving in a 3-4 week flat base. Is it possible with stockcharts to do this? I have failed miserably in this task. If someone could help me I would be grateful.
 

Scan for Four Week Base

Rascalrunner,

I ran only a few scans with these, but they seemed to work. I'm not sure if this is the best way to do it, but I think it will get you started. Perhaps you or someone else can improve on them.

[max(20,High)<= min(20,low)*1.05] and [Close < 60 days ago close*0.95]

The 1.05 in the first clause determines the width of the 20 day range on a percentage basis. Since you asked about a base I assumed you meant after a decline. The 0.95 in the second clause determines how much of a decline you want to see, again on a percentage basis. I used only a 5% decline over 60 days in this example, because there aren't that many stocks in decline right now.

Here's the same scan using price change rather than percentage.

[max(20,High) - min(20,low) < 3] and [60 days ago close - close > 10]
 


I'm trying to tell the scanner to find stocks where the -DI is currently between 101%-105% of the +DI value w/ -DI falling and +DI rising (or in other words within 1-5% of each other).

Criteria

• For the last market close:
• United States Stocks with...
• 20-day Simple Moving Average of Volume for today is greater than 100000
• Daily -DI(14) for today is less than or equal to Daily +DI(14) for today times 1.05
• Daily -DI(14) for today is less than Daily -DI(14) for yesterday
• Daily +DI(14) for today is greater than Daily +DI(14) for yesterday
• Daily -DI(14) for today is greater than or equal to Daily +DI(14) for today times 1.01
 


How to SCAN on WEEKLY SAR BUY and SELL SIGNAL

I believe you are looking for Sergey Mavrody,s Parabolic SAR Trading System. I strugled to set this up and couldn't. Finaly I asked him and he graciously sent it to me. It is a great system and I am using it.

Cush, if I may ask you to put this into your collection, because people are looking for it time to time.

Sergey Lg, US.

• For the last market close:
• United States Stocks with...
• 9-day Simple Moving Average of Volume for today is greater than 200000
• Weekly Parabolic SAR(0.02,0.2) for last week is greater than Weekly Close for last week
• Weekly Parabolic SAR(0.02,0.2) for this week is less than Weekly Close for this week
• Daily Close for 2 days ago is greater than or equal to 5
• Daily Close for 2 days ago is less than or equal to 25


Sergey SH US
 


Scan question...

Can I use the 'or' operator (if that's what it's called) in a scan?

For instance, I'd like the following scan to return stocks w/in 10% of either the 50dma or the 200dma.

[type = stock] and [(SMA(50,close) < close*1.1) or (SMA(200,close) < close*1.1)]

ANSWER TO MY QUESTION:

[type = stock] and [[SMA(50,close) < close*1.1] or [SMA(200,close) < close*1.1]] and [close < SMA(50,close)]
 


Another scan question...

How do I filter by the price two days ago or one week ago?

For example, I can use [yesterday's close > 2.00]...can I find stocks that close above 2.00 3 days ago?


FIGURED THIS OUT TOO...IT WOULD BE: [3 days ago close > 2.00]



• For the last market close:
• United States Stocks with...
• 9-day Simple Moving Average of Volume for today is greater than 200000
• Weekly Parabolic SAR(0.02,0.2) for last week is less than Weekly Close for last week
• Weekly Parabolic SAR(0.02,0.2) for this week is greater than Weekly Close for this week
• Daily Close for 2 days ago is greater than or equal to 10
• Daily Close for 2 days ago is less than or equal to 25


BOLLINGER BANDS[i/] Does anyone have a formula for showing when a narrow Bollinger Band begins to broaden out?
 

There are a couple of ways to scan for expanding band witdth depending upon your objective. A few people have posted to this forum the following code which identifies a low in band width over X number of days:

[BB Width(20,2)<= Min(X, bb width(20,2))]

You can set the above code to be true for X days ago by modifying it to: [X days ago BB Width(20,2)<= Min(X, bb width(20,2))].

That will set up a narrow range for the bands from which an expansion can be identified. In identifying an expansion, it's important to remember that band width is a function of the distance between closing prices and the middle band. If you scan for stocks that are closing outside one of the bands and the closes are increasing/decreasing, then you will have a situation of expanding band width. See below for an example:

[yesterday's daily close > yesterday's daily upper bb(20,2.0,daily close)] and [daily close > daily upper bb(20,2.0,daily close)] and [daily close > yesterday's daily high]