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

通达信源码:我的量能趋势+主力爆发副图

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

我的量能趋势:

RSVA1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;    

RSVA2:=100*(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9));    
VAR21:=SMA(RSVA2,9,1)+100;    
VAR11:=SMA(RSVA1,3,1);    
VAR51:=SMA(VAR11,3,1)+100;    
顶底线:=VAR51-VAR21+50;    
VAR2:=LLV(LOW,33);    
VAR3:=HHV(HIGH,21);    
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;    
趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);    
STICKLINE(C,100,90,4,0),COLORFFCC33;    
STICKLINE(C,90,80,4,0),COLORFF9933;    
STICKLINE(顶底线>REF(顶底线,1),20,80,4,0),COLOR9999FF;    
STICKLINE(顶底线<REF(顶底线,1),20,80,4,0),COLOR009966;    
STICKLINE((趋势>REF(趋势,1) AND 顶底线<REF(顶底线,1)),20,80,4,0),COLOR9999FF;    
STICKLINE((趋势<REF(趋势,1) AND 顶底线>REF(顶底线,1)),20,80,4,0),COLOR009966;    
STICKLINE(C,20,10,4,0),COLORFF6633;    
STICKLINE(C,10,0,4,0),COLORFF3333;    
NOTEXT底线:10,COLORWHITE;    
NOTEXT顶线:90,COLORWHITE;    
趋势线1:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),LINETHICK2,COLORBLUE;    
{当前安全度:100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED; }   
DRAWTEXT(CURRBARSCOUNT=6,5,'高安全区'),COLORWHITE;    
DRAWTEXT(CURRBARSCOUNT=6,15,'安全区'),COLORWHITE;    
DRAWTEXT(CURRBARSCOUNT=6,45,'绿区持币'),COLORFFC000;    
DRAWTEXT(CURRBARSCOUNT=6,50,'(投资区)'),COLORWHITE;    
DRAWTEXT(CURRBARSCOUNT=6,55,'粉区持股'),COLORFFC000;    
DRAWTEXT(CURRBARSCOUNT=6,85,'风险区'),COLORWHITE;    
DRAWTEXT(CURRBARSCOUNT=6,95,'高风险区'),COLORWHITE; 
{开始拉升}
VAR22:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);    
天:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,2));    
地:=( MA((VAR22-REF(VAR22,1))/REF(VAR22,1)*100,1));    
STICKLINE(地>天 AND 地<0,10,0,1,0),COLORRED;    
开始拉升:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLORRED;     
{强拉升}    
Y1:=LLV(L,17);    
Y2:=SMA(ABS(L-REF(L,1)),17,1);    
Y3:=SMA(MAX(L-REF(L,1),0),17,2);    
Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));    
STICKLINE(CROSS(Q,0),15,0,4,0),COLORYELLOW;    
强拉升:IF(CROSS(Q,0),1,0),COLORYELLOW;     
{加强拉升}
Q1:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00,LINETHICK2;    
STICKLINE(CROSS(Q1,-24),20,0,4,0),COLORMAGENTA;    
加强拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;  
  
{<<波段绝品>>}    
VAR1B:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;    
VAR2B:=SMA(VAR1B,9,1)+100;    
VAR3B:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;    
VAR4B:=SMA(VAR3B,3,1);    
VAR5B:=SMA(VAR4B,3,1)+100;    
VAR6B:=VAR5B-VAR2B;    
趋势线:IF(VAR6B>45,VAR6B-45,0),COLOR00FFFF,LINETHICK2;    
VAR2Q:=REF(LOW,1);    
VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;    
VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);    
VAR5Q:=LLV(LOW,30);    
VAR6Q:=HHV(VAR4Q,30);    
VAR7Q:=IF(MA(CLOSE,58),1,0);    
VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/999*VAR7Q;    
{火焰山:=IF(VAR8Q>100,100,VAR8Q);  }  
{STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,3.5,0 ),COLOR4444FF; }   
{STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,2.5,0 ),COLOR5555FF;}    
{STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,1.5,0 ),COLOR7777FF;  }  
{STICKLINE(火焰山>0 AND 火焰山>REF(火焰山,1),0 ,火焰山*1.2,0.5,0 ),COLOR9999FF;}    
STICKLINE(REF(趋势线,1)< 趋势线, 趋势线,REF(趋势线,1),3.5,0),COLOR000033;    
STICKLINE(REF(趋势线,1)< 趋势线, 趋势线,REF(趋势线,1),2.8,0),COLOR000055;    
STICKLINE(REF(趋势线,1)< 趋势线, 趋势线,REF(趋势线,1),2.0,0),COLOR000077;    
STICKLINE(REF(趋势线,1)< 趋势线, 趋势线,REF(趋势线,1),1.2,0),COLOR000099;    
STICKLINE(REF(趋势线,1)< 趋势线, 趋势线,REF(趋势线,1),0.4,0),COLOR0000DD;    
STICKLINE(REF(趋势线,1)> 趋势线, 趋势线,REF(趋势线,1),3.5,0),COLOR003300;    
STICKLINE(REF(趋势线,1)> 趋势线, 趋势线,REF(趋势线,1),2.8,0),COLOR005500;    
STICKLINE(REF(趋势线,1)> 趋势线, 趋势线,REF(趋势线,1),2.0,0),COLOR007700;    
STICKLINE(REF(趋势线,1)> 趋势线, 趋势线,REF(趋势线,1),1.2,0),COLOR009900;    
STICKLINE(REF(趋势线,1)> 趋势线, 趋势线,REF(趋势线,1),0.4,0),COLOR00DD00;  
{逃顶}
逃顶:=CROSS(82,RSI);    
STICKLINE( 逃顶,逃顶,10,3.5,0),COLORFF5500;    
STICKLINE( 逃顶,逃顶,15,2.5,0),COLORFF8800;    
STICKLINE( 逃顶,逃顶,20,1.5,0),COLORFFAA00;    
STICKLINE( 逃顶,逃顶,25,0.5,0),COLORFFCC00;    
STICKLINE( 逃顶,逃顶,30,0.1,0),COLORFFFF00;    
D1:=(C+L+H)/3;     
D2:=EMA(D1,6);     
D3:=EMA(D2,5);    
BBUY:=CROSS(D2,D3);    
NOTEXT强弱线:50,COLORGREEN,POINTDOT;    
{DRAWICON(BBUY,20,1); }   
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;    
DRAWICON(CROSS(82,VARR1),10,15);    
DRAWTEXT(CROSS(82,VARR1),35,'逃顶'),COLORYELLOW;
 




