C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;
STICKLINE(跌停,H,L,0,1),COLORBLUE;
大阳线:=IF((C-C2)*100/C2>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);
STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;
STICKLINE(大阳线,H,L,0,1),COLORRED;
大阴线:=IF((C2-C)*100/C2>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);
STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;
STICKLINE(大阴线,H,L,0,1),COLORGREEN;
AA:=REF(V,3)>REF(V,4)*2,REF(C,3)>=REF(O,3);
AA1:=EVERY(VOL<=REF(VOL,1),3);
AA2:=EVERY(C>=REF(C,1),3);
AA3:=AA && AA1 && AA2;
AA4:=LLV(LOW,3)>REF(C,3);
AA5:=AA && AA4 OR AA2;
AA6:=AA && AA4 && AA2
;
支撑:REF(REF(L,3),BARSLAST(AA3)),COLORYELLOW;
攻防线:REF(REF(L,3),BARSLAST(AA5)),COLORMAGENTA;
攻防线1:REF(REF(L,3),BARSLAST(AA6)),COLORGREEN; |