Rammer89 1 posts msg #85257 - Ignore Rammer89 |
12/30/2009 4:36:01 PM
I'm attempting to compare a current value for a MACD slow line to a previous MACD slow line. Basically the code I'm looking for is something along the lines of:
MACD(12,26,9) 60 day low is above the MACD(12,26,9) 60 day low 60 days ago...
The thing I can't figure it is how to compare the 60 day low to the 60 day low "60 days ago"... Anyone know a way I can do this??
thanks a lot!!!
|
trendscanner 265 posts msg #85272 - Ignore trendscanner |
12/30/2009 10:21:18 PM
Rammer, I've tried to write similar type filters, trying to compare current high or low readings for indicators to past indicator results and have never been successful. It seems to work only for price.
|
four 5,087 posts msg #85463 - Ignore four |
1/3/2010 3:18:11 PM
set{macd_y, macd slowline 60 days ago}
set{macd_yy, new macd_y 60 day low}
macd slowline 60 day low > macd_yy
close > 1
average volume(30) > 10,000
close > open
do not draw macd(12,26,9)
- ? ? ? ? ? -
|
chetron 2,817 posts msg #85464 - Ignore chetron |
1/3/2010 3:29:44 PM
rammer89, what you wrote works fine.
clickable.....
|
chetron 2,817 posts msg #85465 - Ignore chetron modified |
1/3/2010 3:40:36 PM
just add water....
trendscanner, it should work for all....
|
trendscanner 265 posts msg #85468 - Ignore trendscanner |
1/3/2010 4:15:33 PM
Hey, that's great. I'll see if I can resurrect the old filter I was playing with.
|