N:=10;CX:=1;
高位低位指标:MA(C,6),COLOR00FFFF,POINTDOT;
高位低位公式:MA(C,18),COLOREEEEEE,POINTDOT;
IF(高位低位指标>=REF(高位低位指标,1),高位低位指标,DRAWNULL),COLOR0000CC,LINETHICK2;
IF(高位低位指标<REF(高位低位指标,1) AND CX=1,高位低位指标,DRAWNULL),COLOR009900,LINETHICK2;
IF(高位低位公式>=REF(高位低位公式,1) AND CX=2,高位低位公式,DRAWNULL),COLOR0000CC,LINETHICK2;
IF(高位低位公式<REF(高位低位公式,1) AND CX=2,高位低位公式,DRAWNULL),COLOR009900,LINETHICK2;
gggr1:=BARSLAST(C<高位低位指标);
gggr2:=BARSLAST(高位低位指标<REF(高位低位指标,1));
gggr3:=BARSLAST(C<高位低位公式);
gggr4:=BARSLAST(高位低位公式<REF(高位低位公式,1));
gggr5:=BARSLAST(C>高位低位指标);
gggr6:=BARSLAST(高位低位指标>REF(高位低位指标,1));
gggr7:=BARSLAST(C>高位低位公式);
gggr8:=BARSLAST(高位低位公式>REF(高位低位公式,1));
ccce1:MA(VOL,6),COLOR6666CC,NODRAW;
ccce2:MA(VOL,36),COLORFFCC00,NODRAW;
ccce3:V,COLORFF00FF,NODRAW;
ccce4:=REF(C,N)=HHV(C,2*N+1);
ccce5:=FILTER(ccce4,N);
C1:=BACKSET(ccce5,N+1);
HD:=FILTER(C1,N);
ccce6:=REF(C,N)=LLV(C,2*N+1);
ccce7:=FILTER(ccce6,N);
ccce8:=BACKSET(ccce7,N+1);
LD:=FILTER(ccce8,N);
A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
ccce9:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
bbby1:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
IF(ccce9,A,DRAWNULL),COLORCC6600,LINETHICK2;
IF(bbby1,B,DRAWNULL),COLORDDDDDD,LINETHICK2;
IF(ccce9,A*0.9,DRAWNULL),COLORCC6600,LINETHICK1;
IF(bbby1,B*1.1,DRAWNULL),COLORDDDDDD,LINETHICK1;
adfd1:=gggr5>=2 AND gggr6=1 AND CX=1;
adfd2:=gggr7>=2 AND gggr8=1 AND CX=2;
adfd3:=gggr1>=2 AND gggr2=1 AND ccce1>ccce2 AND CX=1;
adfd4:=gggr1>=2 AND gggr2=1 AND ccce1>ccce2 AND CX=2;
DRAWTEXT(adfd1 OR adfd2,H*1.05,'卖'),COLOR00FFFF;
DRAWTEXT(adfd3 OR adfd4,L*0.90,'买'),COLOR00FF00;
160052R54210-15238.jpg
|