当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:很好用的分时指标,建仓爆发刀,满园春色

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

很好用的分时指标:

不错的分时指标,及时提示分时上涨和下跌

STICKLINE(C>0,0,100,15,0),COLOR7C221C;
 VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100; 
 VAR2:=SMA(VAR1,3,1); 
 VAR3:=SMA(VAR2,3,1); 
 VAR4:=SMA(VAR3,3,1); 
波:=VAR3; 
段:=VAR4; 
 VAR5:=CROSS(VAR3,VAR4) AND VAR3<20; 
 DRAWTEXT(FILTER(VAR5,10)=1,40,'底'),COLORRED; 
 STICKLINE(FILTER(VAR5,10)=1,0,20,10,0),COLORRED; 
 VAR9:=CROSS(VAR4,VAR3) AND VAR3>80; 
 STICKLINE(FILTER(VAR9,5)=1,80,100,4,0),COLOR007700;
 STICKLINE(FILTER(VAR9,5)=1,80,100,3,0),COLOR009900;
 STICKLINE(FILTER(VAR9,5)=1,80,100,2,0),COLOR00BB00;
 STICKLINE(FILTER(VAR9,5)=1,80,100,1,0),COLOR00DD00;
 STICKLINE(FILTER(VAR9,5)=1,80,100,0.3,0),COLOR00FF00;
 DRAWTEXT(FILTER(VAR9,5)=1,70,'顶'),COLORGREEN; 
 VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4; 
 STICKLINE(VAR8,85,100,10,0),COLOR0099FF; 
 100,COLORBBBBBB,LINETHICK3; 
 0,LINETHICK3; 
 AA:=LLV(LOW,36); 
 BB:=HHV(HIGH,30); 
云:80,COLORWHITE; 
天:87.5,COLORBLUE,LINETHICK3; 
 DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25); 
飞:=DD,COLOR00FFFF,LINETHICK2;
 {IF(DD>REF(DD,1),DD,DRAWNULL),COLORRED,LINETHICK2;
 IF(DD<REF(DD,1) AND DD<87.5,DD,DRAWNULL),COLOR00FF00,LINETHICK2;}
海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25); 
买B:=IF(CROSS(海,90) AND (飞<40),30,0),COLORYELLOW,LINETHICK2; 
地:10,COLORGREEN,LINETHICK3; 
买A:IF((COUNT((飞>REF(飞,1)),1)=1) AND (REF(飞,1)<REF(REF(飞,1),1)) 
 AND (飞<地),40,0),COLORRED,LINETHICK2;
 VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
 VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
 VAR400:=EMA(VAR300,5);
分析家公式网:=VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
操盘:=3*VAR300-2*VAR400;
 A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;
 STICKLINE(A1,30,0,4,0),COLOR770077;
 STICKLINE(A1,30,0,3,0),COLOR990099;
 STICKLINE(A1,30,0,2,0),COLORBB00BB;
 STICKLINE(A1,30,0,1,0),COLORDD00DD;
 STICKLINE(A1,30,0,0.3,0),COLORFF00FF;
 DRAWTEXT(A1,36,'全仓'),COLORRED;
持股:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
 -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-
 LLV(LOW,27))*100,5,1),3,1),LINETHICK,COLORRED;
