九毛八公式指标
公式模块:
TRR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);
pdi:DMP*100/TRR,COLORRED;
穿破短底:16;
线上发飙:30;
AA:=REF(PDI,N)=HHV(PDI,2*N+1);
BB:=BacKSET(AA,N+1);
CC:=FILTER(BB,N) AND PDI=HHV(PDI,N+1);
A1:=BArslAST(REF(CC,1));
顶背离:=REF(CLOSE,A1+1)<CLOSE AND REF(PDI,A1+1)>PDI AND CC;
DRAWICON(顶背离,PDI*1.1,2);
DRAWLINE(CC,PDI,FILTER(顶背离>0,5),PDI,0),COLORGREEN,LINETHICK2;
AA2:=REF(PDI,N)=LLV(PDI,2*N+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND PDI=LLV(PDI,N+1);
A2:=BARSLAST(REF(CC2,1));
底背离:=REF(CLOSE,A2+1)>CLOSE AND REF(PDI,A2+1)<PDI AND CC2;
DRAWICON(底背离,PDI*0.9,1);
DRAWLINE(CC2,PDI,FILTER(底背离>0,5),PDI,0),COLORBLUE,LINETHICK2;
{异向并肩精准线}
异向并肩精准: MIN(O,C)=REF(MAX(O,C),1);
可以通过了
n(14 1 100)
TRR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);
PDI:DMP*100/TRR,COLORRED;
穿破短底:16;
线上发飙:30;
AA:=REF(PDI,N)=HHV(PDI,2*N+1);
BB:=BACKSET(AA,N+1);
CC:=FILTER(BB,N) AND PDI=HHV(PDI,N+1);
A1:=BARSLAST(REF(CC,1));
顶背离:=REF(CLOSE,A1+1)<CLOSE AND REF(PDI,A1+1)>PDI AND CC;
DRAWICON(顶背离,PDI*1.1,2);
DRAWLINE(CC,PDI,FILTER(顶背离>0,5),PDI,0),COLORGREEN,LINETHICK2;
AA2:=REF(PDI,N)=LLV(PDI,2*N+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND PDI=LLV(PDI,N+1);
A2:=BARSLAST(REF(CC2,1));
底背离:=REF(CLOSE,A2+1)>CLOSE AND REF(PDI,A2+1)<PDI AND CC2;
DRAWICON(底背离,PDI*0.9,1);
DRAWLINE(CC2,PDI,FILTER(底背离>0,5),PDI,0),COLORBLUE,LINETHICK2;
{异向并肩精准线}
异向并肩精准: MIN(O,C)=REF(MAX(O,C),1);