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

通达信源码:三线合一主图及选股+五指通道主图+顶底转强

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

三线合一主图及选股指标公式:

AMV0:=V*(O+C+H+L)/4;
势:EMA(AMV0,21)/EMA(V,21);
压:6*HHV(势,2)-5*势;
托:2*势-压;

{
选股公式:

AMV0:=V*(O+C+H+L)/4;
势:=EMA(AMV0,21)/EMA(V,21);
压:=6*HHV(势,2)-5*势;
托:=2*势-压;
XG:REF(压>托,1) AND 托=压;
}



五指通道主图指标公式(顶尖财经 股票学院: http://58188.com):

MA5:MA(CLOSE,5), COLOR0000FF;
MA10:MA(CLOSE,10) ,COLOR00FF00;
N:=3;
VAR11:=MA(CLOSE,N);
VAR12:=MA(CLOSE,2*N);
VAR13:=MA(CLOSE,3*N);
VAR14:=MA(CLOSE,4*N);
VAR15:=MA((VAR11+VAR12+VAR13+VAR14)/4,5);
上轨:VAR15*1.08,COLORYELLOW,LINETHICK2;
下轨:VAR15*0.92,COLORYELLOW,LINETHICK2;
中上:VAR15*1.05,COLORGREEN,LINETHICK2;
中下:VAR15*0.95,COLORGREEN,LINETHICK2;
一脸笑:=CROSS(c,中上) and c/ref(c,1)>1.085;
又笑脸:=CROSS(c,上轨) and c/ref(c,1)>1.085;




顶底转强指标公式:

V1:=LLV(LOW,10);
V2:=HHV(H,25);
价位线:=EMA((C-V1)/(V2-V1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),-70,'●★'),COLORRED;
DRAWTEXT(CROSS(3.5,价位线),139,'●逃'),COLORFFFFFF;
VV2:=REF(CLOSE,1);
VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
DRAWTEXT(REF(VV3,1)>81 AND VV3<80,110,' 沽空↓'),COLORYELLOW;
VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND
CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),-70,'☆'),COLORRED;
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3)
AND REF(LOW,1)=LLV(LOW,120),1,0),-70,'★注意买入');
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWTEXT(HY3,-105,' 注意买入'),COLORYELLOW;
S:=MA(VOL,5)/MA(VOL,60);
A:=MA(S,5);
BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
F:=MA(S,121);
RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
K:=SMA(RSV,15,1);
D:=SMA(K,15,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(83,RSI6) , 125,'逃顶!'),COLORYELLOW ;
S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0);
DRAWTEXT(S1=2,-100,'关注!'), COLORGREEN;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),LINETHICK2;
WWWGUPANGCOM:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
MA(CCI,3),LINETHICK2;
MA(CCI,7),LINETHICK2;
DRAWTEXT(((LLV(LOW,21) = LOW){ AND
MA(CCI,1)>=REF(MA(CCI,1),1)} AND NOT((LLV(CCI,21) =CCI))),LLV(CCI,21),'底背离'),COLORRED;
DRAWTEXT(((HHV(HIGH,34) = HIGH) AND(MA(CCI,3)<REF(MA(CCI,3),1) OR CCI<REF(CCI,1)) AND
NOT((HHV(CCI,34) = CCI))),HHV(CCI,55),'顶背离'),COLORGREEN;
100;
-100;

上一篇:通达信源码:底部买点+顶位

下一篇:通达信源码:B04变色K线+背离主图+龙虎榜主图