通达信指标公式源码操盘组合系统指标
VAR1:="KDJ.K#DAY"(9,3,3);
VAR2:="KDJ.D#DAY"(9,3,3);
RJ:="KDJ.J#DAY"(9,3,3);
STICKLINE(RJ
STICKLINE(RJ>=REF(RJ,1),100,92,3,0),COLORFF00FF;
STICKLINE(VAR1<=20,100,97,4,0),COLOR0000FF;
STICKLINE(VAR1>VAR2,82 ,90 ,6 ,0 ),COLOR0000FF;
STICKLINE(VAR1
DRAWTEXT(CURRBARSCOUNT=5,88,'日KDJ'),COLORFF0000;
DRAWTEXT(CURRBARSCOUNT=5,98,'日J拐点'),COLORFFFF00;
VAR3:="KDJ.K#WEEK"(9,3,3);
VAR4:="KDJ.D#WEEK"(9,3,3);
ZJ:="KDJ.J#WEEK"(9,3,3);
STICKLINE(ZJ>=REF(ZJ,1),80,72,3,0),COLORDD00DD;
STICKLINE(ZJ
STICKLINE(VAR3>VAR4,70 ,62 ,6 ,0 ),COLOR0000DD;
STICKLINE(VAR3
DRAWTEXT(CURRBARSCOUNT=5,68,'周KDJ'),COLORFFFF00;
DRAWTEXT(CURRBARSCOUNT=5,78,'周J拐点'),COLORFFFF00;
VAR5:="KDJ.K#MONTH"(9,3,3);
VAR6:="KDJ.D#MONTH"(9,3,3);
YJ:="KDJ.J#MONTH"(9,3,3);
STICKLINE(YJ
STICKLINE(YJ>=REF(YJ,1),60,52,3,0),COLORBB00BB;
STICKLINE(VAR5>VAR6,50 ,42 ,6 ,0 ),COLOR0000BB;
STICKLINE(VAR5
DRAWTEXT(CURRBARSCOUNT=5,48,'月KDJ'),COLORFFFF00;
DRAWTEXT(CURRBARSCOUNT=5,58,'月J拐点'),COLORFFFF00;
STICKLINE( CLOSE>0,81,81 ,10 ,0 ),COLORBLACK;
STICKLINE( CLOSE>0,61,61,10,0 ),COLORBLACK;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
STICKLINE(OBV>=MAOBV,40,32,4,0),COLORFF00FF;
STICKLINE(OBV
DRAWTEXT(CURRBARSCOUNT=5,38,'OBV'),COLORFFFF00;
DX:=MA(MA(CLOSE,3),1);
STICKLINE(C>0,28,24,2,0),COLOR00AAAA;
STICKLINE(DX>=REF(DX,1),30,22,4,0),COLORDD00DD;
DRAWTEXT(CURRBARSCOUNT=7,28,'单线变色'),COLORFFFF00;
VARA1:=1;
VARA2:=((((2*CLOSE)+HIGH)+LOW) / 4);
VARA4:=LLV(LOW,5);
VARA5:=HHV(HIGH,4);
C1:=(EMA((((VARA2-VARA4)/(VARA5-VARA4))*100),4)*VARA1);
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VARA1);
STICKLINE(C>0,18,14,2,0),COLOR00AAAA;
STICKLINE(C1>C2,20,12,4,0),COLORAA00AA;
DRAWTEXT(CURRBARSCOUNT=7,19,'抢反弹'),COLORFFFF00;
VAR22:=(HIGH+LOW+CLOSE*2)/4;
VAR32:=EMA(VAR22,7);
VAR42:=STD(VAR22,7);
VAR52:=(VAR22-VAR32)*100/VAR42;
VAR62:=EMA(VAR52,3);
WW:=(EMA(VAR62,5)+100)/2-3,COLORFF00FF,LINETHICK2;
MM:=HHV(WW,3),COLORFF00FF,LINETHICK2;
AAA:=MM,COLOR00FFFF,LINETHICK2;
BBA:=WW,COLOR0000FF,LINETHICK2;
STICKLINE(WW>=REF(WW,1) ,10,2,4,0),COLOR990099;
STICKLINE(REF(WW,1)>WW,8,4,2,0),COLOR00AAAA;
DRAWTEXT(CURRBARSCOUNT=7,8,'开天辟地'),COLORFFFF00;
R1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
R2:=EMA((CLOSE-(LLV(LOW,5)))/((HHV(HIGH,5))-(LLV(LOW,5)))*100,4)*2;
R3:=EMA(0.618*REF(R2,1)+0.382*R2,2);
R4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
R5:=POW(MA(LOW,5),2)+MA(LOW,5);
R6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
R7:=(R4-LLV(R5,64))/(HHV(R6,64)-LLV(R5,64))*150+65-10;
R8:=SMA((SMA(R7,3,1)*1.5-100),3,1);
R9:=3*(SMA(R7,3,1)*1.5-100)-2*R8;
R10:=(HIGH+LOW+CLOSE*2)/4;
R11:=(R10-(EMA(R10,13)))*100/(STD(R10,13));
R12:=EMA((EMA(R11,5)),13)+200-100;
R13:=(SMA(R1,3,1))+R2+(SMA(R7,3,1)*1.5-100)+R12;
R14:=(SMA((SMA(R1,3,1)),3,1))+R3+R8+(EMA(R12,10));
R15:=(3*(SMA(R1,3,1))-2*(SMA((SMA(R1,3,1)),3,1)))+(3*R12-2*(EMA(R12,10)))+
R9+(3*R12-2*(EMA(R12,10)));
R16:=(HIGH+LOW+CLOSE)/3;
R17:=(R16-MA(R16,34))/(0.015*AVEDEV(R16,34));
R18:=(HIGH+LOW+CLOSE+R16)/4;
R19:=(R18-(EMA(R18,24)))/(STD(R18,24))*100;
R20:=(R16-MA(R16,24))/(0.015*AVEDEV(R16,24));
R21:=(((EMA(R19,5))+R20+R17)/3+165)/4;
R22:=(R13+R14+R15*30)/32/5-15;
AA:=EMA(((R21+R22)/2/1.1),1);
BB:=MA(AA,3);
STICKLINE(C>0,-2,-6,2,0),COLOR00AAAA;
STICKLINE(AA>=BB,0,-8,4,0),COLOR770077;
STICKLINE(AA>=REF(AA,1),-3,-5,4,0),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=7,-2,'简洁操盘'),COLORFFFF00;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORFFFFFF,LINETHICK1;
D:SMA(K,3,1),COLORYELLOW,LINETHICK1;
J
IF(RJ>=REF(RJ,1),RJ,DRAWNULL),COLORFF0000,LINETHICK2;
风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。