Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/15/2004 Posts: 81
|
I can never get this, after over a yr, I am still not with it..... SO...
PLEASE...a pcf for 10 & 20 day moving averages crossing or meeting or touching.
Time frame is not important....
Thanks
Steve
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
If your averages are simple try one of these:
10sma xup 20sma AVGC10>AVGC20 AND AVGC10.1<AVGC20.1
10sma xdown 20sma AVGC10<AVGC20 AND AVGC10.1>AVGC20.1
10sma touching 20sma AVGC10=AVGC20
If your averages are exponential put an XAVG wherever you see an AVG above.
Here is a post to check out: Moving Average PCF Templates
- Craig Here to Help!
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
Since AVGC10=AVGC20 or XAVGC10=XAVGC20 is unlikely.
You may want to try sorting by:
AVGC10-AVGC20
(difference)
(AVGC10/AVGC20*100)-100
(percent difference)
The values closest to zero will be averages that are close.
You may be interested in this:
Create your own stock rankings using WatchLists and Sort conditions
Comparing indicators using Visual Difference sorts
Sorting price and indicators by their Actual Value
Thanks diceman
|
|
Registered User Joined: 12/15/2004 Posts: 81
|
Thank you both........
Steve
|
|
Registered User Joined: 12/15/2004 Posts: 81
|
Diceman,
why would you say avg 20 and avg 10 are unlikely ???
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
Realize when you see moving averages cross on a chart you are connecting data points with a line. Even though it appears they "touch" it is unlikely that the values will be exactly the same. If you think about it, to generate a "cross" one must be higher than the other.
I looked at the 7070 stocks in the all stocks watchlist and only one VKI is true for AVGC10 equals AVGC20.
There are about 50 other true stocks but they are faulty. The have their price frozen or some type of trading halt. They aren't real tradable's.
RBNC is one example.
------------------------------------------------------------------------------------
If we look at XAVGC10 equals XAVGC20 there is only one stock true and it is also a faulty stock.
It is simply too rare for a 10 day and 20 day average to be exactly the same value. -------------------------------------------------------------------------------------
I think that sorting for "close" would be more useful.
Thanks diceman
|
|
Registered User Joined: 12/15/2004 Posts: 81
|
Sorry for the mis-understanding........
I always meant when they cross........ not to be the same......
Thanks
Steve
|
|
Registered User Joined: 12/15/2004 Posts: 81
|
Is there anyway to make this a little time sensitive......
As in " THEY JUST CROSSED "
Thanks
Steve
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
This from Craigs post is "just crossed":
"If your averages are simple try one of these:
10sma xup 20sma AVGC10>AVGC20 AND AVGC10.1<AVGC20.1
10sma xdown 20sma AVGC10<AVGC20 AND AVGC10.1>AVGC20.1"
(the 10 is > then 20 today and was below yesterday)
(the 10 is < then 20 today and was above yesterday)
Also view the link in his post. There are more equations under the video.
Thanks diceman
|
|
Registered User Joined: 12/15/2004 Posts: 81
|
.....Thank You.....
|
|
Guest-1 |