通达信战略家擒龙套装指标 源码附图

战略线龙骨线源码如下:

EMA(C,250)*0.9;

EMA(C,250)*2;



DRAWGBK(C>0, RGB(220,130,130),RGB(0,100,100),0,'',0);



VAR1:=HHV(HHV(LOW,10),250);

VAR2:=EMA(EMA(H,20),10)/1.15;

VAR3:=EMA(EMA(L,20),10)*1.15;



DRAWBAND(VAR2,RGB(0,0,0),VAR3,RGB(0,0,0));

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);



{涨停K线标记}

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

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

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



{强弱K线标记}

强:=CROSS(C,VAR3);

DRAWICON(强,VAR3,23);





{倍量}

DRAWNUMBER(V>=REF(V,1)*2,H*1.02,INTPART(V/REF(V,1))),COLORWHITE;



LT:=LLVBARS(L,10);

{LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);}

HT:=FINDHIGHBARS(H,LT+1,50,1);

DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLOR00FFFF,LINETHICK1;





LT2:=LLVBARS(L,20);

{LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);}

HT2:=FINDHIGHBARS(H,LT2+1,100,1);

DRAWLINE(CURRBARSCOUNT=CONST(HT2)+1,H,ISLASTBAR,REF(H,HT2),0),COLOR00CCCC,LINETHICK1;



LT3:=LLVBARS(L,50);

{LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);}

HT3:=FINDHIGHBARS(H,LT3+1,200,1);

DRAWLINE(CURRBARSCOUNT=CONST(HT3)+1,H,ISLASTBAR,REF(H,HT3),0),COLOR00AAAA,LINETHICK1;





龙骨线:EMA(EMA(VAR1,10)+2*STD(VAR1,10),10),COLOREE00EE,LINETHICK2;



HDF:=(H-REF(C,1))/REF(C,1)*100;

炸:=HDF>9.8 AND C<H;

DRAWTEXT(炸,H,'炸'),COLORGREEN;




战略家趋势买源码如下:

DRAWGBK(OPEN>0,RGB(0,0,0),RGB(33,47,58),0,6,0);X_1:=MA(CLOSE,5);

X_2:=MA(CLOSE,13);

X_3:=MA(CLOSE,34);

X_4:=BARSLAST(CROSS(X_1,X_2));

X_5:=BARSLAST(CROSS(X_1,X_3));

X_6:=BARSLAST(CROSS(X_2,X_3));

X_7:=X_4>=X_5 AND X_5>X_6 AND X_4-X_6<20;

X_8:=COUNT(CROSS(X_1,X_2),X_4+1)=1 AND COUNT(CROSS(X_1,X_3),X_4+1)=1 AND CROSS(X_2,X_3) AND X_1>X_2 AND X_2>X_3;

X_9:=X_1>REF(X_1,1) AND X_2>REF(X_2,1) AND X_3<REF(X_3,1);

X_10:=X_1>REF(X_1,1) AND X_2>REF(X_2,1) AND X_3>REF(X_3,1);

X_11:=CLOSE-REF(CLOSE,1);

X_12:=100*EMA(EMA(X_11,6),6)/EMA(EMA(ABS(X_11),6),6);

X_13:=CLOSE<X_1 AND X_1<X_2 AND X_2<X_3;

X_14:=EMA(CLOSE,10)-EMA(CLOSE,20);

X_15:=EMA(X_14,7);

X_16:=2*(X_14-X_15);

X_17:=REF(X_16,1)<REF(X_16,2) AND REF(X_16,2)<REF(X_16,3) AND REF(X_16,3)<REF(X_16,4);

X_18:=X_16>=0 AND COUNT(X_16>REF(X_16,1),1)=1;

X_19:=X_17 AND X_18 AND EMA(CLOSE,13)>REF(EMA(CLOSE,13),1);

X_20:=X_17 AND X_18 AND ABS((X_14-X_15)/CLOSE)<0.018;

X_21:=X_17 AND X_18 AND X_16<0.1;

X_22:=X_19 OR X_20 OR X_21;

X_23:=(2*CLOSE+HIGH+LOW)/4;

X_24:=LLV(LOW,5);

X_25:=HHV(HIGH,4);

X_26:=EMA((X_23-X_24)/(X_25-X_24)*100,4);

X_27:=EMA(0.667*REF(X_26,1)+0.333*X_26,2);

X_28:=EMA(CLOSE,3);

X_29:=EMA(SLOPE(CLOSE,34)*5+CLOSE,21);

短线买点:CROSS(X_28,X_29),NODRAW,COLORRED;

强势短买:CROSS(X_28,X_29) AND X_10,NODRAW,COLORMAGENTA;

趋势买点:CROSS(X_28,X_29) AND X_22,NODRAW,COLORLIRED;

强势趋买:CROSS(X_28,X_29) AND X_22 AND X_10,NODRAW,COLORMAGENTA;

弱势买点:CROSS(X_28,X_29) AND CLOSE<MA(CLOSE,34),NODRAW,COLOR20A5DA;

