大智慧投机七剑指标公式

T1:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLOR0080FF;

T2:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLOR008000;

T3:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORFF8000;

T4:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR00FFFF;

{白金} {白金星星点灯} {20T 10% 100%}

AA1:=BArslAst(crOSS(30,T1))<2 AND BARSLAST(CROSS(T1,50))<2;

BB1:=BARSLAST(CROSS(T4,T1))<2 AND T1>T4;

EE1:=T1>60 AND T4>70;

白金:AA1 AND BB1 AND EE1,LINETHICK0,COLORWHITE;

{黄金} {黄金星星点灯} {20T 10% 94.05%}

AA2:=BARSLAST(CROSS(50,T1))<3 AND BARSLAST(CROSS(T1,50))<3;

BB2:=BARSLAST(CROSS(T4,T1))<2 AND T1>T4;

黄金:AA2 AND BB2,LINETHICK0,COLORYELLOW;

{天瀑} {启动金三角 (捉中线牛股起涨点)}

XG1:=BARSLAST(CROSS(T4,T1))<5 AND T1>T4;

天瀑:COUNT(XG1,3)=1 AND XG1,LINETHICK0,COLORRED;

{日月} {短线追涨 (高位横盘突破)}

A:=BARSLAST(CROSS(97,T1))<=1 AND BARSLAST(CROSS(T1,85))<=1;

B:=BARSLAST(CROSS(97,T2))<=1 AND BARSLAST(CROSS(T2,85))<=1;

A1:=A AND B;

AA:=BARSLAST(CROSS(97,T1))<=2 AND BARSLAST(CROSS(T1,85))<=1;

BA:=BARSLAST(CROSS(97,T2))<=2 AND BARSLAST(CROSS(T2,85))<=1;

A2:=AA AND BA ;

AAA:=BARSLAST(CROSS(97,T1))<=3 AND BARSLAST(CROSS(T1,85))<=1;

BAA:=BARSLAST(CROSS(97,T2))<=3 AND BARSLAST(CROSS(T2,85))<=1;

A3:=AAA AND BAA ;

B1:=REF(A1,1);

B2:=REF(A2,1);

B3:=REF(A3,1);

D1:=T1=100 AND T2=100 AND A1 ;

D2:=T1=100 AND T2=100 AND A2 ;

D3:=T1=100 AND T2=100 AND A3 ;

日月:D1 OR D2 OR D3,LINETHICK0,COLORCYAN;

{青干}{蓝三角启动 (精确定位起涨第一日)}

AA3:=BARSLAST(CROSS(95,T1))<=2;

BB3:=BARSLAST(CROSS(95,T2))<=2;

EE3:= T4<T1 AND T1<T2 AND T1<T3;

FF3:=T2>50 AND T3>50;

GG3:=T1=100 AND T2=100;

TX:=COUNT(GG3,2)=1;

青干:AA3 AND BB3 AND EE3 AND FF3 AND TX,LINETHICK0,COLORGREEN;

{莫问} {银边启动 (波段启动前兆)}

AA4:=T3=100;

BB4:=T4<90;

莫问:COUNT(A,2) = 2 AND B ,LINETHICK0,COLORBLUE;

{竞星}{启动金三角 (捉中线牛股起涨点)}

AA5:=T1=T2 AND T2=T3 AND T1=100 AND T4>96;

BB5:=COUNT(AA5,2)=1;

DD5:=T1<T2 AND T1<T3 AND T1<T4 AND T2<T3 AND T4<95;

YH:=INDEXC/REF(INDEXC,1)*REF(C,1);

YH1:=REF(C,1)+C-INDEXC/REF(INDEXC,1)*REF(C,1);

X1:=EMA(YH1,7);

X2:=EMA(YH1,14);

X3:=EMA(X1,14);

EE5:=X1>X2 AND X2>X3;

竞星:BB5 AND DD5 AND EE5,LINETHICK0,COLORMAGENTA;

{舍神} {阶段震仓启动点(黄金坑)}

AA6:=BARSLAST(CROSS(T4,T1))>3 AND BARSLAST(CROSS(T1,T4))<3;

BB6:=BARSLAST(CROSS(T4,T2));

DD6:=T3<T4 AND T2<T4;

EE6:=BARSLAST(CROSS(T4,T3))>3 AND BARSLAST(CROSS(T1,T4))<3;

FF6:=T2<T3 AND T2<T4 AND T2<T1 AND T1=100;

舍神:AA6 AND BB6 AND DD6 AND EE6 AND FF6,LINETHICK0,COLOR0080FF;

{画剑}

STICKLINE(白金=1,90,100,1,0),COLORWHITE;

STICKLINE(黄金=1,80,90,1,0),COLORYELLOW;

STICKLINE(天瀑=1,70,80,1,0),COLORRED;

STICKLINE(日月=1,60,70,1,0),COLORCYAN;

STICKLINE(青干=1,50,60,1,0),COLORGREEN;

STICKLINE(莫问=1,40,50,1,0),COLORBLUE;

STICKLINE(竞星=1,30,40,1,0),COLORMAGENTA;

STICKLINE(舍神=1,20,30,1,0),COLOR0080FF;

买入:T1<20 AND T4<20,COLOR0000FF;

STICKLINE(买入=1,0,20,1,0),COLOR0000FF;

{写字位置,高度,间距};X:=58;Y:=50;Z:=5;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*0,'白金星星点灯'),COLORWHITE;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*1,'黄金星星点灯'),COLORYELLOW;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*2,'莫问 银边启动 波段启动前兆'),COLORFF8000;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*3,'天瀑 启动金三角 捉中线牛股起涨点'),COLORRED;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*4,'竞星 启动金三角 捉中线牛股起涨点'),COLORMAGENTA;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*5,'青干 蓝三角启动 精确定位起涨第一日'),COLORGREEN;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*6,'舍神 黄金坑 阶段震仓启动点'),COLOR0080FF;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*7,'日月 短线追涨 高位横盘突破'),COLORCYAN;

DRAWTEXT(BARSCOUNT(CLOSE)=X,Y-Z*8,'游龙 短线至尊 无剑胜有剑'),COLORGRAY;

DRAWTEXTAbs(10,180,'■白金星星点灯'),COLORWHITE;

DRAWTEXTABS(10,195,'■黄金星星点灯'),COLORYELLOW;

DRAWTEXTABS(10,210,'■莫问 银边启动 波段启动前兆'),COLORFF8000;

DRAWTEXTABS(10,225,'■天瀑 启动金三角 捉中线牛股起涨点'),COLORRED;

DRAWTEXTABS(10,240,'■竞星 启动金三角 捉中线牛股起涨点'),COLORMAGENTA;

DRAWTEXTABS(10,255,'■青干 蓝三角启动 精确定位起涨第一日'),COLORGREEN;

DRAWTEXTABS(10,270,'■舍神 黄金坑 阶段震仓启动点'),COLOR0080FF;

DRAWTEXTABS(10,285,'■日月 短线追涨 高位横盘突破'),COLORCYAN;

DRAWTEXTABS(10,300,'■游龙 短线至尊 无剑胜有剑'),COLORGRAY;