支撑:LLV(持股,3),LINETHICK,COLOR00FFFF;
下跌:MA(持股,12),COLOR6B8E23,LINETHICK2;
转向:=CROSS(持股,下跌) AND 下跌<30;
 MA1:=MA(持股,5);
 VAR18:=CROSS(MA1,持股) AND MA1>80;
 {STICKLINE(支撑<下跌,支撑,下跌,2,0),COLOR6B8E23;}
 DRAWBAND(支撑,RGB(238,0,6),下跌,RGB(256,250,60));
 {STICKLINE(持股>0,支撑,持股,2,0),COLORRED;}
 DRAWBAND(持股,RGB(238,0,6),支撑,RGB(256,150,60));
 STICKLINE(支撑>下跌,下跌,支撑,2,0),COLOR38B0DE;
 DRAWICON(转向,支撑*0.98,23);
 DRAWICON(VAR18,持股*1.03,15);
 E:=CROSS(83,RSI);
 STICKLINE( E,E,55,1,0),COLOR00FFFF;
 DRAWTEXT(E,50,' 逃顶'),COLORFF9966;
 VA1:=HHV(HIGH,9)-LLV(LOW,9); 
 VA2:=HHV(HIGH,9)-CLOSE;
 VA3:=CLOSE-LLV(LOW,9);
 VA4:=VA2/VA1*100-70;
 VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
 VA6:=(CLOSE+HIGH+LOW)/3;
 VA7:=SMA(VA3/VA1*100,3,1);
 VA8:=LLV(LOW,34);
 VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
 VARA:=IF(VA9>100,VA9-100,0);
 VARB:=HHV(HIGH,34);
 VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
 VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
 VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;
 VARF:=MA(VARE,3);
 VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
 VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
 VAR10:=IF((VAR9>100),VAR9-100,0);
 VAR11:=HHV(HIGH,34);
 B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
 DRAWKLINE(EMA(B1,5),EMA(B1,5),B1+1,B1);
领先:EMA(B1,5),COLORCYAN;
生命线:EMA(VARD,1),COLORYELLOW;
 V1:=MA(C,5)=HHV(MA(C,5),20);
 V2:=MA(C,5)>MA(C,10);
 V3:=MA(V,5)>MA(V,40)*1.01;
 V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
 VV:=V1 AND V2 AND V3 AND V4;
 A2:=EMA(A1,20);
 A3:=CROSS(A1,A2);
 A4:=A1<EMA(CLOSE,120);
 STICKLINE((A3 AND A4)OR(V1 AND V2 AND V3 AND V4),B1*1.03,B1*1.120,1,0),COLORYELLOW;
 A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*
 SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1),CIRCLEDOT ,COLORFF9900 ;
安全位:=20;
低位转强:IF(CROSS(A5,安全位),50,0),STICK,COLORMAGENTA,LINETHICK2;
开始拉升:IF(CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O,50,0),
 COLORLIRED,POINTDOT;
 A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);
极地上涨:IF(A6,领先,0),COLORGREEN,LINETHICK2;
 STICKLINE(开始拉升>0,15,开始拉升*1.01,1,0),COLORBLUE;
 STICKLINE((开始拉升>0 AND 开始拉升<400) OR (极地上涨>0 AND 极地上涨<400)
 OR (低位转强>0 AND 低位转强<400) OR (低位转强>0),30,开始拉升,1,0),COLORRED;
 STICKLINE(开始拉升>0,15,开始拉升*0.6,3,0),COLORBLUE;
 STICKLINE(开始拉升>0,15,开始拉升*0.4,3,0),COLOR00FF00;
 STICKLINE(开始拉升>0,15,开始拉升*0.2,3,0),COLOR0099CC;
 STICKLINE(低位转强>0,15,低位转强*1.01,1,0),COLORMAGENTA;
 STICKLINE((低位转强>0)OR(极地上涨>0),15,低位转强*0.4,3,0),COLORYELLOW;
 STICKLINE(低位转强>0,15,低位转强*0.2,3,0),COLORFFCC66;
 STICKLINE(极地上涨>0,15,极地上涨*1.01,1,0),COLORYELLOW;





建仓爆发刀:

能及时提示上涨和下跌
 

MA1:=MA(COST(15),1);

 TJ:=BARSLAST(MA1<C);

 TJJ:=BARSLAST(MA1>C);

建仓:SUM(V,TJ)/TJ/100,COLORFFFFFF;

启动:SUM(V,TJJ)/TJJ/100,COLORFF00FF;

 DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);

 DEA := EMA(DIFF,9);

 MCD := 2*(DIFF-DEA), COLORSTICK;

 AG:=CROSS(DIFF,DEA);

 MACD1:=SUM(V,BARSLAST(AG)+1)/CAPITAL*200,COLORRED;

