New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

Adx Scans

Trying to figure-out how to Search for Minus DI Within +/- of the Adx Sig. Is this possible? Not Sure.

Also, what exactly is the Difference between MACD Line and MACD Signal?


  • Within 5% or 10%
  • lmkwinlmkwin ✭✭
    edited May 24
    DI- < ADX * 1.05 // DI minus is less than 5% above the ADX
    and DI- > ADX * 0.95 // DI minus is greater than 5% below the ADX

    in other words, DI- is within +/- 5% of ADX

    Link below discusses scan clauses for proximity to and for near crosses. The examples and sample clauses are using price, you would just change the price to be the terms you want.

    macd 12,26,9. The 12,26 are the moving averages used to form the LINE, 12ema minus 26ema = line value.
    The 9 is the moving average of the Line and is known as the SIGNAL. So the Line will lead the signal in both directions. The Histogram is the 12-26 value. If the 12-26 > 0 histogram is positive. If 12-26 is < 0 histogram is negative. macd deals with points or dollar value. So a high priced stock will have a different scale on the macd compared to a low priced stock. So if you scan for macd line > 10 you will get a certain price segment of stocks that can have $10 size of macd. Using PPO instead and PPO line > 10 wil show you securities that are 10% above the zero line so it's more universally able to be applied.
  • I knew my bretheren would find a way! ha I had actually been Reading, quite a bit, and couldn't figure it out. Knew it had to be Something simple, I was missing. you guys pulled through, Again.

    On the stocks page, it only has Hist (Which i know), and MACD (generically). i am assuming that the BLACK line must then be the Line and the RED must be the SIGNAL, based on what you said. It combines the two together to just "MACD."

    Have always used Macd, even tho I know the PPO is a bit of an improvement- only because I am looking for specific Patterns that I know happen on Macd, it now appears that the patterns may be Identical, or very similar between the two (I think I had different numbers I was using for each, before) So, maybe I'll start using the PPO, instead, now that I am using matching numbers
  • question, is there a such thing, as a "between" parameter? .."Is between..." ?

    i.e. macd or ppo "is between 5 and 10" ... I think you just have to Write it out, with two steps, as in your Above example. Is that true?

    Is there a 'Suggestion box" anywhere
  • ...Not that using Two steps is all that complicated...but, if you do that for Too Many parameters it Could potentially introduce some either human or computer Error.
  • If not, No worries.
  • not needing anyone to work out the PPO example above, just Wondering if it Can be Accomplished in 1 step versus two.
  • lmkwinlmkwin ✭✭
    There is no between. > < = would be math.

    X is a cross above. There is no cross below. For cross below you reverse the statement.

    close x sma20 for close crossing above sma20.

    sma20 x close for sma20 crossing above close

    You could also use and close > sma20 and 1 day ago close < 1 day ago sma20 for a cross above. Reverse the > and < for the cross below

    Is and Is Not for text type of filter. Group is Industrials. Group is not industrials

  • Okay, what would be Looking for a PPO crossing below 0, Within the last 10 days?
  • lmkwinlmkwin ✭✭
    edited May 26
    min(10,ppo line(?,?,?)) < 0 // the min is the lowest the ppo has been in the last 10 days is less than 0
    max(10,ppo line(?,?,?)) > 0 // the max is the highest the ppo has been in the last 10 days is greater than 0

    So the line has been above 0 and below 0 in the last 10 days.

    If you want a line that was above before and has moved down in the last day to two or three or.... move the max back a few days and shorten the min period as well.

    min(3,ppo line(?,?,?)) < 0 // min is the lowest the ppo has been in the last 3 days is less than 0
    2 days ago max(10,ppo line(?,?,?)) > 0 // the max is the highest the ppo has been starting 2 days ago in the last 10 days is greater than 0

    The above will allow the PPO to have been above 0 in 10 days starting two days ago. Today is the 25th so it would be looking at the 10 day period ending on the 23rd. And the ppo has been below 0 some point in the last 3 days.

    if you need today's ppo to be less than 0 add

    and ppo < 0

    To answer a prior comment on this thread

    "Is there a 'Suggestion box" anywhere"

    Yes, you can submit a request to Support. If they can do it they often will. If they can't they won't. There is a thread on this forum about making requests to Support. I'd have to find it to see if "we" got anything out of those.

    Yes, it does look like we got some suggestions implemented. So make your suggestions to StockCharts support and copy the request before you submit it, and paste it to the forum thread for others to see and possibly also suggest to support. The more making similar suggestions, the better the opportunity to see it happen.
  • Okay, thanks buddie Good stuff.
  • Something's not working, i think. I try and write a scan :
    [type is stock] and [country is US] and [max(5,CCI(20)) < 0] AND [CCI(20) > 0]

    I find it very hard to believe that there are *NO* stocks Where cci has gone positive For the First time in 5 days?? Out of the Whole universe of 5,000+ stocks... i am thinking this Can't possibly be right. What am i doing Wrong here??
  • Even went back each of several days, Absolutely no Hits.
  • You could try just

    and [0 x CCI(20)]

    or, instead of looking for the specific day of a crossover, you could specify a range

    and [min(10,CCI(20)) < 0] AND [max(5,CCI(20)) > 0]

    or something along those lines.

    With either approach, set the date back, say, 60 days and come forward, either a day at a time, or five days at time, etc.

    But, if you look at a chart of say the SPY, crosses above zero occur only once or twice a month at most. Since most stocks move more or less in tandem with their index, you might cluster your searches around a date when a relevant index or ETF based on an index (XLE, XLB, etc.) crosses over.
  • lmkwinlmkwin ✭✭
    [type is stock] and [country is US] and [max(5,CCI(20)) < 0] AND [CCI(20) > 0]

    and [max(5,CCI(20)) < 0]
    You are asking for the Maximum or Highest value of the CCI20, in the last 5 days to be LESS than 0

    AND [CCI(20) > 0]

    This is the current CCI20, which is also included in the Max5 period to be GREATER than 0.

    Asking for CCI20 in the last 5 periods to be less than 0 and the most recent value of the last 5 days to be greater than 0. You will get 0 results.

    You'd have to push the Max period back a day or so to get the current period out of that max period.

    1 days ago max < 0 and current period >0
  • Wow, I'm slipping. I should have caught that.
  • A little simplified version, of what I'm trying to do, (I didn't want to lose anybody.) Wow, that works! I added the "one day ago' and got 40 hits!
  • @markd No, you are not slipping at all. I would put your accuracy, at better than 90%
  • Right, that's slipping. :)
  • Haha Lol. :p
Sign In or Register to comment.