通达信短线抄盘精简版主图指标公式源码[通达信公式]
通达信短线抄盘精简版主图指标公式源码:
NF:=1;
Z1:=(REF(H,NF)-REF(L,NF))/REF(C,NF+1)*100;
Z2:=(REF(H,NF+1)-REF(L,NF+1))/REF(C,NF+2)*100;
Z3:=(REF(H,NF+2)-REF(L,NF+2))/REF(C,NF+3)*100;
SRZ:(Z1+Z2+Z3)/3,NODRAW;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MMACD:=(DIFF-DEA)*2;
RSV6:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K6:=SMA(RSV6,3,1);
D6:=SMA(K6,3,1);
J6:=3*K6-2*D6;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,9,3);
D:=SMA(K,9,3);
J:=3*K-2*D;
MA30:=MA(C,30);
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K1:=SMA(RSV1,5,1);
E1:=SMA(K1,3,1);
J1:=3*K1-2*E1;
F1:=EMA(J1,12);
F2:=REF(F1,1);
AA1:=(3*C+H+L+O)/6;
VAR1:=(8*AA1+7*REF(AA1,1)+6*REF(AA1,2)+5*REF(AA1,3)+4*REF(AA1,4)+3*REF(AA1,5)+2*REF(AA1,6)+REF(AA1,8))/36,COLORYELLOW,LINETHICK1;
VAR2:=(HHV(VAR1,2)+HHV(VAR1,4)+HHV(VAR1,6))/3;
{VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
}VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
{VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
}VAR4:(HHV(VAR2,2)+HHV(VAR2,4)+HHV(VAR2,6))/3,COLORWHITE,LINETHICK3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
{DRAWBAND(VAR1,RGB(180,10,10),VAR6,RGB(250,250,0));
}{DRAWBAND(VAR4,RGB(10,110,80),VAR1,RGB(0,0,0));
}DRAWBAND(VAR1,RGB(210,10,10),VAR6,RGB(0,0,0));
DRAWBAND(VAR4,RGB(10,10,210),VAR1,RGB(0,0,0));
C1:VAR1,COLORYELLOW,LINETHICK1;
C2:VAR6,COLORGREEN,LINETHICK2;
C3:IF(VAR1>VAR6 AND VAR6>=REF(VAR6,1),VAR6,DRAWNULL),COLORRED,LINETHICK2;
P2:EMA(CLOSE,50),COLORGREEN,LINETHICK3;
IF(P2>REF(P2,1), P2,DRAWNULL),COLORRED,LINETHICK3;
BDGD:=C=HHV(C,M);
GDSJ:=BARSLAST(FILTER(CROSS(0.08,BDGD),M1))+1;
GD:REF(H,GDSJ),COLOR00FF00,POINTDOT,LINETHICK1;
TPP:=CROSS(C,REF(GD,1)),COLOR0000FF,POINTDOT,LINETHICK0;
STICKLINE(GDSJ<=6,GD,GD,8,0),COLOR0000FF;
{DRAWICON(GDSJ=1,H*1.001,41);
}BDDD:=C=LLV(C,N);
DDSJ:=BARSLAST(FILTER(CROSS(0.08,BDDD),N1))+1;
DD1:REF(L,DDSJ),COLORYELLOW,POINTDOT,LINETHICK1;
STICKLINE(DDSJ<=6,DD1,DD1,8,0),COLORYELLOW;
DRAWICON(DDSJ=1,L*0.999,1);
VAR11:=REF(CLOSE,1);
VAR12:=((SMA(MAX((CLOSE - VAR11),0),6,1) / SMA(ABS((CLOSE - VAR11)),6,1)) * 100);
XG5:=CROSS(90,VAR12);
XGT:=BARSLAST(XG5);
AD:=REF(L,REF(XGT,1)+1);
XG7:= REF(XGT,1)>20 AND XG5 ;
DRAWICON(XG7,H,23);
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
ZS:=REF(CLOSE,1);
QS:=SMA(MAX(CLOSE-ZS,0),8,1)/SMA(ABS(CLOSE-ZS),8,1)*100,COLOR0080FF,LINETHICK2;
XX:=20;
SS:=80;
ZZ:=50;
XG1:=CROSS(80,QS) ;
XG2:=CROSS(QS,15);
XG3:=CROSS(QS,19);
D1:=FILTER(XG1,10);
D2:=FILTER(XG2,10);
D3:=FILTER(XG3,10);
STICKLINE(D1 AND C<O,C,O,3.6,0 ),COLORYELLOW;
STICKLINE(D3 AND C>O,C,O,3.6,0 ),COLORMAGENTA;
XGT2:=BARSLAST(XG1);
AD2:=REF(L,REF(XGT2,1)+1);
XG6:= REF(XGT2,1)>20 AND XG1 ;
XGT3:=BARSLAST(XG2);
AD3:=REF(L,REF(XGT3,1)+1);
XG8:= REF(XGT3,1)>20 AND XG2;
BB32: IF(BARSLAST(XG6)<=30AND (REF(H,BARSLAST(XG6)))=REF(REF(H,BARSLAST(XG6)),1),REF(H,BARSLAST(XG6)),DRAWNULL)DOTLINE,COLORMAGENTA;
DRAWICON(XG6,H*1.001,2);
DRAWICON(XG8,L,1);
KK:= F1<F2 AND CROSS(90,VAR12);
DRAWICON(KK,H*1.001,4);
DRAWKLINE(H,O,L,C);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容