通达信【龙头伏击擒龙主升浪】主副图指标 突破擒龙龙抬头 源码

{龙头伏击擒龙 主图源码如下}




DRAWTEXT_FIX(1,0.005,0,0,'所属风格:'),COLORYELLOW;



DRAWTEXT_FIX(1,0.06,0,0,FGBLOCK),COLORYELLOW;



DRAWTEXT_FIX(1,0.005,0.05,0,'所属概念:'),COLORMAGENTA;



DRAWTEXT_FIX(1,0.06,0.05,0,GNBLOCK),COLORYELLOW;



T1:=MA(C,21)>REF(MA(C,21),1);



T2:=EXIST(C>REF(C,1)*1.093,21);



T3:=C<O AND C<REF(C,1) AND EVERY(MA(C,5)<REF(MA(C,5),1),3);



T5:=EVERY(V<REF(V,1),2) AND EVERY(V<MA(V,5),2);



T6:=MA(C,5)>MA(C,21);



XGG:=T1 AND T2 AND T3 AND T5 AND T6;



DRAWTEXT(XGG,L*0.99,'伏击'),COLOR00FF00;



低:=REF(LLV(L,150),3);



近期底:=REFDATE(低,DATE);



最底:=REFDATE(近期底,DATE);



高:=REF(HHV(H,150),3);



近期顶:=REFDATE(高,DATE);



最顶:=REFDATE(近期顶,DATE),NODRAW;



出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;



STICKLINE(出,O,(C+O)/2,3,0),COLORBLUE;



STICKLINE(出,H,L,0.2,0),COLORBLUE;



DRAWTEXT(出,H*0.998,'--蓝顶'),COLORGREEN;



A2:=REF(MA(C,20),1);J1:=(MA(C,20)-A2)/A2*100;MJ1:=MA(J1,3);



乖离2:=(MA(C,20)-MA(C,30))/MA(C,30)*100;



VAC1:=IF(BETWEEN(乖离2,-2,5),2,0);



X6:=REF(CLOSE,1);



X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);



X8:=CROSS(79,X7);



X9:=FILTER(X8,4);



DRAWTEXT(X9,(HIGH * 0.9989),'-●出货'),COLORGREEN;



M10:=MA(C,10);



M13:=MA(C,13);



VVVV5:=CROSS(M10,M13);



WWF1:DRAWICON(VVVV5,H,11);



QQQQ1:STICKLINE(VVVV5<C,REF(C,BARSLAST(CROSS(M10,M13))),REF(C,BARSLAST(CROSS(M10,M13))),-1,-1),COLORWHITE;



RC1:=REF(C,1);



大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;



大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}



大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O};



MTM:=MA(C,6)-MA(C,13)+C;



MTMMA:MA(MTM,5),NODRAW;



擒龙伏击A:=(3*C+H+L+O)/6;



VAR21:=(8*擒龙伏击A+7*REF(擒龙伏击A,1)+6*REF(擒龙伏击A,2)+5*REF(擒龙伏击A,3)+4*REF(擒龙伏击A,4)+3*REF(擒龙伏击A,5)+2*REF(擒龙伏击A,6)+REF(擒龙伏击A,8))/36;



TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR21;



立桩量:=FILTER(TJ1,5);



D1:REF(LOW,BARSLAST(立桩量)),COLORYELLOW,NODRAW,LINETHICK1;



买线:=EMA(C,4);



卖线:=EMA(SLOPE(C,20)*10+C,35);



DRAWICON(CROSS(卖线,买线),HIGH*1.02,8);



均价线:=AMOUNT/V/100;



C2:=REF(C,1);



涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);



STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;



STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;



STICKLINE(涨停,H,L,0,0),COLORYELLOW;



B1:='┄┄┄┄┄';



DRAWTEXT(均价线 AND 涨停,均价线,B1),COLORGREEN;



B3:='┄┄┄┄┄';



DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA;



B2:='┄┄┄┄┄';



DRAWTEXT(涨停,L,B2),COLORGRAY;



支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,NODRAW;



除业绩后退股:=FINANCE(30)>=REF(FINANCE(30),130);



D0:=除业绩后退股;



D2:=IF(NAMELIKE('S'),0,1);



D3:=IF(NAMELIKE('*'),0,1);



D4:=DYNAINFO(17)>0;



去除大盘股:=CAPITAL/1000000<50;



去高价:=C<=75;



去掉:=D0 AND D2 AND D3 AND D4 AND 去除大盘股 AND 去高价 AND NOT(C>=REF(C,1)*1.097 AND C=O AND H=L);