最后卖点:CROSS(X_29,X_28),NODRAW,COLORGREEN;

短线区间:COUNT(短线买点,BARSLAST(短线买点)+1)=1 AND COUNT(最后卖点,BARSLAST(短线买点)+1)=0,NODRAW,COLORRED;

X_30:=COUNT(弱势买点,BARSLAST(弱势买点)+1)=1 AND CROSS(CLOSE,MA(CLOSE,34)) AND COUNT(CROSS(CLOSE,MA(CLOSE,34)),BARSLAST(弱势买点)+1)=1;

买点恢复:X_30>0 AND 短线区间 AND CLOSE>MA(CLOSE,34) AND BARSLAST(短线买点)>0,NODRAW,COLORRED;

弱加仓:X_7 AND X_8 AND X_9 AND 短线区间 AND BARSLAST(短线买点)>0,NODRAW,COLORFFFFBB;

强加仓:X_7 AND X_8 AND X_10 AND 短线区间 AND BARSLAST(短线买点)>0,NODRAW,COLORYELLOW;

可以卖:CROSS(X_27,X_26) AND X_26>70 AND BARSLAST(短线买点)>0 AND 短线区间,NODRAW,COLORGREEN;

X_31:=BARSLAST(可以卖=1);

X_32:=COUNT(可以卖,BARSLAST(可以卖)+1)=1 AND CROSS(CLOSE,REF(HIGH,X_31)) AND COUNT(CROSS(CLOSE,REF(HIGH,X_31)),BARSLAST(可以卖)+1)=1;

X_33:=BARSLAST(短线买点=1)>BARSLAST(可以卖=1);

可以买:X_32>0 AND X_33 AND 短线区间,NODRAW,COLORRED;

今买明卖:CLOSE>REF(HHV(HIGH,2),1) AND (LLV(X_12,2)=LLV(X_12,7) AND COUNT(X_12<0,2) AND CROSS(X_12,MA(X_12,2))) AND NOT(X_13),NODRAW,COLORWHITE;

STICKLINE(短线区间>0,10,90,4,0),COLORGRAY;

STICKLINE(短线买点>0,0,100,4,0),COLORRED;

STICKLINE(强势短买>0,50,100,4,0),COLORMAGENTA;

STICKLINE(趋势买点>0,50,100,4,0),COLORBLUE;

STICKLINE(强势趋买>0,0,40,4,0),COLORRED;

STICKLINE(强势趋买>0,40,70,4,0),COLORBLUE;

STICKLINE(强势趋买>0,70,100,4,0),COLORMAGENTA;

STICKLINE(最后卖点>0,0,100,4,0),COLORGREEN;

STICKLINE(弱加仓>0,10,90,2,0),COLORFFFFBB;

STICKLINE(强加仓>0,10,90,2,0),COLORYELLOW;

STICKLINE(弱势买点>0,0,100,4,0),COLOR20A5DA;

STICKLINE(买点恢复>0,10,90,2,0),COLORRED;

STICKLINE(今买明卖>0,0,10,4,0),COLORWHITE;

DRAWICON(可以卖,90,2);

DRAWICON(可以买,90,1);




战略家筹码源码如下:


DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;

VA1X:=IF(LLV(LOW,5)<=CLOSE,LLV(LOW,5),CLOSE);

VA2X:=IF(LLV(LOW,10)<=VA1X,LLV(LOW,10),VA1X);

VA3X:=IF(LLV(LOW,20)<=VA2X,LLV(LOW,20),VA2X);

VA4X:=IF(LLV(LOW,30)<=VA3X,LLV(LOW,30),VA3X);

VA5X:=IF(LLV(LOW,40)<=VA4X,LLV(LOW,40),VA4X);

VA6X:=IF(LLV(LOW,50)<=VA5X,LLV(LOW,50),VA5X);

VA7X:=IF(LLV(LOW,60)<=VA6X,LLV(LOW,60),VA6X);

VA8X:=IF(LLV(LOW,100)<=VA7X,LLV(LOW,100),VA7X);

VA9X:=IF(LLV(LOW,150)<=VA8X,LLV(LOW,150),VA8X);

VAAX:=SUM(MA(CLOSE/VA9X,1)-1.1,5);

多方筹码:VAAX,COLORSTICK;

{CROSS(VAAX,0)*2,STICK,LINETHICK3,COLORYELLOW;

DRAWICON(CROSS(VAAX,0),2.2,42);}

CM:=IF(多方筹码>0,MA(多方筹码,2),DRAWNULL);

JX:=MA(CLOSE,10);

STICKLINE(5,多方筹码,0,1,0),COLOR00FFFF;

STICKLINE(多方筹码>REF(多方筹码,1) AND 多方筹码>CM AND JX>REF(JX,1) AND CLOSE>MA(CLOSE,5),0,多方筹码,1,0),COLOR0000FF;

STICKLINE(多方筹码<=REF(多方筹码,1) AND 多方筹码<=CM AND JX<=REF(JX,1),多方筹码,0,1,0),COLOR00FF00;

