通达信每周5%指标公式
2020/1/10 17:52:40
{参数: N1:1,100.10; N2:0,30,3; P:1,100,6}
V1:=EMA(CLOSE,5)-EMA(CLOSE,340);
V2:=EMA(V1,144);
V3:(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,COLOR00BB00;
卖出:-1*IF((CROSS(98.5,V3) AND V1>V2) AND COUNT(V3>97,3)=2,20,0)+90,COLORFF9900;
抄:IF(CROSS(V3,5) AND V1<V2,-20,0)-50,COLOR0090FF;
DRAWTEXT(CROSS(V3,5) AND V1<V2,-45,'抄'),COLORFF00FF;
DRAWTEXT(CROSS(98.5,V3) AND V1>V2,75,'卖'),COLOR00FF00;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
LC := REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
短卖:=STICKLINE(CROSS(RSI1,80),60,95,2,0),COLORFF9900,LINETHICK1;
DRAWTEXT(CROSS(RSI1,80),98,' 卖'),COLORFFFFCC;
买R:STICKLINE(CROSS(RSI1,50),30,70,1,0),COLORRED,LINETHICK1;
DRAWTEXT(CROSS(RSI1,50),50,' 买'),COLORFFFFCC;
{看股吧-股票公式网站 www.kanguba.com}
压力:= HHV(MA(RSI1,3),13),COLORGREEN;
支撑:=LLV(MA(RSI1,3),13),COLORYELLOW;
AA:=REF(RSI1,N2)=HHV(RSI1,2*N2+1);
BB:=BACKSET(AA,N2+1);
CC:=FILTER(BB,N2) AND RSI1=HHV(RSI1,N2+1);
K1:=BARSLAST(REF(CC,1));
顶背离:=REF(CLOSE,K1+1)<CLOSE AND REF(RSI1,K1+1)>RSI1 AND CC;
DRAWTEXT(顶背离,RSI1*1.2,'顶');
DRAWLINE(CC,RSI1,FILTER(顶背离>0,5),RSI1,0),COLORWHITE;
DRAWICON(顶背离,RSI1*1.1,2);
AA2:=REF(RSI1,N2)=LLV(RSI1,2*N2+1);
BB2:=BACKSET(AA2,N2+1);
CC2:=FILTER(BB2,N2) AND RSI1=LLV(RSI1,N2+1);
K2:=BARSLAST(REF(CC2,1));
底背离:REF(CLOSE,K2+1)>CLOSE AND REF(RSI1,K2+1)<RSI1 AND CC2;
DRAWTEXT(底背离,RSI1*1.2,'底');
DRAWLINE(CC2,RSI1,FILTER(底背离>0,5),RSI1,0),COLORWHITE;
DRAWICON(底背离,RSI1*0.98,1);
A:=EMA(AMOUNT/C/1000000,7);
MID :=EMA(A,P);
UPPER:=MID + 196/100*STD(A,25);
LOWER:=MID - 196/100*STD(A,25);
饱和度:IF((A-LOWER)/(UPPER-LOWER)>1,1,(A-LOWER)/(UPPER-LOWER)),COLORWHITE;
{STICKLINE(((CLOSE > 0) AND ISLASTBAR ),0,1,3,1),COLORFFFFFF;
STICKLINE(((CLOSE > 0) AND ISLASTBAR ),0.01,0.99,2.5,1),COLORFFFF00;}
STICKLINE(饱和度>=1,0,90,4,0),COLORRED;
H1:=EMA(C,8);
H2:=EMA(H1,20);
HH2:=EMA(CLOSE,14);
HH3:=MEMA(CLOSE,4);
VAR1:=(CLOSE-LLV(LOW,60.135))/(HHV(HIGH,60.135)-LLV(LOW,60))*80;
VAR2:=SMA(VAR1,7,1);
VAR3:=SMA(VAR2,5,1);
全仓:CROSS(VAR2,VAR3) AND VAR2<20 AND HH2>HH3;
N5:=BARSLAST(CROSS(CLOSE,TT1));
N6:=BARSLAST(CROSS(TT1,CLOSE));
黑马跟踪:IF(N5<N6,N5+1,0);
操:DRAWTEXT(黑马跟踪=1,TT2 + TT2*(0.5),'操'),COLORRED;
涨幅:DYNAINFO(14)*100,LINETHICK0 ;
涨踪:(C-REF(C,黑马跟踪))/REF(C,黑马跟踪)*100;
看股吧 公式 www.kanguba. com
其它股票公式列表