MA5:=EMA(C,5);



YCXN:=MA5>=REF(MA5,1);



擒龙伏击1:=REF(CLOSE,1)<(LLV(LOW,10)+(HHV(HIGH,10)-LLV(LOW,10))*1);



擒龙伏击2:=CLOSE<HHV(HIGH,5) AND CROSS(C,MA(C,5)) AND CROSS(C,MA(C,10)) AND CROSS(C,MA(C,20))



AND CROSS(C,MA(C,34)) AND C/REF(C,1)>=1;



擒龙伏击3:=CLOSE>=HHV(HIGH,5) AND YCXN AND C/REF(C,1)>=1;



涨停狙击:=DYNAINFO(4)>0



AND HHV(HIGH,5)/LLV(LOW,5)<3.4 AND 擒龙伏击1 AND (擒龙伏击2 OR 擒龙伏击3);



L0:=(LLV(LOW,10));



L10:=(LLV(LOW,60));



L2:=(LLV(LOW,120));



A1:=REF(CLOSE,1);



B10:=COUNT(L10,13)>=8;



B20:=SUM(L10,13)>=6;



B30:=COUNT(-B20,13)>=10;



B4:=1;



B5:=COUNT(B20,13)>=1;



C1:=(((CLOSE-A1)/A1)*100)>2.5;



D10:=(((CLOSE-LOW)/LOW)*100)>2;



火牛:=IF((D10 AND L2 AND C1)*2,10,0);



金牛:=IF((D10 AND L0 AND C1)*2.5,10,0);



陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1);



NN:=IF((陡峭度 > 0.35),6,65);



VAR17:=((-((100)*(HHV(HIGH,NN) - CLOSE))/(HHV(HIGH,NN) - LLV(LOW,NN))))*((DATE < 20070110));



狂喜:=(30)*(CROSS(VAR17,(-2)));



最牛妖股:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,3))/MA((2*CLOSE+HIGH+LOW)/4,3)*150,2);



XG:=CROSS(最牛妖股,3);



黑马显形:=金牛 AND 火牛 AND 涨停狙击



AND 狂喜 AND 去掉;



DRAWTEXT(黑马显形,LOW,'真龙'),COLOR00FFFF;



DRAWTEXT_FIX(1,0.50,5,0,''),COLORGREEN;

{龙头伏击擒龙副图源码如下}




MA5:=EMA(C,5);

YCXN:=MA5>=REF(MA5,1);

AA1:=REF(CLOSE,1)<(LLV(LOW,10)+(HHV(HIGH,10)-LLV(LOW,10))*1);

AA2:=CLOSE<HHV(HIGH,5) AND CROSS(C,MA(C,5)) AND CROSS(C,MA(C,10)) AND CROSS(C,MA(C,20))

AND CROSS(C,MA(C,34)) AND C/REF(C,1)>=1;

AA3:=CLOSE>=HHV(HIGH,5) AND YCXN AND C/REF(C,1)>=1;

涨停狙击:=DYNAINFO(4)>0

AND HHV(HIGH,5)/LLV(LOW,5)<3.4 AND AA1 AND (AA2 OR AA3);

L0:=(LLV(LOW,10));

L10:=(LLV(LOW,60));

L2:=(LLV(LOW,120));

A1:=REF(CLOSE,1);

C1:=(((CLOSE-A1)/A1)*100)>2.5;

D10:=(((CLOSE-LOW)/LOW)*100)>2;

火龙:=IF((D10 AND L2 AND C1)*2,10,0);

金龙:=IF((D10 AND L0 AND C1)*2.5,10,0);

XG:金龙 AND 火龙 AND 涨停狙击;





{龙头伏击擒龙2副图源码如下}




龙头预警1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;

龙头预警2:=REF(龙头预警1,1);

龙头预警3:=EMA(CLOSE,13)-EMA(CLOSE,26);

龙头预警4:=EMA(龙头预警3,3);

龙头预警5:=(龙头预警3-龙头预警4)*2;

龙头预警6:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

龙头预警7:=MA(CLOSE,5);

龙头预警8:=MA(CLOSE,10);

龙头预警9:=MA(CLOSE,20);

龙头预警10:=MA(CLOSE,60);

龙头预警11:=IF(CLOSE>=龙头预警7,1,(-1));

龙头预警12:=IF(CLOSE>=龙头预警8,1,(-1));

龙头预警13:=IF(CLOSE>=龙头预警9,1,(-1));

