PureBytes Links
Trading Reference Links
|
The AIQ expert design program includes a cup & handle code. I've pasted it
here. I'm sure it can be translated to easylanguage or metastocks code by anyone
who knows those languages. Lines preceded by a ! are comments.
Regards,
Doug Munch
!cup and handle code
MinPrice is [close]>15.
MaxPrice is [close]<200.
MinVolume is [volume esa]>750.
CloseAboveMovAvg is [close]>[LT MA].
CloseBelowMovAvg is [close]<[LT MA].
MovAvgSlopeUp is slope([LT MA],21)>0.
Filter if MinPrice and MaxPrice and MinVolume and CloseAboveMovAvg.
!Look back 40 to 80 days for the downleg to begin, off a 240 day high,
! and drop up to 20%, 20 to 39 days ago. Today's close can be no higher
! than 100% of the top of the downleg and no lower than 85%. Look for
! a cup & handle pattern in the formation stage on the charts.
CupHandle if Filter and (hival([close],19,20)<=hival([close],40,40)*0.80)
and [close]<=hival([close],40,40) and ([close]>=hival([close],40,40)*0.85)
and hival([close],40,40)=hival([close],240).
|