| Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 1/4/2005 Posts: 15
|
2/1/08
Hi Trainers
After reviewing your MACD topics, videos, and PCF help menus, I'm not finding exactly what I'm looking for in the TC2007 application.
I've created a series of conditions for a scan for which I would like to add an observational condition I have in one of my chart windows. After reading a provision in one of the help topics, it says I should be able to add a condition to a scan from a MACD Histogram chart study provided that the average type is simple, not exponential.
Therefore, my MACD histogram setup is (5,15,9) simple average. I would like to get results that identifies a change in direction on a daily bar chart as observed on a histogram (not a cross through 0). To that end, I am trying to identify 2 consecutative days the MACD histogram bar trend (higher or lower in amplitude) is identifiable after a peak or trough has occurred in its previous trend. For example, could you offer a PCF condition that would scan for bearish direction of a histogram bar that is less in "amplitude" than its bar from the previous day, AND the previous day's bar is less than the day before that, AND its previous 3 day bar trend has been positive.. I should be able to reverse that sequence for a bullish trend.
Thanks for your help
Chuck
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Nothing prevents writing Personal Criteria Formulas for Exponential MACD Histograms. That said, I am not in a position to interpret what you see as a either Bullish or Bearish in a MACD Histogram. I also do not understand the description of the pattern you wish to find. Here are some possible interpretations, but I find it unlikely that I have hit upon your intent.
Simple MACD Histogram (5,15,9) Below Zero and increasing for 2 bars after a local minima:
AVGC5 - AVGC15 - AVG(AVGC5,9) + AVG(AVGC15,9) < 0 AND AVGC5 - AVGC15 - AVG(AVGC5,9) + AVG(AVGC15,9) > AVGC5.1 - AVGC15.1 - AVG(AVGC5.1,9) + AVG(AVGC15.1,9) AND AVGC5.1 - AVGC15.1 - AVG(AVGC5.1,9) + AVG(AVGC15.1,9) > AVGC5.2 - AVGC15.2 - AVG(AVGC5.2,9) + AVG(AVGC15.2,9) AND AVGC5.2 - AVGC15.2 - AVG(AVGC5.2,9) + AVG(AVGC15.2,9) < AVGC5.3 - AVGC15.3 - AVG(AVGC5.3,9) + AVG(AVGC15.3,9)
Simple MACD Histogram (5,15,9) Above Zero and decreasing for 2 bars after a local maxima:
AVGC5 - AVGC15 - AVG(AVGC5,9) + AVG(AVGC15,9) > 0 AND AVGC5 - AVGC15 - AVG(AVGC5,9) + AVG(AVGC15,9) < AVGC5.1 - AVGC15.1 - AVG(AVGC5.1,9) + AVG(AVGC15.1,9) AND AVGC5.1 - AVGC15.1 - AVG(AVGC5.1,9) + AVG(AVGC15.1,9) < AVGC5.2 - AVGC15.2 - AVG(AVGC5.2,9) + AVG(AVGC15.2,9) AND AVGC5.2 - AVGC15.2 - AVG(AVGC5.2,9) + AVG(AVGC15.2,9) > AVGC5.3 - AVGC15.3 - AVG(AVGC5.3,9) + AVG(AVGC15.3,9)
Changing every AVG in the above formulas to XAVG will convert the formulas from Simple to Exponential. We will do our best to adjust the formulas to better meet your needs based on your detailed and objective feedback. You may wish to review the following:
Understanding MACD
PCF Formula Descriptions
How to create a Personal Criteria Forumula (PCF)
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/4/2005 Posts: 15
|
Hi Bruce
As I tried to clarify, I didn't want this to be function of crossing through 0. So let me offer a chart example. If you would, bring up a daily chart of ADTN (zoom 4), and set up in your middle chart window a MACD histogram with a simple 5,15,9 set up. You should see 3 examples (2 bearish and 1 bullish) within the last month of what observation I'm trying share with you. You should see on 12/21/07 a MACD bar peak, followed by a series of daily bar amplitude declines. On 1/8/08 you should see a MACD bar trough, followed by a series of daily bar amplitude increases. On 1/28/08 you should see a MACD bar peak again, followed by a series of daily bar amplitude declines.
What I would like you to help me with is setting up a PCF that identifies a 2 day bar decline towards the 0 line (as viewed on the MACD chart) after a MACD amplitude peak; and conversely, a 2 day bar increase towards the 0 line (as viewed on the MACD chart) after a MACD amplitude trough.
I hope this helps to describe my objective - Thanks
|
|
 Administration
Joined: 9/30/2004 Posts: 9,187
|
That's exactly what the two formulas Bruce provided will do. I tested them both.
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
SummitTC2K,
Have you tried the formulas provided? They have nothing to do with crossing zero. When used as Custom Percent True indicators, they appear to identify all of the points identified in your Friday, February 01, 2008 4:46:03 PM ET post. It seems I can make the occassional lucky guess.

-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/4/2005 Posts: 15
|
Hi Bruce and StockGuy
I apoligize for misuderstanding what I was reading in your formulas. Yes, I have now tried them and they work perfectly.
Thanks again for your help!
Chuck
|
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
SummitTC2K,
You're welcome. Our pleasure.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
|
Guest-1 |