Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

I would like to scan for moving average compression Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
pjyalaman
Posted : Wednesday, April 13, 2011 8:04:38 PM
Registered User
Joined: 4/13/2011
Posts: 5


                        please   send  me  instructions  for  scanning  moving  average compression
              for 5day, 10 day, 15day,  20day,25day and 30day  averages.  To  use  it on easyscan.


                                                                                               prasad   yalamanchi
Bruce_L
Posted : Thursday, April 14, 2011 8:08:31 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Are the Moving Averages Simple or Exponential?

What do you mean by compression? Are the Moving Averages just getting closer together? Do all of the Moving Averages need to be within a specific percentage of each other? If so, how far apart can they be and still be in compression?

Moving Average PCF Templates
Things to check if your moving averages don't "seem right" or "seem to match"

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
pjyalaman
Posted : Thursday, April 14, 2011 10:33:02 AM
Registered User
Joined: 4/13/2011
Posts: 5



                                      Dear  Bruce,


                                                          I  will  reframe  the  question  and  will  start with only  3  moving averages.
                                   4 day  crossing  18 day moving average crossing over  40day  moving  average .
                                    I would  like  to  scan  both  DJI  and  NASDAQ  markets   for  all  the  stocks
                                     that  are  crossing  those  3  moving  averages,  Let  us  say  for  now within
                                     2  to 5%  .  I  look  forward  for your  reply.

                                                                                                                 Thank  you
                                                                                                       prasad  yalamanchi
pjyalaman
Posted : Thursday, April 14, 2011 10:34:59 AM
Registered User
Joined: 4/13/2011
Posts: 5
    

                                    Bruce,

                                                By  the  way  they  are  simple  moving  averages.

                             
                                                                                                prasad   yalamanchi
Bruce_L
Posted : Thursday, April 14, 2011 10:51:02 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (pjyalaman)
I  will  reframe  the  question  and  will  start with only  3  moving averages.
                                   4 day  crossing  18 day moving average crossing over  40day  moving  average .

A Personal Criteria Formula for the SMA4 crossing up throug the SMA18, the SMA4 crossing up through the SMA40 and the SMA18 crossing up through the SMA40 simultaneously could be written as:

AVGC4 > AVGC18 AND AVGC18 > AVGC40 AND AVGC4.1 <= AVGC18.1 AND AVGC18.1 <= AVGC40.1

QUOTE (pjyalaman)
Let  us  say  for  now within
                                     2  to 5%  .

Having the three Moving Averages be within 5% of each other would be rather common, but could be written as:

(AVGC4 + AVGC18 + ABS(AVGC4 - AVGC18) + 2 * (AVGC40) + ABS(AVGC4 + AVGC18 + ABS(AVGC4 - AVGC18) - 2 * (AVGC40))) / (AVGC4 + AVGC18 - ABS(AVGC4 - AVGC18) + 2 * (AVGC40) - ABS(AVGC4 + AVGC18 - ABS(AVGC4 - AVGC18) - 2 * (AVGC40))) <= 1.05

Something similar for the original six Moving Averages could be written as:

(AVGC5 + AVGC10 + ABS(AVGC5 - AVGC10) + 2 * (AVGC15) + ABS(AVGC5 + AVGC10 + ABS(AVGC5 - AVGC10) - 2 * (AVGC15)) + AVGC20 + AVGC25 + ABS(AVGC20 - AVGC25) + 2 * (AVGC30) + ABS(AVGC20 + AVGC25 + ABS(AVGC20 - AVGC25) - 2 * (AVGC30)) + ABS(AVGC5 + AVGC10 + ABS(AVGC5 - AVGC10) + 2 * (AVGC15) + ABS(AVGC5 + AVGC10 + ABS(AVGC5 - AVGC10) - 2 * (AVGC15)) - AVGC20 - AVGC25 - ABS(AVGC20 - AVGC25) - 2 * (AVGC30) - ABS(AVGC20 + AVGC25 + ABS(AVGC20 - AVGC25) - 2 * (AVGC30)))) / (AVGC5 + AVGC10 - ABS(AVGC5 - AVGC10) + 2 * (AVGC15) - ABS(AVGC5 + AVGC10 - ABS(AVGC5 - AVGC10) - 2 * (AVGC15)) + AVGC20 + AVGC25 - ABS(AVGC20 - AVGC25) + 2 * (AVGC30) - ABS(AVGC20 + AVGC25 - ABS(AVGC20 - AVGC25) - 2 * (AVGC30)) - ABS(AVGC5 + AVGC10 - ABS(AVGC5 - AVGC10) + 2 * (AVGC15) - ABS(AVGC5 + AVGC10 - ABS(AVGC5 - AVGC10) - 2 * (AVGC15)) - AVGC20 - AVGC25 + ABS(AVGC20 - AVGC25) - 2 * (AVGC30) + ABS(AVGC20 + AVGC25 - ABS(AVGC20 - AVGC25) - 2 * (AVGC30)))) <= 1.05

Both formulas were created using the techniques outlined in the Min Max PCFs topic.

How to create a Personal Criteria Forumula (PCF)
Using EasyScan to find stocks that meet your own criteria
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
pjyalaman
Posted : Thursday, April 14, 2011 4:16:45 PM
Registered User
Joined: 4/13/2011
Posts: 5




                                           Bruce,

                                                        Can  we   program  the  three  moving  averages  to have
                                          them  within  1%  instead  of  2  to  5%.

                                                                                                      prasad   yalamanchi
Bruce_L
Posted : Thursday, April 14, 2011 4:23:55 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Just change the <= 1.05 at the end of the formulas to <= 1.01 instead.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.