通达信公式源码概况:

指标类别:通达信公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、通达信趋势为王买卖主图指标公式

  

短趋势:((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)-50)*1.032+50),COLORRED;  

VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;  

VAR3:=LLV(LOW,34);  

VAR4:=HHV(HIGH,34);  

长趋势:EMA((VAR2-VAR3)/(VAR4-VAR3)*100,13),COLOR00FF00;  

判断底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;  

VAR5:=CROSS(短趋势,长趋势)AND长趋势<25;  

底部:STICKLINE(短趋势<10AND判断底>0,0,30,6,1);  

STICKLINE(VAR5,0,50,8,0),COLORRED;  

DRAWICON(VAR5AND判断底>0,60,1);  

DRAWTEXT(COUNT(短趋势<10AND判断底>0,8)ANDVAR5,50,'一定买');  

DRAWTEXT(CROSS(短趋势,长趋势)AND长趋势>25AND长趋势>REF(长趋势,1),50,'快拉或短顶');  

VAR6:=CROSS(短趋势,长趋势)AND长趋势<50;  

DRAWTEXT(COUNT(短趋势<30AND判断底>0,5)ANDVAR6,30,'短线买');  

O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1;  

O2:EMA(O1,3),COLORFF00FF,LINETHICK1;  

O3:EMA(O2,3),COLOR00FF00,LINETHICK1;  

MMM:=MA(CLOSE,20);  

DRAWTEXT((CLOSEDRAWTEXT((CLOSE>MMM),MMM,'*'),COLOR0000FF,LINETHICK5;  

VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);  

VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR4:=REF(VAR3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR5:=REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR6:=REF(VAR5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR7:=REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR8:=REF(VAR7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR9:=REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARA:=REF(VAR9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VARB:=REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARC:=REF(VARB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VARD:=CLOSEVARE:=REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARF:=REF(VARE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR10:=REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR11:=REF(VAR10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR12:=REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR13:=REF(VAR12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR14:=REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR15:=REF(VAR14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR16:=REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR17:=REF(VAR16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR18:=REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;  

VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD;  

/*粉*/  

STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,0),COLOR00DD00;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,6,0),COLORFF33FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,5,0),COLORFF55FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,4,0),COLORFF77FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3,0),COLORFF99FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2,0),COLORFFBBFF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1,0),COLORFFDDFF;  

/*金*/  

STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLOR000DDD;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,6,0),COLOR003333;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,5,0),COLOR005555;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,4,0),COLOR007777;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR009999;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2,0),COLOR00BBBB;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1,0),COLOR00DDDD;  

/*红*/  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),6,0),COLOR000555;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),5,0),COLOR000777;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),4,0),COLOR000999;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),3,0),COLOR000BBB;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),2,0),COLOR000DDD;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),1,0),COLOR000FFF;  

/*绿*/  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),6,0),COLOR005500;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),5,0),COLOR007700;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),4,0),COLOR009900;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),3,0),COLOR00BB00;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLOR00DD00;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),1,0),COLOR00FF00;  

/*紫*/  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR550055;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),5,0),COLOR770077;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR990099;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBB00BB;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORDD00DD;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFF00FF;  

/*蓝*/  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),6,0),COLORFF3300;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),5,0),COLORFF5500;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLORFF7700;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORFF9900;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFFBB00;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFFDD00;  

DRAWICON(FILTER(VAR19=1,5),L*0.9998,1);  

DRAWICON(FILTER(VAR1A=1,5),H*1.0003,2);  

O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1;  

O2:EMA(O1,3),COLORFF00FF,LINETHICK1;  

O3:EMA(O2,3),COLOR00FF00,LINETHICK1;  

MMM:=MA(CLOSE,20);  

DRAWTEXT((CLOSEDRAWTEXT((CLOSE>MMM),MMM,'*'),COLOR0000FF,LINETHICK5;  

VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);  

VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR4:=REF(VAR3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR5:=REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR6:=REF(VAR5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR7:=REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR8:=REF(VAR7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR9:=REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARA:=REF(VAR9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VARB:=REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARC:=REF(VARB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VARD:=CLOSEVARE:=REF(VARD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VARF:=REF(VARE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR10:=REF(VARF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR11:=REF(VAR10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR12:=REF(VAR11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR13:=REF(VAR12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR14:=REF(VAR13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR15:=REF(VAR14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR16:=REF(VAR15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR17:=REF(VAR16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);  

VAR18:=REF(VAR17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);  

VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;  

VAR1A:=REF(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,1)ANDVARD;  

/*粉*/  

STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,0),COLOR00DD00;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,6,0),COLORFF33FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,5,0),COLORFF55FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,4,0),COLORFF77FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3,0),COLORFF99FF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2,0),COLORFFBBFF;  

STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1,0),COLORFFDDFF;  

/*金*/  

STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,0),COLOR000DDD;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,6,0),COLOR003333;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,5,0),COLOR005555;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,4,0),COLOR007777;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR009999;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2,0),COLOR00BBBB;  

STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1,0),COLOR00DDDD;  

/*红*/  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),6,0),COLOR000555;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),5,0),COLOR000777;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),4,0),COLOR000999;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),3,0),COLOR000BBB;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),2,0),COLOR000DDD;  

