mktmole 325 posts msg #71165 - Ignore mktmole |
2/4/2009 3:17:44 PM
I'm attempting to target the impluse wave pullback as follows;
1. A new 21 day high starting 5 days ago within 15 days
2. On the day of the new 21 day High, the +Di -Di difference is greater than 15, add column to show this diff value.
3. The MACD fast line(3,8,13) crossed below MACD slow line(3,8,13) for the 1st time since the ema(13) signal line crossed above 0 and the EMA(13) signal line is still above 0
My coding efforts below are an unsuccessful "attempt", and I would appreciate any help. Thank you ! mm
set{21hi, count(high reached a new 21 day high,1)}
set{DI_dif,PDI -MDI > 15,1}
set{both, 21hi/DI_dif}
set{BigDay, days(both equals 1,15)}
and BigDay above 4
set{DI_dif,PDI -MDI}
and DI_dif above 15
and add column DI_dif
and draw +DI(14) and draw -DI(14)
and MACD fast line(3,8,13) crossed below MACD slow line(3,8,13) within the last 4 days
and MACD fast line(3,8,13) is above 0
|
chetron 2,817 posts msg #71169 - Ignore chetron |
2/4/2009 4:51:34 PM
clickable....
|
chetron 2,817 posts msg #71170 - Ignore chetron |
2/4/2009 5:37:57 PM
NEW AND IMPROVED......
|
mktmole 325 posts msg #71174 - Ignore mktmole |
2/4/2009 7:47:56 PM
Chetron... thank you!
Would it be possible to show var1 as a %, in a column? The idea being to sort on this column of strength descending.
Looking at some charts it appears possibly that part 3 .."The MACD fast line(3,8,13) crossed below MACD slow line(3,8,13) for the 1st time since the ema(13) signal line crossed above 0 " is not met on all the hits. Could/should the 'count' statement be used here instead?
many tks again!
mm
|
chetron 2,817 posts msg #71180 - Ignore chetron |
2/4/2009 8:34:25 PM
how about....
|
mktmole 325 posts msg #71185 - Ignore mktmole |
2/4/2009 9:01:16 PM
perfect!
for part 3 the MACD bit, would this idea (if it worked) possibly be more accurate? again, thank you. mm
set{macdx, count( MACD fast line(3,8,13) crossed below MACD slow line(3,8,13),1)}
set{ema13, count(ema(13) crossed above 0,1)} * count(EMA(13) above 0,1)}
set{both2, macdx/ema13}
set{upDay, days(both2 equals 1,20)}
and upDay equal 1
|
chetron 2,817 posts msg #73725 - Ignore chetron |
4/20/2009 8:30:15 PM
FOR THE LONG..............
|