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 |

Creating the MMDI Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
hkusp40
Posted : Saturday, August 8, 2009 1:58:28 AM
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?


Bruce_L
Posted : Monday, August 10, 2009 2:19:39 PM


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 596 time(s).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
hkusp40
Posted : Sunday, August 16, 2009 5:37:00 PM
Registered User
Joined: 7/13/2008
Posts: 35
Thank you Bruce!
jas0501
Posted : Sunday, August 16, 2009 7:12:38 PM
Registered User
Joined: 12/31/2005
Posts: 2,499
For the curious here is the block diagram:
Quiktdr
Posted : Sunday, September 12, 2010 7:32:31 PM
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!
Bruce_L
Posted : Monday, September 13, 2010 9:33:31 AM


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
Quiktdr
Posted : Monday, September 13, 2010 9:38:25 AM
Registered User
Joined: 10/7/2004
Posts: 794
Bruce,


thank you
Bruce_L
Posted : Monday, September 13, 2010 9:52:22 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.