SAFeTRADE 431 posts msg #50192  Ignore SAFeTRADE 
2/23/2007 9:54:44 AM
What math would I employ to figure a confluence of 3 moving averages, say ma(5)
ma(13) and ma(34). It does not really matter what 3 ma's. What I am interested in is when all the stars align say within as close a percentage as possible. I tried substracting all 3 in hopes of getting a zero result or as close to zero as possible. Is there a better way?
Thanks

papawally 19 posts msg #50193  Ignore papawally 
2/23/2007 12:09:58 PM
You could try something like this:
and average volume(30) is above 150000
and close is above 15
and the 30 day slope of the close is above 0
and EMA(3) crossed above EMA(7)
and EMA(7) crossed above EMA(14)
set{diff3n14,EMA(3)EMA(14)}
and Draw RSI(2)line at 5
and draw diff3n14 line at 0
and draw linear regression line(60)
and add column diff3n14
and Add column EMA(3)
and Add column EMA(7)
and Add column EMA(14)
and Add column RSI(2)
and Charttime is three month

TheRumpledOne 6,362 posts msg #50215  Ignore TheRumpledOne 
2/24/2007 8:08:22 PM
I wrote a filter for something similiar... try search.

TheRumpledOne 6,362 posts msg #50218  Ignore TheRumpledOne modified 
2/24/2007 10:05:30 PM
PCTDIFF is the maximum amount the MAs can differ  default is 1% of the closing price.
DIFF1, DIFF2 and DIFF3 is the absolute value of the close minus the moving averages.
M1X, M2X, M3X are the days since the moving averages crossed.
HTH.

TheRumpledOne 6,362 posts msg #50219  Ignore TheRumpledOne modified 
2/24/2007 10:11:30 PM
Rather than using a percentage, you can just specify a fixed amount.
HTH.

SAFeTRADE 431 posts msg #50225  Ignore SAFeTRADE 
2/25/2007 10:14:51 AM
Thanks TRO, exactly what I was looking for.

TheRumpledOne 6,362 posts msg #50229  Ignore TheRumpledOne 
2/25/2007 12:04:42 PM
Hey SAFeTRADE:
Please post your version of the filter.

SAFeTRADE 431 posts msg #50232  Ignore SAFeTRADE 
2/25/2007 2:53:20 PM
It is as follows:
Thanks for your input.

TheRumpledOne 6,362 posts msg #50233  Ignore TheRumpledOne 
2/25/2007 3:42:59 PM
Your version is a lot different from what you asked for... unless I didn't understand the request.

SAFeTRADE 431 posts msg #50235  Ignore SAFeTRADE 
2/25/2007 3:52:52 PM
Makes a difference when you know what you want to do. I had no clue
of where I wanted to start or end up. The idea is similiar to the on in the book The Art of Low Risk Investing by Michael G. Zahorchak. Not necessarily the same averages. The idea remains the same where the 3 averages converge and the buy is between the upper and lower averages. Supposedly a safer trade. Hence the reason for your expertice.
Thanks again.
