dlaposky 6 posts msg #95422 - Ignore dlaposky |
8/5/2010 9:11:58 PM
I have been trying to develop a filter using the DPO and wish to get stocks that have crossed above 0 in the last 3 days. I can't get this to show any stocks. It only works if I use 11 days. Anything less gives no results. Any thoughts. Here's the filter I have tried and it doesn't seem to work.
show stocks where the DPO(20) 3 days ago crossed above 0
|
four 5,087 posts msg #95424 - Ignore four |
8/5/2010 10:07:34 PM
There is a lag. Notice nothing "prints" on the display until 11 days ago.
For example, you can do greater than 11 days...
|
dlaposky 6 posts msg #95442 - Ignore dlaposky |
8/6/2010 9:14:29 AM
Why is there a lag with this indicator? On my TOS platform the DPO always has a current value. Any thoughts.
|
stockfetcher 980 posts msg #95450 |
8/6/2010 9:45:57 AM
Please see the note on the help page for this measure:
Detrended Price Oscillator (DPO)
The Detrended Price Oscillator(DPO) used on StockFetcher uses a forward shifted MA, as described/detailed in Steven Achelis' "Technical Analysis from A to Z". The last n/2+1 days of the measure will not exist due to the nature of the formula.
StockFetcher Support
|
dlaposky 6 posts msg #95469 - Ignore dlaposky |
8/6/2010 11:14:38 AM
It seems as if the way stockfetcher calculates it makes it a fairly useless indicator. Is there some reason
they don't calculate it like TOS. to make it a more relevant indicator.
|
campbellb75 101 posts msg #95474 - Ignore campbellb75 |
8/6/2010 11:46:09 AM
I agree. It seems rather useless with such a large lag time. Is there a way to make it consistent with ToS?
|
stockfetcher 980 posts msg #95476 |
8/6/2010 11:57:51 AM
We strongly urge you to compare with other online charting services that support this measure to verify implementation. For example, StockCharts.com and Prophet.net (now Investools.)
In fact, here is an excellent discussion/explanation from StockCharts.com on this very issue:
When Shifting to the Right is Wrong - the DPO Indicator Controversy
If you are simply looking to compute the current close using the lagged MA, then you could always use:
However, as the original measure is defined (and given we do not have data from the future) it is impossible to compute the DPO for the last n/2 + 1 days.
StockFetcher Support
|
dlaposky 6 posts msg #95484 - Ignore dlaposky |
8/6/2010 1:12:24 PM
Thanks for the help and the explanation. I will use the new script you provided as it matches what I get on TOS.
|