{游资量化跟庄源码如下}
龙龙1:=STRCAT(HYBLOCK,' ');
龙龙2:=STRCAT(龙龙1,DYBLOCK);
龙龙3:=STRCAT(龙龙2,' ');
龙龙4:=STRCAT(龙龙3,GNBLOCK);
MA5:MA(C,5)DOTLINE COLORWHITE;
龙牛共振:=2230911;
龙飞凤舞:=IF(DATE< 龙牛共振,1,1);
DRAWTEXT_FIX(ISLASTBAR,0.0,0.01,0,STRCAT('所属板块:',龙龙4)),COLORFFFF00;
多头:EMA((MA(C,5)+MA(C,8)+MA(C,13)+MA(C,21)+MA(C,34))/5,8)*龙飞凤舞,COLORRED,LINETHICK2;
空头:IF(C<=多头,多头,DRAWNULL),COLORCYAN,LINETHICK2;
DI:=(EMA(C,12)-EMA(C,26))*龙飞凤舞;
DE:=(EMA(DI,9))*龙飞凤舞;
M:=(DI-DE)*2*龙飞凤舞;
R:=IF(CODELIKE('60') OR CODELIKE('00'),10,20)*龙飞凤舞;
突破:=100*(C/REF(C,1)-1)>R-0.01/REF(C,1)*100;
牛起飞:=BARSLASTCOUNT(突破)=1;
指标抓牛:=100*(C/REF(C,1)-1)< -R+0.01/REF(C,1)*100;
龙牛起舞11:=C>=O*龙飞凤舞;
龙牛起舞12:=C< O*龙飞凤舞;
STICKLINE(龙牛起舞11,H,L,0,0),COLOR0000DD;
STICKLINE(龙牛起舞11,C,O,2.7,0),COLOR000099;
STICKLINE(龙牛起舞11,C,O,1.8,0),COLOR0000BB;
STICKLINE(龙牛起舞11,C,O,1,0),COLOR0000DD;
STICKLINE(龙牛起舞12,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(龙牛起舞12,C,OPEN,2.7,0),COLOR006600;
STICKLINE(龙牛起舞12,C,OPEN,2.3,0),COLOR008800;
STICKLINE(龙牛起舞12,C,OPEN,1.8,0),COLOR00AA00;
STICKLINE(龙牛起舞12,C,OPEN,1.3,0),COLOR00CC00;
STICKLINE(龙牛起舞12,C,OPEN,0.3,0),COLORGREEN;
STICKLINE(突破,HIGH,LOW,0,1),COLORFF55FF;
STICKLINE(突破,C,OPEN,2.7,0),COLOR880088;
STICKLINE(突破,C,OPEN,2.3,0),COLORAA00AA;
STICKLINE(突破,C,OPEN,1.8,0),COLORCC00CC;
STICKLINE(突破,C,OPEN,1.3,0),COLOREE00EE;
STICKLINE(突破,C,OPEN,0.3,0),COLORFF44FF;
STICKLINE(指标抓牛,H,L,0,0),COLOREEEEEE;
STICKLINE(指标抓牛,C,O,2.7,0),COLOR9F9F9F;
STICKLINE(指标抓牛,C,O,1.8,0),COLORCCCCCC;
STICKLINE(指标抓牛,C,O,1,0),COLOREEEEEE;
DRAWICON(牛起飞,L,9);
DRAWTEXT(牛起飞,L*0.998,'←牛起飞'),COLORYELLOW;
{游资量化副图源码如下}
龙牛共振:=2230911;
龙飞凤舞:=IF(DATE< 龙牛共振,1,1);
DI:=(EMA(C,12)-EMA(C,26))*龙飞凤舞;
DE:=(EMA(DI,9))*龙飞凤舞;
M:=(DI-DE)*2*龙飞凤舞;
R:=IF(CODELIKE('60') OR CODELIKE('00'),10,20)*龙飞凤舞;
突破:=100*(C/REF(C,1)-1)>R-0.01/REF(C,1)*100;
牛起飞:=BARSLASTCOUNT(突破)=1;
指标抓牛:=100*(C/REF(C,1)-1)< -R+0.01/REF(C,1)*100;
SPAN:=BARSLAST(EVERY(突破,2));
量:=REF(V,1)=LLV(V,SPAN);
共振:=M>REF(M,1) AND REF(M,1)< REF(M,2);
XG:=SPAN<=13 AND SPAN>=5 AND 量 AND 共振;
龙牛起舞11:=C>=O*龙飞凤舞;
龙牛起舞12:=C< O*龙飞凤舞;
STICKLINE(牛起飞,0,2,3,0),COLORRED;
STICKLINE(牛起飞,11,14,3,0),COLORYELLOW;
DRAWTEXT(牛起飞,8,' 牛起飞'),COLORYELLOW;
DRAWICON(牛起飞,1,9);
DRAWICON(牛起飞,2,2);
DRAWICON(牛起飞,3,1);
DRAWICON(牛起飞,4,9);
DRAWICON(牛起飞,5,1);
DRAWICON(牛起飞,6,9);
DRAWICON(牛起飞,7,28);
DRAWICON(牛起飞,8,28);
DRAWICON(牛起飞,9,1);
DRAWICON(牛起飞,10,9);
DRAWICON(牛起飞,11,1);