操作:IF(DEA>REF(DEA,1) AND DIFF>DEA,MACD1,0),COLORYELLOW;

 DRAWTEXT(CROSS(建仓,启动) ,建仓,'▲注'),COLORGREEN;

 DRAWTEXT(CROSS(启动,建仓) ,建仓,'▲关'),COLORRED;

 MM:=DOWNNDAY(启动,21);

 DRAWTEXT(MM ,启动,'▲动'),COLORBROWN;

庄250:EMA(WINNER(C)*70,250)*2000,COLORCYAN;

分析家公式网:=BARSLAST(MA1>C);

 YY:=CROSS(EMA(WINNER(C)*70,1),EMA(WINNER(C)*70,181));

庄1:EMA(WINNER(C)*70,1)*10,COLORLIRED;

 DRAWTEXT(YY,庄250*0.98,'▲冲击'),COLORWHITE;

关注:= (CROSS(EMA(C,13),EMA(C,55))) ;

 DRAWTEXT(关注 ,建仓,'▲顾'),COLORLIBLUE;

底7:EMA(C,7)*(EMA(C,7))*5,COLORBLUE;

顶55: HHV(HIGH,60)*0.98*(EMA(C,55))*5,COLORFFFFCC;

关:= (CROSS(底7,顶55)) ;

 DRAWTEXT(关 ,建仓,'▲顶'),COLORYELLOW;

 KK:=CROSS(EMA(WINNER(C)*70,2),EMA(WINNER(C)*70,181));

 FF:=CROSS(EMA(WINNER(C)*70,3),EMA(WINNER(C)*70,181));

 RR:=CROSS(EMA(WINNER(C)*70,7),EMA(WINNER(C)*70,181));

 TT:=CROSS(EMA(WINNER(C)*70,13),EMA(WINNER(C)*70,181));

 RU:=YY AND KK AND FF AND RR AND TT;

 DRAWTEXT(RU,建仓,'▲射'),COLORRED;





满园春色:

公式非常漂亮,色香味俱全(顶尖财经 股票学院: www.58188.com)

LC:=REF(C,1);
 DI:=(EMA(C,12)-EMA(C,26))/C*100+60,COLOR660000;
 DE:=EMA(DI,9),LINETHICK1,COLOR00AAAA;
 STICKLINE(1=1,DI*1.2,120,4,0),COLORFFCC00;
 RSI6:SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*150-30,NODRAW,COLOR009900;
 RSI06:=IF(RSI6>0,SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*150-30,0),NODRAW,COLOR009900;
 CCI:((C-MA(C,14))/(0.015*AVEDEV(C,14)))/4+50,NODRAW,COLOR668800;
 CCI0:=IF(CCI>0,((C-MA(C,14))/(0.015*AVEDEV(C,14)))/4+50,0),NODRAW,COLOR668800;
 K9:=SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1);
 D9:=SMA(K9,3,1);
 J9:3*K9-2*D9,COLORAA6600,NODRAW;
 J09:=IF(J9>0,3*K9-2*D9,0),COLORAA6600,NODRAW;
 STICKLINE(J09>=0,REF(J09,10),0,4,0),COLORAA6600;
 STICKLINE(CCI0>=0,REF(CCI0,5),0,4,0),COLOR888800;
 STICKLINE(1=1,-15,0,4,0),COLOR556688;
 STICKLINE(1=1,RSI06,0,4,0),COLOR008800;
 STICKLINE(1=1,DI*1.2,DI,6,1),COLOR111111;
 STICKLINE(1=1,DI*1.2,DI,2,1),COLOR777777;
 STICKLINE(DE>=0,DE,0,4,0),COLORAAAAAA;
 STICKLINE(1=1,DI*0.97,DI*0.98,4,0),COLOR777777;
 STICKLINE(1=1,DI*0.94,DI*0.95,4,0),COLOR777777;
 STICKLINE(RSI6>=0,RSI6,0,4,0),COLOR009900;
 STICKLINE(CCI>=0,CCI/3,0,4,0),COLOR005500;
