Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 8/25/2006 Posts: 15
|
I have searched and searched but still cant get it...
I have a search in Metastock I use...it is col A: OscP(10,30,E,percent) col B: volume*close filter: colB >= 1000 and colA >5 and colA <=9
All this is, is a price oscillator using a percent and using the 10dmae and the 30dmae and showing a 5% and less than 9% change.
How can I duplicat this into a PCF...What I have so far is
custom indicator: (XAVGC10-XAVGC30)/XAVGC30
How do I ask for the percentage differance?
Thanks
MIke
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
mcsims
If I am understanding you. Try this:
(XAVGC10/XAVGC30*100)-100
Thanks diceman
|
|
Registered User Joined: 8/25/2006 Posts: 15
|
diceman...
thanks for the post...the understanding I have of the percentage price oscillator(PPO)is (10-period EMA minus 30-period EMA) divided by the 30-period EMA...subtracting the longer moving average from the shorter moving average and then dividing the result by the longer moving average.
I am not very good at writing these scans or explaing them... so I dont know if what you have there is the same or not when it comes to the PPO.
I want my PPO scan to capture all the results greater than 5% and less than 9%. I want to exclude stocks that do not meet these conditions
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
Try this then:
(XAVGC10-XAVGC30)/XAVGC30*100
Thanks diceman
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
I just realized these are 2 ways to do the same thing. (both have the same answer) (this is the percent diff between the 2 mavs)
If this is the correct calculation. you could do something like(in a % true):
((XAVGC10/XAVGC30*100)-100)>5AND((XAVGC10/XAVGC30*100)-100)<9
Thanks diceman
|
|
Registered User Joined: 8/25/2006 Posts: 15
|
diceman
You are correct...I ran a scan in tc then exported it to MS and they say the same thing...
Thanks allot for your time...
Now I have to post another question
Mike
|
|
Gold Customer
Joined: 1/24/2005 Posts: 97
|
Diceman I tried that formula and got this error message: http://screencast.com/t/7fDLlZmDkhLI
Am I missing part of it?
Paul
|
|
Administration
Joined: 9/30/2004 Posts: 9,187
|
You need to plot a Custom % True indicator since it is a Boolean formula.
|
|
Gold Customer
Joined: 1/24/2005 Posts: 97
|
Thanks-I'll try that!
|
|
Guest-1 |