编写条件:
编写方法:
网友求助:
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
M:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4),LINETHICK2,colorFF;
AA1:HHV(MA(M,3),20),LINEDOT;
BB1:LLV(MA(M,3),20),LINEDOT;
AA:=REF(M,N1)=HHV(M,2*N1+1);
BB:=BacKSET(AA,N1+1);
CC:=FILTER(BB,N1) AND M=HHV(M,N1+1);
A1:=BArslAST(REF(CC,1));
顶背离:=REF(HIGH,A1+1)<HIGH AND REF(M,A1+1)>M AND CC;
DRAWLINE(CC,M,FILTER(顶背离>0,5),M,0),colorFF00FF;
DRAWTEXT(顶背离,M,'顶背离'),colorFF00FF;
DRAWICON(顶背离,M,2);
AA2:=REF(M,N1)=LLV(M,2*N1+1);
BB2:=BACKSET(AA2,N1+1);
CC2:=FILTER(BB2,N1) AND M=LLV(M,N1+1);
A2:=BARSLAST(REF(CC2,1));
底背离:=REF(LOW,A2+1)>LOW AND REF(M,A2+1)<M AND CC2;
DRAWLINE(CC,M,FILTER(底背离>0,5),M,0),colorFF00FF;
DRAWTEXT(底背离,M,'底背离'),colorFF00FF;
DRAWICON(底背离,M,1);
VAR5:=M>REF(M,1) AND CLOSE<REF(CLOSE,1);
VAR6:=M<REF(M,1) AND CLOSE>REF(CLOSE,1);
VAR3:=HHV(HIGH,25);
M:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
AA2:=REF(M,N1)=LLV(M,2*N1+1);
BB2:=BACKSET(AA2,N1+1);
CC2:=FILTER(BB2,N1) AND M=LLV(M,N1+1);
A2:=BARSLAST(REF(CC2,1));
底背离:REF(LOW,A2+1)>LOW AND REF(M,A2+1)<M AND CC2;