STICKLINE(VAR1ORVAR2ORVAR3ORVAR4ORVAR5ORVAR6ORVAR7OR  

VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),1,0),COLOR000FFF;  

/*绿*/  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),6,0),COLOR005500;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),5,0),COLOR007700;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),4,0),COLOR009900;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),3,0),COLOR00BB00;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),2,0),COLOR00DD00;  

STICKLINE(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13OR  

VAR14ORVAR15ORVAR16ORVAR17ORVAR18,CLOSE,REF(CLOSE,1),1,0),COLOR00FF00;  

/*紫*/  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),6,0),COLOR550055;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),5,0),COLOR770077;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),4,0),COLOR990099;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBB00BB;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORDD00DD;  

STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFF00FF;  

/*蓝*/  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),6,0),COLORFF3300;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),5,0),COLORFF5500;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),4,0),COLORFF7700;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORFF9900;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFFBB00;  

STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFFDD00;  

DRAWICON(FILTER(VAR19=1,5),L*0.9998,1);  

DRAWICON(FILTER(VAR1A=1,5),H*1.0003,2);  

MA5:MA(C,5);  

MA6:=MA(C,6);  

MA10:MA(C,10);  

MA20:MA(C,20);  

A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);  

MA30:MA(C,30);  

MA55:MA(C,60);  

MA120:MA(C,120);  

乖离2:=(MA20-MA30)/MA30*100;  

VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);  

MAX1:=MAX(MA20,MA30);  

MAX2:=MAX(MAX1,MA55);  

MIN1:=MIN(MA20,MA30);  

MIN2:=MIN(MIN1,MA55);  

K1:=(MAX2/MIN2-1)*100;  

VAR2:=IF(K1&lt;=8,1,0);  

上火车轨:=MA20&gt;MA30ANDMA20&gt;REF(MA20,1)ANDMA30&gt;REF(MA30,1)ANDMA20-MA30&gt;REF((MA20-MA30),1);  

STICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;  

神枪手:=DRAWTEXT(FILTER(上火车轨AND"MACD.DIF"&lt;0.15AND  

"MACD.DIF"&gt;REF("MACD.DIF",1)ANDMA(V,60)&gt;REF(MA(V,60),1)AND  

MA(V,5)&gt;MA(V,10)ANDJ1&gt;REF(J1,1)AND  

(L&lt;=MA20ANDC&gt;MA20OR(CROSS(MA5,MA20))),5),L*0.98,'←神枪手');  

神枪手选股:=FILTER(上火车轨AND"MACD.DIF"&lt;0.15AND  

"MACD.DIF"&gt;REF("MACD.DIF",1)ANDMA(V,60)&gt;REF(MA(V,60),1)AND  

MA(V,5)&gt;MA(V,10)ANDJ1&gt;REF(J1,1)AND  

(L&lt;=MA20ANDC&gt;MA20OR(CROSS(MA5,MA20))),5);{44.40%15240}  

短线暴涨:DRAWTEXT(FILTER((VAR1ORVAR2)ANDMA10&gt;REF(MA10,1)AND  

COUNT(MA30&gt;REF(MA30,1),3)=3ANDMA30&gt;MA55AND  

COUNT(CROSS(MA5,MA30),3)ANDJ1&gt;MJ1ANDMA(V,5)&gt;MA(V,60)  

ANDMA(V,60)&gt;REF(MA(V,60),1),5),MA55*0.99,'短线暴涨'),COLORRED;  

DRAWTEXT(CROSS("KDJ.K"(5,2,3),"KDJ.D"(5,2,3))AND"KDJ.D"(5,2,3)&lt;30  

ANDJ1&gt;MJ1ANDMA55&gt;REF(MA55,1)ANDCOUNT(J1&lt;1,3)&gt;=1  

,L*0.995,'←买入'),COLORYELLOW;  

DRAWTEXT(CROSS("KDJ.D"(5,2,3),"KDJ.K"(5,2,3))AND"KDJ.D"(5,2,3)&gt;65  

ANDJ1&lt;MJ1ANDCOUNT(J1&gt;1,3)&gt;=1,H*1.005,'←卖出'),COLORGREEN;  

