Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 7/13/2008 Posts: 35
|
As discussed by David Varadi on his blog, the MMDI is simply a MACD where the short term average is replaced by the median for the same period. So for example, the standard 12,26 MACD would become the median price for the last 12 bars minus the average for the last 26. He also mentions that he prefers to smooth the the resulting difference line using a 2-5 period SMA/EMA. I'd like to recreate this indicator in SF4 is possible.
So,
median of the last “n” days - average of the last “n” days = D
D is then smoothed and plotted. Can this be done?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You should be able to Open an attached Indicator directly into a running copy of StockFinder (and save it from within StockFinder if desired). Attachments: MMDI.sfInd - 7 KB, downloaded 590 time(s).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/13/2008 Posts: 35
|
Thank you Bruce!
|
|
Registered User Joined: 12/31/2005 Posts: 2,499
|
For the curious here is the block diagram:
|
|
Registered User Joined: 10/7/2004 Posts: 794
|
Bruce,
How might I write a PCF for the median price crossing its 3 ema
This is my attempt...
((H + L) / 2) > XAVGC3 AND ((H1 + L1) / 2) < XAVGC3.1
Thank you in advance!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Quiktdr,
As long as you are aware that your use of the term median price is different than what is discussed in the topic, I would suspect what you want is median price crossing up its own 3-Period Exponential Moving Average:
H + L > XAVGH3 + XAVGL3 AND H1 + L1 <= XAVGH3.1 + XAVGL3.1
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 794
|
Bruce,
thank you
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |