【通达信源码分享】精品指标公式-T+0分时、BOLL-M、抄底资金、趋势雷达 指标源码
T+0分时 指标源码
A0:CONST(DYNAINFO(3))NODRAW;
A5:IF(DYNAINFO(14)>0,A00.99,A01.01),NODRAW;
A1:3*(EMA(CLOSE,12)-EMA(CLOSE,26))+A5,COLORLIMAGENTA;
A2:EMA(A1,9),COLORLIGREEN;
MACD:=(A1-A2)*2+A5;
STICKLINE(A1>=A2,A5,MACD,0,-1),COLORRED;
STICKLINE(A1<A2,A5,MACD,0,-1),COLORLICYAN;
BOLL-M 源码
{BOLL-M 指标新版源码}
N:=20;
中轨:SMA(CLOSE,N,1),COLORFFFFFF;
VART1:=POW((C-中轨),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=中轨+2*VART3;
LOWER:=中轨-2*VART3;
压力:REF(UPPER,1),COLOR00FFFF;
支撑:REF(LOWER,1),COLORFF00FF;
同花顺转通达信
抄底资金 指标源码
R:=(LARGETRDINNUM-LARGETRDOUTNUM)/CAPITAL*100;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
相对强弱:=0.5RSI1+0.31RSI2+0.19*RSI3;
WAVE1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
WAVE2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
WAVE3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
短线波段:=0.5WAVE1+0.31WAVE2+0.19*WAVE3;
机会区:20,POINTDOT,COLORRED;
风险区:80,POINTDOT,COLORGREEN;
低位区:00,POINTDOT,COLORGRAY;
风险系数:0.5相对强弱+0.5短线波段,COLORYELLOW;
CD1:=IF(风险系数<20 AND CLOSE>OPEN AND R>0,1,0);
CD2:=IF(风险系数<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND R>0,1,0);
CD3:=IF(REF(风险系数,1)<20 AND 风险系数>REF(风险系数,1),1,0);
SIGNALBUY:=(CD1=1 OR CD2=1 OR CD3=1);
X:=(SIGNALBUY AND COUNT(SIGNALBUY,3)=1);
DRAWICON(X,机会区,1);
趋势雷达 指标源码
{趋势雷达 指标源码}
MA5:=MA(C,5);
超买:3.2,COLORGRAY;
超卖:0.5,COLORGRAY;
低位:0.0,COLORGRAY;
中位线:=1.75;
最小值:=LLV(LOW,10);
最大值:=HHV(HIGH,25);
CC:=EMA((CLOSE-最小值)/(最大值-最小值)*4,4);
BB:EMA(CC,3);
AA:=BB>=REF(BB,1);
DD:=CLOSE>MA(CLOSE,20)AND CLOSE>MA(CLOSE,5);
EE:=CLOSE<MA(CLOSE,10)AND CLOSE<MA(CLOSE,5);
量:=VOL>MA(VOL,5);
STICKLINE(BB>=REF(BB,1),CC,REF(CC,1),1,0),COLORRED;
STICKLINE(BB<REF(BB,1),CC ,REF(CC,1),1,0),COLORGREEN;
D:=AA=1 AND REF(AA,1)=0 AND (REF(AA,2)+REF(AA,3)=0) AND BB<0.5;
S:=AA=1 AND REF(AA,1)=0 AND (REF(AA,2)+REF(AA,3)=0) AND DD=1 AND REF(DD,1)=0 AND 量=1;
DD1:=BB>2 AND (AA=0 AND REF(AA,1)=1) AND (REF(AA,2)+REF(AA,3)=2);
TZ:=(AA=0 AND REF(AA,1)=1) AND (REF(AA,2)+REF(AA,3)=2) AND MA5<0 AND EE=1 AND BB>1;
DRAWTEXT(D=1,BB,'底');
DRAWTEXT(S=1,BB,'升');
DRAWTEXT(DD1=1,BB,'顶');
DRAWTEXT(TZ=1,BB,'下');
{IF(BB,BB>=REF(BB,1),BB<REF(BB,1)),COLORRED;}
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!