Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

HELP ON A PCF Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
srkaldi
Posted : Friday, April 13, 2007 10:53:41 PM
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
Craig_S
Posted : Saturday, April 14, 2007 7:56:57 AM


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!
diceman
Posted : Saturday, April 14, 2007 8:50:05 AM
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
srkaldi
Posted : Saturday, April 14, 2007 10:17:32 AM
Registered User
Joined: 12/15/2004
Posts: 81


Thank you both........

Steve
srkaldi
Posted : Saturday, April 14, 2007 3:22:08 PM
Registered User
Joined: 12/15/2004
Posts: 81
Diceman,

why would you say avg 20 and avg 10 are unlikely ???
diceman
Posted : Saturday, April 14, 2007 9:33:27 PM
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



srkaldi
Posted : Saturday, April 14, 2007 11:32:07 PM
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
srkaldi
Posted : Sunday, April 15, 2007 12:34:51 PM
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
diceman
Posted : Sunday, April 15, 2007 1:32:58 PM
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





srkaldi
Posted : Sunday, April 15, 2007 2:12:44 PM
Registered User
Joined: 12/15/2004
Posts: 81


.....Thank You.....
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.