龙头预警14:=IF(龙头预警7>=REF(龙头预警7,1),1,(-1));

龙头预警15:=IF(龙头预警8>=REF(龙头预警8,1),1,(-1));

龙头预警16:=IF(龙头预警9>=REF(龙头预警9,1),1,(-1));

龙头预警17:=(龙头预警11+龙头预警12+龙头预警13+龙头预警14+龙头预警15+龙头预警16)/6*100;

龙头预警18:=(-10);

龙头预警19:=EMA(VOL,13);

龙头预警20:=EMA(AMOUNT,13);

龙头预警21:=龙头预警20/龙头预警19/100;

龙头预警22:=(CLOSE-龙头预警21)/龙头预警21*100;

龙头预警23:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

龙头预警24:=LLV(OPEN,30);

龙头预警25:=SMA(龙头预警23,3,1);

龙头预警26:=SMA(龙头预警25,3,1);

龙头预警27:=3*龙头预警25-2*龙头预警26;

龙头预警28:=EMA(HHV(HIGH,1),8);

龙头预警29:=EMA(CLOSE,8);

龙头预警30:=龙头预警29<REF(龙头预警29,1) AND CLOSE<龙头预警29;

龙头预警31:=IF(龙头预警28<REF(龙头预警28,1) OR 龙头预警30,1,0);

龙头预警32:=(COUNT(龙头预警31=1,4)=3 AND 龙头预警31=0 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.085)*89;

STICKLINE(龙头预警32 AND 龙头预警5>=(-0.01) AND CAPITAL<15000000 AND REF(龙头预警1,1)<6,1.2,0,2,0),COLORMAGENTA;

DRAWTEXT(龙头预警32>=89 AND 龙头预警5>=(-0.01) AND CAPITAL<15000000 AND REF(龙头预警1,1)<6,1,19),COLORYELLOW;

龙头预警33:=MA(LOW,20)*1.08;

龙头预警34:=龙头预警6>8 AND 龙头预警17=100;

STICKLINE(龙头预警34=1,0.4,0.8,2,0),COLORRED;

STICKLINE(龙头预警27>=龙头预警26 AND 龙头预警17=100 AND CLOSE>=龙头预警33,0,0.4,2,0),COLORMAGENTA;

龙头预警35:=3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,34)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,13)-LLV(LOW,8))*100,5,1),3,1);

龙头预警36:=10;

龙头预警37:=IF(NAMELIKE(1),0,1);

龙头预警38:=IF(NAMELIKE(2),0,1);

龙头预警39:=DYNAINFO(17)>0;

龙头预警40:=龙头预警37 AND 龙头预警38 AND 龙头预警39;

龙头预警41:=龙头预警7>龙头预警8 AND 龙头预警40;

龙头预警42:=(OPEN+HIGH+LOW)/3;

龙头预警43:=EMA(龙头预警42,4);

龙头预警44:=CLOSE*VOL;

龙头预警45:=EMA((EMA(龙头预警44,3)/EMA(VOL,3)+EMA(龙头预警44,6)/EMA(VOL,6)+EMA(龙头预警44,12)/EMA(VOL,12)+EMA(龙头预警44,24)/EMA(VOL,24))/4,13);

龙头预警46:=龙头预警43>龙头预警45;

放量尝试:CROSS(龙头预警35,龙头预警36) AND 龙头预警41,COLORGREEN,LINETHICK2;

放量突击:CROSS(龙头预警35,龙头预警36) AND 龙头预警41 AND 龙头预警46,COLORYELLOW,LINETHICK2;

DRAWTEXT(放量尝试,0.75,'放量尝试'),COLORGREEN;

DRAWTEXT(放量突击,0.9,'放量突击'),COLORYELLOW;

AHC1J:=CLOSE*VOL;

AHC2J:=EMA((EXPMA(AHC1J,3)/EXPMA(VOL,3)+EXPMA(AHC1J,6)/EXPMA(VOL,6)+EXPMA(AHC1J,12)/EXPMA(VOL,12)+EXPMA(AHC1J,24)/EXPMA(VOL,24))/4,13);

SGJ:=1.06*AHC2J;

DDJ:=1.13*AHC2J;

ZTJ:=REF(C,1)*1.1-C<0.01 AND H=C;

涨停预警:CROSS(C,DDJ) AND ZTJ,COLORLIBLUE,LINETHICK2;

DRAWTEXT(涨停预警,1.05,'涨停预警'),COLORLIBLUE;


未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图