通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 主图
盘前三线主图指标公式
强弱线:0,COLOR663399;
p1:=13;
p2:=5;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0), 4, 1)/SMA(ABS(CLOSE-LC),4,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0), 8, 1)/SMA(ABS(CLOSE-LC),8,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
Var1:=(RSI1+RSI2+RSI3)/3,colorwhite;
Var2:=MA(CLOSE, 5);
Var3:=MA(CLOSE,10);
Var4:=MA(CLOSE,20);
Var5:=MA(CLOSE,30);
Var6:=(Var2+Var3+Var4+Var5)/4;
Var7:=(Var6-REF(Var6, p1 ))/REF(Var6, 13)*100;
Var8:=(Var6-REF(Var6, p1 ))/REF(Var6, 13)*100;
Var9:=EMA(Var7, p2);
:Var9,colorwhite, POINTDOT;
:STICKLINE(Var91*REF(Var9, 1), Var7, 0, 0.1, 0),COLOR663399;
持股:STICKLINE(Var71*REF(Var7, 1), Var7,Var9, 7, 1), COLOR5050ff;
持币:STICKLINE(Var71*REF(Var7, 1), Var7,Var9, 7, 1), colorgreen;
离场或持股观望:STICKLINE(趋势=0 AND Var71*REF(Var7, 1) ,var7,趋势,7,1),COLORC0C0C0;
预警:STICKLINE(趋势=20 AND 趋势REF(趋势 ,1),Var7 ,趋势,7 ,0 ),coloryellow;
风险:STICKLINE(趋势=40 AND 趋势REF(趋势 ,1),Var7,趋势 ,7 ,0 ),COLOREE00EE;
相对头部:STICKLINE(趋势5 AND
Var1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
波: Var3;
段: Var4;
Var5:=CROSS(Var3,Var4) AND Var320;
DRAWTEXT(FILTER(var5,10)=1,40, #39; #39;),colorred;
STICKLINE(FILTER(var5,10)=1,0,30,10,0),colorred;
Var9:=CROSS(Var4,Var3) AND Var380;
STICKLINE(FILTER(var9,5)=1,80,100,10,0),colorgreen;
DRAWTEXT(FILTER(var9,5)=1,70, #39; #39;),colorgreen;
Var8:=CROSS(Var2,Var3) AND Var380 AND Var3Var4;
STICKLINE(var8,85,100,10,0),color0099ff;
100,colorbbbbbb,linethick3;
0,linethick3;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
风险:80,ColorFF00FF;
小心:87.5,Color00FF00;
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
股神:DD,Color00FF00,Linethick2;
股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
目标出现B:IF(CROSS(股海,90) AND (股神40),70,0),ColorFFFF00;
跟踪:10,Color0000FF;
目标出现A:IF((COUNT((股神REF(股神,1)),1)=1) AND (REF(股神,1)REF(REF(股神,1),1)) AND (股神跟踪),50,0),ColorF00FF0;
Var3:=REF(HIGH,1)*1.1;
Var4:=HIGH*1.1;
Var5:=(Var4*VOL+Var3*(CAPITAL-VOL))/CAPITAL;
Var6:=REF(LOW,1)*0.9;
Var7:=LOW*0.9;
Var8:=(Var7*VOL+Var6*(CAPITAL-VOL))/CAPITAL;
Var9:=EMA(Var8,30);
VarA:=EMA(Var5,30);
VarB:=VarA-2;
VarC:=IF(CLOSE=Var9,VarB,VarA);
VarD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
n:=3;m:=2;
出手:STICKLINE(VarC-VarB=0ANDCROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),50,0,5,0),coloryellow;
赢:DRAWTEXT(FILTER(VarC-VarB=0ANDCROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),4),55, #39;买入 #39;),colorwhite,;
VarE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
卖出线:SMA(SMA(VarE,3,1),3,1),colorff6633,;
买入线:3*SMA(VarE,3,1)-2*卖出线,colorred,;
DRAWICON(CROSS(90,买入线),90,2);
顶:STICKLINE(CROSS(90,买入线),15,0,5,0),colorgreen,;
黄金点:STICKLINE(SMA(VarE,3,1)卖出线,SMA(VarE,3,1),卖出线,4,0),coloryellow,;
A:=MA(CLOSE,20);
B:=REF(MA(CLOSE,20),1);
MACD:(A-B)*1000,COLORSTICK;
VAR111:=IF(DATE1500830ANDDATE900101,1,0);
VAR222:=LLV(LOW,10);
VAR333:=HHV(HIGH,25);
K1:=(28/10)*VAR111*100;
K2:=(32/10)*VAR111*100;
K3:=(35/10)*VAR111*100;
RSV111:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV111,3,1),COLORFFFFFF;
D:=SMA(K,3,1),COLOR00FFFF;
J:=3*K-2*D,COLORFF00FF;
X:=LLV(J,2)=LLV(J,8);
Y:=IF(CROSS(J,REF(J+0.01,1))ANDXANDJ20,30,0),COLOR00FF00;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ20ANDMACD0,B*1.05, #39;短 #39;),COLORFF00FF;