源码如下:
{DXJQ短线诀巧}
{老鸭头}
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA60:MA(CLOSE,60);
PDAY1:=BARSLAST(CROSS(MA5,MA60));{5日均线上穿60日均线}
PDAY2:=BARSLAST(CROSS(MA10,MA60));{10日均线上穿60日均线,至此形成鸭颈部}
PDAY3:=BARSLAST(HIGH=HHV(HIGH,PDAY2));{形成头部,要下跌}
PDAY4:=BARSLAST(CROSS(MA10,MA5){ OR (REF(MA10,1)<REF(MA5,1) AND MA5=MA10)});{下跌后,5日均线和10日均线死叉}
PDAY5:=BARSLAST(CROSS(MA5,MA10){ OR (REF(MA5,1)=REF(MA10,1) AND MA5>MA10)});{回落不久,5日均线和10日均线形成金叉,形成部}
XA1:=PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;
XA2:=COUNT(CROSS(MA10,MA5),PDAY2)=1;
XA3:=MA5>MA60 AND MA10>MA60;
老鸭头:(XA1 AND XA2 AND XA3) AND FILTER(XA1 AND XA2 AND XA3 ,5);
DRAWTEXT(老鸭头,L*0.98,老鸭头),COLORYELLOW;
STICKLINE(CLOSE>OPEN,H,LOW,0.3,0 ),COLOR9933FF;
STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0 ),COLOR66CC33;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0 ),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0 ),COLOR0033FF;
{短线诀巧:
1.K线不乱,
2.均线不远,
3.斜率已见,
4.簇量初现,
5.平台飞升.
K线不乱,均线不远,斜率已见,簇量初现,平台飞升
例子:老鸭头}{顶尖财经网www.58188.com整理}
|
|
|
|
|