红杏出墙超跌:IF(LLV(CCI,10)<0 AND C=LLV(C,10) AND L=LLV(L,10),80-CCI,DRAWNULL),CROSSDOT,
 LINETHICK6,COLORCC00FF;
 IF(LLV(CCI,10)<0 AND C=LLV(C,10) AND L=LLV(L,10),80-CCI,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
 IF(LLV(DI,10)<0 AND C=LLV(C,10) AND L=LLV(L,10),70-DI,DRAWNULL),CROSSDOT,
 LINETHICK6,COLOR6644FF;
 IF(LLV(DI,10)<0 AND C=LLV(C,10) AND L=LLV(L,10),70-DI,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
 IF(LLV(J9,10)<-6 AND C=LLV(C,10) AND L=LLV(L,10),70-J9,DRAWNULL),CROSSDOT,
 LINETHICK6,COLOR0000FF;
 IF(LLV(J9,10)<-6 AND C=LLV(C,10) AND L=LLV(L,10),70-J9,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
 IF(LLV(RSI6,10)<0 AND C=LLV(C,10) AND L=LLV(L,10),70-RSI6,DRAWNULL),CROSSDOT,
 LINETHICK6,COLORAA00FF;
 IF(LLV(RSI6,10)<0 AND C=LLV(C,10) AND L=LLV(L,10),70-RSI6,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
蓝花凋零超涨:IF(HHV(CCI,10)>100 AND C=HHV(C,10) AND H=HHV(H,10),100-CCI,DRAWNULL),CROSSDOT,
 LINETHICK6,COLORFF8800;
 IF(HHV(CCI,10)>100 AND C=HHV(C,10) AND H=HHV(H,10),100-CCI,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
 IF(HHV(DI,10)>100 AND C=HHV(C,10) AND H=HHV(H,10),100-DI,DRAWNULL),CROSSDOT,
 LINETHICK6,COLORAAAA00;
 IF(HHV(DI,10)>100 AND C=HHV(C,10) AND H=HHV(H,10),100-DI,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
 IF(HHV(J9,10)>114 AND C=HHV(C,10) AND H=HHV(H,10),100-J9,DRAWNULL),CROSSDOT,
 LINETHICK6,COLORFF0077;
 IF(HHV(J9,10)>114 AND C=HHV(C,10) AND H=HHV(H,10),100-J9,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
 IF(HHV(RSI6,10)>98 AND C=HHV(C,10) AND H=HHV(H,10),100-RSI6,DRAWNULL),CROSSDOT,
 LINETHICK6,COLORFF3300;
 IF(HHV(RSI6,10)>98 AND C=HHV(C,10) AND H=HHV(H,10),100-RSI6,DRAWNULL),CROSSDOT,
 LINETHICK1,COLORFFFFFF;
 AA:=IF(CCI>REF(CCI,1) AND J9>REF(J9,1) AND RSI6>REF(RSI6,1) AND (DI>REF(DI,1) 
 OR DE>REF(DE,1)) AND HHV(CCI,10)<100 AND HHV(J9,10)<100 AND HHV
 (RSI6,10)<100,1,0);
 DRAWICON(AA=1 AND REF(AA,1)=0,RSI6,17);
 BB:=IF(CCI<REF(CCI,1) AND J9<REF(J9,1) AND RSI6<REF(RSI6,1) AND (DI<REF(DI,1) 
 OR DE<REF(DE,1)) AND LLV(CCI,10)>0 AND LLV(J9,10)>0 AND LLV(RSI6,10)
 >0,1,0);
 DRAWICON(BB=1 AND REF(BB,1)=0,RSI6,16);
 DRAWICON(CROSS(DI,DE) AND DE>REF(DE,1) AND HHV(CCI,10)<100 AND HHV(J9,10)<
 100 AND HHV(RSI6,10)<100,RSI6,17);
 DRAWICON(CROSS(DE,DI) AND DE<REF(DE,1) AND LLV(CCI,10)>0 AND LLV(J9,10)>0 AND
 LLV(RSI6,10)>0,RSI6,16);
 

上一篇:通达信源码:黄块快买,复合顶底,散户黑马操盘副图

下一篇:通达信源码:主力监控,三生万物 探寻拐点,绝佳组合