通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
牛熊先知指标公式
均价:=(HIGH+LOW+CLOSE)/3;
VAR1:=LLV(LOW,12);
VAR2:=HHV(HIGH,5);
快线:=EMA((均价-VAR1)/(VAR2-VAR1)*100,4);
慢线:=EMA(0.667*REF(快线,1)+0.333*快线,2);
转点:=IF(快线慢线,1,0);
顶部:75,DOTLINE,COLOR3C3CFF,PRECIS0;
底部:25,DOTLINE,colorcyan,PRECIS0;
均价:=(INDEXH+INDEXL+INDEXC)/3;
个股LC:=REF(均价,1);
个股牛熊:=SMA(MAX(均价-个股LC,0),28,1)/SMA(ABS(均价-个股LC),28,1)*100,coloryellow,PRECIS2;
PARTLINE(个股牛熊,个股牛熊REF(个股牛熊,1),RGB(250,30,250),个股牛熊=REF(个股牛熊,1),RGB(30,250,250)),LINETHICK3;
FILLRGN(个股牛熊,50,个股牛熊50,RGB(155,50,50)),PRECIS2;
FILLRGN(个股牛熊,50,50个股牛熊,RGB(0,100,50)),PRECIS2;
FILLRGN(个股牛熊,75,个股牛熊75,RGB(100,0,100)),PRECIS2;
FILLRGN(个股牛熊,25,25个股牛熊,RGB(50,0,155)),PRECIS2;
大盘LC:=REF(大盘均价,1);
大盘牛熊:SMA(MAX(大盘均价-大盘LC,0),28,1)/SMA(ABS(大盘均价-大盘LC),28,1)*100,coloryellow,PRECIS2;
STICKLINE(转点=1,50,50,6,0),coloryellow;
STICKLINE(转点=0,50,50,6,0),colorcyan;
VAR255:=LLV(LOW,5);
VAR355:=HHV(HIGH,50);
动力线:EMA((CLOSE-VAR255)/(VAR355-VAR255)*5,5)*20,POINTDOT,;
STICKLINE(动力线REF(动力线,1) ,动力线 ,REF(动力线,1),8,1),colorlired;
STICKLINE(动力线=REF(动力线,1) ,动力线 ,REF(动力线,1),8,1),COLOR00FF00;
获利比:WINNER(C)*100,POINTDOT,LINETHICK1;
STICKLINE(获利比REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),colorlired;
STICKLINE(获利比=REF(获利比,1) ,获利比 ,REF(获利比,1),4,1),COLOR00FF00;
LC:=REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),4,1)/SMA(ABS(CLOSE-LC),4,1)*100;
MA6 :MA(RSI6,3),colorgreen;
STICKLINE(MA6REF(MA6,1) ,MA6 ,REF(MA6,1),2,1),COLOR0000FF;
STICKLINE(动力线MA6,动力线,MA6,2,0),coloryellow,LINETHICK3;
箱顶: HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58),color00aaff;
箱底: LLV(MA((LOW+HIGH+CLOSE+OPEN)/4,6),58),color00ff00;
Var1:=EMA((HIGH+LOW+CLOSE)/3*(HHV(HIGH,10)-CLOSE) /(HHV(HIGH,10)-LLV(LOW,10))*20/10+箱底,2);
Var2:=(3*Var1-2*SMA(Var1,5,1))*0.3;
Var3:=(HHV(INDEXH,13)-INDEXC)/(HHV(INDEXH,13)-LLV(INDEXL,13));
Var4:=EMA(3*Var3-2*SMA(Var3,18,1),5);
Var5:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8));
Var6:=3*SMA(Var5,3,1)-2*SMA(SMA(Var5,3,1),5,1);
Var7:=(INDEXC*2+INDEXH+INDEXL)/4;
Var8:=EMA(Var7,13)-EMA(Var7,34);
Var9:=EMA(Var8,5);
VarA:=(Var8-Var9+箱底)*1;
VarB:=1.86*EMA(CLOSE,12)-EMA(CLOSE,34);
力度: VarB,colorffaa99;
VarC:=箱底;
STICKLINE(C=O,C,O,7,0),colorred;
STICKLINE(C=O,C,O,4,0),COLOR7070ff;
STICKLINE(C=O,C,O,2,0),coloryellow;
STICKLINE(C=O,H,L,0,0),coloryellow;
STICKLINE(C=O,C,O,7,0),COLORFF2020;
STICKLINE(C=O,C,O,4,0),COLORFF6600;
STICKLINE(C=O,C,O,2,0),colorffcc66;
STICKLINE(C=O,H,L,0,0),colorffcc66;
牛气冲天: STICKLINE(趋势力度=VarC,VarC,趋势力度,4,0),colorred;
STICKLINE(趋势力度=REF(趋势力度,1) AND 趋势力度VarC,VarC,趋势力度,4,1),colorwhite;
趁机派发: STICKLINE(REF(趋势力度,2)REF(趋势力度,1) AND 趋势力度=REF(趋势力度,1) AND 趋势力度VarC,VarC,趋势力度,4,0),colorgreen;
DRAWICON(REF(趋势力度,2)REF(趋势力度,1) AND 趋势力度=REF(趋势力度,1) AND 趋势力度VarC,趋势力度,2);
熊气盖天: STICKLINE(趋势力度VarC-0.5,VarC-0.5,趋势力度,8,1),coloryellow;
转强信号:STICKLINE(趋势力度REF(趋势力度,1) AND 趋势力度Varc-0.5,Varc-0.5,趋势力度,2,0),colorred;
MA3: MA(CLOSE,3),coloryellow;
MA34: MA(CLOSE,34),colorwhite;
DRAWTEXT(CROSS(MA3,箱底),LOW*0.95, #39;试 #39;),colorffcc66;
STICKLINE(CROSS(MA3,箱底),LOW*0.99,L*0.95,4,0),colorffcc66;
DRAWTEXT(CROSS(MA3,MA34),LOW*0.95, #39;买 #39;),colorff00ff;
STICKLINE(CROSS(MA3,MA34),LOW*0.99,L*0.95,4,0),colorff00ff;
DRAWTEXT(CROSS(MA3,箱顶) AND CLOSE箱顶,箱顶*0.95, #39;追 #39;),coloryellow;
STICKLINE(CROSS(MA3,箱顶) AND CLOSE箱顶,箱顶*0.99,箱顶*0.95,4,0),coloryellow;
DRAWTEXT(CROSS(箱顶,MA3) AND CLOSE箱顶,HIGH*1.05, #39;卖 #39;),color00ff00;
STICKLINE(CROSS(箱顶,MA3) AND CLOSE箱顶,HIGH*1.03,H*1.0,4,0),color00ff00;
DRAWTEXT(REF(VarA,2)REF(VarA,1) AND REF(VarA,1)VarA AND VarA箱顶 AND CLOSE箱顶,HIGH*1.05, #39;顶 #39;),colorwhite;
STICKLINE(REF(VarA,2)REF(VarA,1) AND REF(VarA,1)VarA AND VarA箱顶 AND CLOSE箱顶,HIGH*1.005,H*1.03,4,0),colorwhite
jjx:=ABS(OPEN+HIGH+LOW+CLOSE)/4;
生命:MA(jjx,5),coloryellow;
VL:=REF(LOW,1); VH:=REF(H,1);
Var1:=SMA(ABS(H-Vh),13,1)/SMA(MAX(H-Vh,0),13,1)*100;
Var2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;
Var3:=MA(Var1,13);
Var4:=MA(Var2,13);
Var5:=LLV(L,34);
Var6:=HHV(H,34);
Var7:=EMA(IF(H=Var6,Var3,0),3);
Var8:=EMA(IF(L=Var5,Var4,0),3);
var9:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));
var10:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (var9* 10.9);
Var11:=FILTER(IF(var10=var9 AND Var8REF(Var8,1),Var8*8,0),55);
Var21:=LLV(LOW,60);
Var31:=HHV(HIGH,60);
Var41:=EMA((CLOSE-Var21)/(Var31-Var21)*100,13);
Var51:=EMA(0.667*REF(Var41,1)+0.333*Var41,21);
varl2:=FILTER(CROSS(Var51,Var41) AND Var4184,13);
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSEREF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSEREF(CLOSE,1),OPEN,CLOSE,8,0),colorred;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSE=REF(CLOSE,1),LOW,HIGH,0.1,0),color00ff00;
STICKLINE(CLOSEOPEN OR CLOSE=OPEN AND CLOSE=REF(CLOSE,1),OPEN,CLOSE,8,0),color00ff00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,10,0 ),COLOR008800;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR009900;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00AA00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,2.5,0 ),COLOR00BB00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00CC00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,1.5,0 ),COLOR00DD00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00EE00;
STICKLINE(OPEN=CLOSE ,CLOSE ,OPEN,0.5,0 ),COLOR00FF00;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,10,0) ,COLORFF00FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,8,0) ,COLORFF22FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,4,0) ,COLORFF44FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,2.5,0) ,COLORFF66FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,2,0) ,COLORFF88FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,1.5,0) ,COLORFF99FF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,1,0) ,COLORFFAAFF;
STICKLINE(CLOSEOPEN,CLOSE,OPEN,0.5,0) ,COLORFFBBFF;
持股线:MA(C,26),LINETHICK2,COLOR6600FF;
DRAWTEXT(var11,L*0.98, #39;锁定 #39;),ColorFFFF00;
STICKLINE(var11,H,L,1,1),colorred;
STICKLINE(var11,OPEN,CLOSE,8,0),COLOR000099;
STICKLINE(var11,OPEN,CLOSE,3,0),COLOR0000BB;
STICKLINE(var11,OPEN,CLOSE,2,0),COLOR0000FF;
DRAWTEXT(varl2,H*1.04, #39;逃跑 #39;),coloryellow;
STICKLINE(varl2,H,L,1,1),coloryellow;
STICKLINE(varl2,OPEN,CLOSE,8,0),COLOR00CCCC;
STICKLINE(varl2,OPEN,CLOSE,3,0),COLOR33FFCC;
STICKLINE(varl2,OPEN,CLOSE,2,0),COLOR00FFFF;