VAR1:=IF((DATE>9999999),0,1);
分水线:0,Linethick1,CoLor808080;
M:=15;
开:=(((OPEN)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
高:=(((HIGH)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
低:=(((LOW)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
收:=(((CLOSE)/(MA(CLOSE,M))-1)*(1000))*(VAR1);
B1:=REF(收,1);
B2:=REF(收,2);
B3:=REF(收,3);
B4:=REF(收,4);
CMAX:=MAX(MAX(MAX(收,B1),B2),B3);
CMIN:=MIN(MIN(MIN(收,B1),B2),B3);
持股:STICKLINE(((((收=CMAX) AND ((B1>=B2) or (B1>=B3)) or (B1=CMAX) AND ((B2=CMIN) or (B3=CMIN)) AND (收>=B2)) or (B2=CMAX) AND (B3=CMIN) AND (收>=B1)) or (B3=CMAX) AND (收>=B1) AND (收>=B2)),B1,收,4,0),CoLor0000FF;
变盘:STICKLINE((收=CMAX) AND (B1=CMIN),B2,收,4,0),CoLor0099EF;
下跌:STICKLINE(((((收=CMIN) AND ((B1<B2) or (B1<B3)) or (B1=CMIN) AND ((B2=CMAX) or (B3=CMAX)) AND (收<B2)) or (B2=CMIN) AND (B3=CMAX) AND (收<B1)) or (B3=CMIN) AND (收<B1) AND (收<B2)),B1,收,4,1),CoLor00FF00;
STICKLINE((B1=CMAX) AND (收=CMIN),B2,收,4,0),CoLor009900;
买入:STICKLINE(((B1=CMIN) AND (收>=B2) or ((B2=CMIN) AND (B1<=B3) or (B3=CMIN) AND (B1<=B2)) AND (B2<B4) AND (收>=B1)),B1,B2,4,0),CoLorFFFFFF;
抛售:STICKLINE(((B1=CMAX) AND (收<B2) or ((B2=CMAX) AND (B1>B3) or (B3=CMAX) AND (B1>B2)) AND (B2>=B4) AND (收<B1)),B1,B2,4,0),CoLor00FFFF;
202108211318.gif
|