STICKLINE(多方筹码<0,0,0.3,1,0),COLORFF00FF;

{STICKLINE(CLOSE<MA(CLOSE,34),多方筹码,0,1,0),COLORFFFF00;}

AX1:=IF(HHV(HIGH,5)>=CLOSE,HHV(HIGH,5),CLOSE);

AX2:=IF(HHV(HIGH,10)>=AX1,HHV(HIGH,10),AX1);

AX3:=IF(HHV(HIGH,20)>=AX2,HHV(HIGH,20),AX2);

AX4:=IF(HHV(HIGH,30)>=AX3,HHV(HIGH,30),AX3);

AX5:=IF(HHV(HIGH,40)>=AX4,HHV(HIGH,40),AX4);

AX6:=IF(HHV(HIGH,50)>=AX5,HHV(HIGH,50),AX5);

AX7:=IF(HHV(HIGH,60)>=AX6,HHV(HIGH,60),AX6);

AX8:=IF(HHV(HIGH,100)>=AX7,HHV(HIGH,100),AX7);

AX9:=IF(HHV(HIGH,150)>=AX8,HHV(HIGH,150),AX8);

AAX:=SUM(MA(CLOSE/AX9,1)-1.1,5);

空方筹码:AAX,COLORSTICK;

{CROSS(0,AAX),STICK,LINETHICK3,COLORRED;

RAWICON(CROSS(AAX,0),1,1.5 );};

STICKLINE(空方筹码<0,空方筹码,0,1,-1),COLORFFFF00;



CPX:=10;

WX20:=COST(20);

WX80:=COST(80);

W5:=COST(5);

WX90:=COST(90);

筹码峰宽度1:=WX80-WX20;

筹码峰宽度2:=WX90-W5 ;

筹码密集度:=(筹码峰宽度2)/W5 ;

筹码密集:=(筹码峰宽度1/WX20<0.20) AND (筹码峰宽度2/W5<0.28);

股价突破:=CLOSE/REF(C,1)>1.030 AND VOL>REF(VOL,1)

AND WINNER(CLOSE)>0.80 AND CPX>0;

筹码峰突破:=(筹码密集 OR REF(筹码密集,1)) AND 股价突破 AND CLOSE/REF(WX80,2)<1.10;

IF(筹码峰突破 AND FILTER(筹码峰突破=1,15),1.2,0),LINETHICK2,COLOR0099FF;



W00:=COST(1);

W10:=COST(10);

W20:=COST(20);

W30:=COST(30);

W40:=COST(40);

W50:=COST(50);

W60:=COST(60);

W70:=COST(70);

W80:=COST(80);

W90:=COST(90);

W100:=COST(99);

WR00:=REF(W00,1);

WR10:=REF(W10,1);

WR20:=REF(W20,1);

WR30:=REF(W30,1);

WR40:=REF(W40,1);

WR50:=REF(W50,1);

WR60:=REF(W60,1);

WR70:=REF(W70,1);

WR80:=REF(W80,1);

WR90:=REF(W90,1);

WR100:=REF(W100,1);

WJ:=W00-WR00;

WJ10:=W10-WR10;

WJ20:=W20-WR20;

WJ30:=W30-WR30;

WJ40:=W40-WR40;

WJ50:=W50-WR50;

WJ60:=W60-WR60;

WJ70:=W70-WR70;

WJ80:=W80-WR80;

WJ90:=W90-WR90;

WJ100:=W100-WR100;

MAWJ:=MA(WJ,5),COLORBLUE;

MAWJ10:=MA(WJ10,5),COLORA54312;

MAWJ20:=MA(WJ20,5),COLORCYAN;

MAWJ30:=MA(WJ30,5),COLORFFFF00;

MAWJ40:=MA(WJ40,5),COLOR00FF00;



MAWJ60:=MA(WJ60,5),COLOR00FFFF;

MAWJ70:=MA(WJ70,5),COLOR0055FF;

MAWJ80:=MA(WJ80,5),COLORLIRED;

MAWJ90:=MA(WJ90,5),COLORFF00FF;

MAWJ100:=MA(WJ100,5),COLOR0000FF;



MAKS:=MAWJ+MAWJ10+MAWJ20+MAWJ30+MAWJ40,COLORFFFF00;

MAYL:=MAWJ60+MAWJ70+MAWJ80+MAWJ90+MAWJ100,COLORFF00FF;

{DRAWBAND(MAYL,RGB(255,0,0),MAKS,RGB(0,0,255));}

MAWJ50:=MA(WJ50,5),COLORFFFFFF;

突破:((MAKS+MAYL)-MAWJ50)/2,COLORA0FF0A LINETHICK2;

DRAWICON(筹码峰突破 AND FILTER(筹码峰突破=1,15),1.5,34);

IF(CROSS(突破,0),1.2,0)COLORFFFFFF;

DRAWICON(CROSS(突破,0),1.5,23);

DRAWTEXT_FIX(ISLASTBAR,0,0,0,'34号图标-筹码峰突破 23号图标-筹码突破' ),COLORYELLOW;



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

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

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