以下是真正有实战意义的狄马克(德马克)TD序列指标源码和截图
真正有实战意义的狄马克(德马克)TD序列指标源码:
N:=8;
DIF1:=H-REF(H,2);
DIF2:=L-REF(L,2);
NUM1:=IF(REF(H,2) REF(C,7)ANDREF(H,2) REF(C,8)ANDH REF(L,5)ANDH REF(L,6),0,1);
NUM2:=IF(REF(L,2) REF(C,7)ANDREF(L,2) REF(C,8)ANDL REF(H,5)ANDL REF(H,6),0,1);
REI1:=(DIF1+DIF2)*NUM1*NUM2;
REI2:=ABS(DIF1)+ABS(DIF2);
REI:SUM(REI1,N)/SUM(REI2,N);
0.4;
0;
-0.4;
TJ:=H REF(H,4)ANDREF(H,1) REF(H,4)ANDREF(H,2) REF(H,4)ANDREF(H,3) REF(H,4)ANDREF(H,4) REF(H,5)ANDREF(H,4) REF(H,6)ANDREF(H,4) REF(H,7)ANDREF(H,4) REF(H,8)ANDREF(H,4) REF(H,9);
TJ1:=L REF(L,4)ANDREF(L,1) REF(L,4)ANDREF(L,2) REF(L,4)ANDREF(L,3) REF(L,4)ANDREF(L,4) REF(L,5)ANDREF(L,4) REF(L,6)ANDREF(L,4) REF(L,7)ANDREF(L,4) REF(L,8)ANDREF(L,4) REF(L,9);
T:=BArslAst(TJ);
LT:=BARSLAST(TJ1);
CF1:=BacKSET(T=0,5);
HT:=BARSLAST(crOSS(CF1=1,0.5));
CF2:=BACKSET(LT=0,5);
TT1:=BARSLAST(CROSS(CF2=1,0.5));
TT:=BARSLAST(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,1)));
TTH:=BARSLAST(CURRBARSCOUNT=CONST(SUMBARS(HT=0,1)));
TTH2:=BARSLAST(CURRBARSCOUNT=CONST(SUMBARS(HT=0,2)));
CL:=CONST(REF(L,TT));
CH:=CONST(REF(H,TTH));
CH2:CONST(REF(H,TTH2))NODRAW;
CHT:=BARSLAST(CROSS(REF(H,HT) CH,0.5));
CHT2:=BARSLAST(CROSS(REF(H,HT) CH2,0.5));
AA2:=FINDHIGHBARS(REF(H,HT),TTH2+1,REF(CHT2,TTH2)+1,1);
CLT:=BARSLAST(CROSS(REF(L,TT1) CL,0.5));
DRAWLINE(CURRBARSCOUNT=CONST(CHT)+1,H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,1)),H,1),COLORYELLOW,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=CONST(AA2)+1,H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,2)),H,1),COLORLImaGENTA,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=CONST(CLT)+1,L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,1)),L,1),COLORGREEN,LINETHICK2;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,2)),H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,1)),H,1),COLORYELLOW;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,3)),H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,2)),H,1),COLORYELLOW;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,4)),H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,3)),H,1),COLORYELLOW;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(HT=0,5)),H,CURRBARSCOUNT=CONST(SUMBARS(HT=0,4)),H,1),COLORYELLOW;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,2)),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,1)),L,1),COLORGREEN;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,3)),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,2)),L,1),COLORGREEN;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,4)),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,3)),L,1),COLORGREEN;
DRAWLINE(CURRBARSCOUNT=CONST(SUMBARS(TT1=0,5)),L,CURRBARSCOUNT=CONST(SUMBARS(TT1=0,4)),L,1),COLORGREEN;
STICKLINE(HT=0,C,O,2,0),COLORYELLOW;
STICKLINE(TT1=0,C,O,2,0),COLORGREEN;
真正有实战意义的狄马克(德马克)TD序列指标截图