主力爆发副图(顶尖财经 股票学院: http://58188.com):

VARL8:EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE;

VAR1:80,COLORFF85FF;
VAR2:20,COLORYELLOW;
VAR3:100,COLORFFFF00,LINETHICK2;
VAR5:=0,LINETHICK2 COLOR6699FF;
VAR6:50,COLORGREEN,POINTDOT;
VARA1:=HHV(HIGH,9)-LLV(LOW,9);
VARA2:=HHV(HIGH,9)-CLOSE;
VARA3:=CLOSE-LLV(LOW,9);
VARA6:=VARA2/VARA1*100-70;
VARA8:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));
VARA9:=(2*CLOSE+HIGH+LOW)/4;
VARD1:=SMA(VARA3/VARA1*100,3,1);
VARD2:=LLV(LOW,34);
VARD3:=SMA(VARD1,3,1)-SMA(VARA6,9,1);
VARA10:=IF(VARD3>100,VARD3-100,0);
VARA11:=HHV(HIGH,34);
 
VARA12:=EMA((VARA9-VARD2)/(VARA11-VARD2)*100,13);
VARA13:=EMA(0.667*REF(VARA12,1)+0.333*VARA12,2);
VARD5:VARA13,COLORRED;
STICKLINE(VARA12-VARA13>0,VARA12,VARA13,3,0),COLORRED;
STICKLINE(VARA12-VARA13<0,VARA12,VARA13,3,0),COLOR00FF0F;
VARA5:=EMA(HHV(HIGH,500),21);
VARI5:=EMA(HHV(HIGH,250),21);
VARI3:=EMA(HHV(HIGH,90),21);
VARI2:=EMA(LLV(LOW,500),21);
VARI1:=EMA(LLV(LOW,250),21);
VARK:=EMA(LLV(LOW,90),21);
VARV1:=EMA((VARI2*0.96+VARI1*0.96+VARK*0.96+VARA5*0.558+VARI5*0.558+VARI3*0.558)/6,21);
VARV2:=EMA((VARI2*1.25+VARI1*1.23+VARK*1.2+VARA5*0.55+VARI5*0.55+VARI3*0.65)/6,21);
VARV3:=EMA((VARI2*1.3+VARI1*1.3+VARK*1.3+VARA5*0.68+VARI5*0.68+VARI3*0.68)/6,21);
VARV5:=EMA((VARV1*3+VARV2*2+VARV3)/6*1.738,21);
VARV6:=REF(LOW,1);
VARV8:=SMA(ABS(LOW-VARV6),3,1)/SMA(MAX(LOW-VARV6,0),3,1)*100;
VARV9:=EMA(IF(CLOSE*1.35<=VARV5,VARV8*10,VARV8/10),3);
VARL1:=LLV(LOW,30);
VARL2:=HHV(VARV9,30);
VARA50:=IF(MA(CLOSE,58),1,0);
VARL3: EMA(IF(LOW<=VARL1,(VARV9+VARL2*2)/2,0),3)/618*VARA50;
VARL5: STICKLINE(VARL3>0,0,VARL3,4,1);
VARL6: VARL3;
 
STICKLINE(VARL3>0,0,VARL6*1.2,3,0) COLOR0000FF;
STICKLINE(VARL3>0,0,VARL6*0.8,3,0) COLOR0066FF;
STICKLINE(VARL3>0,0,VARL6*0.6,3,0) COLOR0099FF;
STICKLINE(VARL3>0,0,VARL6*0.4,3,0) COLOR00CCFF;
STICKLINE(VARL3>0,0,VARL6*0.2,3,0) COLOR00FFFF;

上一篇:通达信源码:超强牛线+反弹A16+抄底爆点

下一篇:通达信公式下载:双龙主图+小妖股