DRAWTEXT(CROSS("KDJ.D"(18,9,6),"KDJ.K"(18,9,6))AND"KDJ.D"(18,9,6)&gt;60AND"KDJ.J"(45,15,15)&gt;90,H*1.03,'←顶'),COLORRED;  

DRAWTEXT(CROSS(MA5,MA6)AND"KDJ.K"(5,3,3)&gt;=50AND"KDJ.J"(5,3,3)&lt;31,L*0.92,'←再买'),COLORMAGENTA;  

XL1:=((LLV(LOW,3)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1))&gt;=1.04));  

XL2:=(((CLOSE-EMA(CLOSE,21))/EMA(CLOSE,21))*100);  

XL3:=CROSS(XL2,(0-20));  

DRAWTEXT(FILTER(((XL1&gt;0)ANDLOW),5),(LOW-0.4),'买点');  

DRAWTEXT((XL3&gt;0),(LOW-0.2),'绝对底部');  

X6:=REF(CLOSE,1);  

X7:=((SMA(MAX((CLOSE-X6),0),7,1)/SMA(ABS((CLOSE-X6)),7,1))*100);  

X8:=CROSS(79,X7);  

X9:=FILTER(X8,4);  

DRAWTEXT(X9,(HIGH*1.02),'出货'),COLOR9000F5;  

STICKLINE(C&gt;1.098*REF(C,1),C,O,0,0),COLORYELLOW;  

VVAR1:=AMOUNT/VOL/7;  

VVAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;

通达信趋势为王买卖主图指标公式(通达信公式)

指标公式知识:

压力位和支撑位的判断方法

一、概念:

压力位:又叫阻力位,在股价上升时可能遇到压力,从而反转下跌的价位。

支撑位:是指在股价下跌时可能遇到支撑,从而止跌回稳的价位。

二、形成压力位和支撑位的几种因素

1、均线形成的压力位和支撑位

2、高点低点形成的压力位和支撑位

3、缺口形成的压力位和支撑位

4、上升和下跌通道形成的压力位和支撑位

三、几种因素的图解和说明

1、均线形成的压力位和支撑位

在前几期的文章里边,小编已经解释了均线的概念和一些技巧(想看的朋友可以关注,翻看之前的文章)移动平均线有助涨助跌作用。当行情上涨时,每条均线都起支撑作用;当行情下跌时,每条均线都起压力作用。不多说,直接上图。

均线形成的压力位和支撑位

上图k线中间的那根白色的线条是ma5,也就是5日均线,在K线上涨的时候,可以看到起到支撑作用,价位触及5日均线就会上涨。而股价跌破均线下跌的时候,这条白色的均线就变成压力线,涨到压力位就涨不上去了。

2、高点低点形成的压力位和支撑位

当K线的价格涨到前期的低点或者高点的时候,或者当K先的价格下跌到前期高点或低点的时候,会触碰成交密集区价位,这个时候就会对当前的走势造成一定影响,形成新的压力位和支撑位。不多说,直接上图

高点低点形成的压力位和支撑位

如上图,黄线是小编在一只股票的k线图上画的一条线,它在不同的时间具有压力和支撑的双重作用。在某一时间可以压制价格涨不上去无法突破,同时又在某一时间支撑价格无法下跌。

3、缺口形成的压力位和支撑位

缺口就是一种股票某一天的最低价比前一天的最高价还高,或是某一天的最高价比前一天的最低价还低,从而使日线图的线条图趋势呈现出跳空的现象。跳空现象的出现,会使得价格在某一区间没有具体成交量,形成交易空白区域。形成压力和支撑。

缺口形成的压力位和支撑位

如上图所示,价格在图最左边7.3附近形成跳空高开缺口,此后,这个价位附近就形成支撑,凡是下跌到这个价位,都会企稳上行。有效跌破之后,在图最后侧上涨的时候到此价位,又形成压力位,无法有效突破。

4、上升和下跌通道形成的压力位和支撑位

上升通道是股市中股票上升趋势的形象化描述,由两条平行线组成。在低位买进的多单可以在市价接近或到达上侧轨道线时获利出单;市价回落至下侧平行线或接近下侧平行线时可选择进仓。下跌通道反之。

上升通道

K线在上升过程中不断地触碰上升通道的上边缘,这个时候上升通道的上边缘就是压力位,当价格跌下来的时候,下边缘就是压力位。价格不断在上升通道中来回震荡,逐步上升。下跌通道原理是一样的。

每日通达信公式解答:

  

编写条件:  

长上影线幅度大于3个点的选股公式。  

编写方法:  

XG:H/MAX(C,O)>1.02;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。