指標分享!
指標源碼:
{漲跌停標識}
漲跌:=REF(C,1);
漲停:=IF((C-漲跌)*100/漲跌>=(10-0.01*100/漲跌),1,0);
STICKLINE(漲停,OPEN,CLOSE,2,0),COLORRED;
跌停:=IF((漲跌-C)*100/漲跌>=(10-0.01*100/漲跌),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLOR808000;
{21位畫線}
FLAG:=ABS(C-O)/IF((H-L) = 0,100,H-L);
ZHANGF:=ABS(C-O)/O;
WEI21:IF(CODELIKE('9999'),(H-L)*0.5+L,IF(C>O,(C-O)*0.5+O,(O-C)*0.5+C)),NODRAW;
STICKLINE(ZHANGF>=0.03 && FLAG >= 0.03,WEI21,WEI21,-1,0),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0,1,0,HYBLOCK),COLORFF0000;
DRAWTEXT_FIX(ISLASTBAR,0.05,1,0,DYBLOCK),COLORFF0000;
DRAWTEXT_FIX(ISLASTBAR,0.1,1,0,GNBLOCK),COLORFF0000;
明日漲停:ZTPRICE(C,0.1),NODRAW,COLORRED;
三一:O+(C-O)*2/3,NODRAW,COLOR99CC32;
三二:O+(C-O)/3,NODRAW;
TK:=C>O AND? O>=REF(MAX(C,O),1)+0.01? OR O>=REF(C,1)+0.01 ;
STICKLINE(TK, O,(C-O)*0.01+O,3,0),COLORFF0000;
ZF:=H>=INTPART(REF(C,1)*1.1*100+0.5)/100 AND H>C;
DT:=L<=INTPART(REF(C,1)*0.9*100+0.5)/100 AND L<C;
上影線幅度:=((H-REF(C,1))/REF(C,1)-(MAX(O,C)-REF(C,1))/REF(C,1))*100;
下影線幅度:=((REF(C,1)-L)/REF(C,1)-(REF(C,1)-MIN(O,C))/REF(C,1))*100;
上影線長:=H-MAX(O,C);
下影線長:=MIN(O,C)-L;
長度比較:=上影線長/下影線長;{上下影線長度比}
STICKLINE((MIN(O,C)=L OR 長度比較>1) AND ZF,H-上影線長*1,H,0.01,0),COLORRED;?
STICKLINE((MAX(O,C)=H OR 長度比較<1) AND DT,L+下影線長*1,L,0.01,0),COLORBLUE;