|
马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
涨停:=C>REF(C,1)*1.095 AND C=H;
STICKLINE(涨停=1,H,L,1,0)COLORYELLOW;
{涨停基因}
ZTCS:=COUNT(涨停,BARSLAST(涨停+1));
GZT1:=STRCAT(' 共涨停',CON2STR(ZTCS,0));
GZT2:=STRCAT(GZT1,'次');
SSTS1:=STRCAT(C*0.9' 上市',CON2STR(FINANCE(42),0));
SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT(' 距今',CON2STR(CONST(BARSLAST(涨停)),0));
NTZZT2:=STRCAT(NTZZT1,'天有涨停 年涨停 次');
ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);
ZTTJ:=STRCAT('涨停基因:',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,1,0,ZTTJ),COLORYELLOW;
年涨停:=COUNT(涨停=1,233),NODRAW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.33,1,0,年涨停),COLORMAGENTA;
TA:=IF(ZTPRICE(REF(CLOSE,1),0.1)=C AND C=H AND PERIOD=5,1,0);
H1:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(BARSLAST(TA))+1,DRAWNULL,CONST(REF(H,BARSLAST(TA)))),DRAWNULL),DOTLINE,COLORGRAY;
L1:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(BARSLAST(TA))+1 AND PERIOD=5,DRAWNULL,CONST(REF(REF(C,1),BARSLAST(TA)))),DRAWNULL),DOTLINE,COLORLIBLUE;
H2:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,2)) AND PERIOD=5,DRAWNULL,CONST(REF(H,SUMBARS(TA,2)-1))),DRAWNULL),DOTLINE,COLORGRAY;
L2:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,2)) AND PERIOD=5,DRAWNULL,CONST(REF(REF(C,1),SUMBARS(TA,2)-1))),DRAWNULL),DOTLINE,COLORLIBLUE;
H3:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,3)) AND PERIOD=5,DRAWNULL,CONST(REF(H,SUMBARS(TA,3)-1))),DRAWNULL),DOTLINE,COLORGRAY;
L3:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,3)) AND PERIOD=5,DRAWNULL,CONST(REF(REF(C,1),SUMBARS(TA,3)-1))),DRAWNULL),DOTLINE,COLORLIBLUE;
H4:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,4)) AND PERIOD=5,DRAWNULL,CONST(REF(H,SUMBARS(TA,4)-1))),DRAWNULL),DOTLINE,COLORGRAY;
L4:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,4)) AND PERIOD=5,DRAWNULL,CONST(REF(REF(C,1),SUMBARS(TA,4)-1))),DRAWNULL),DOTLINE,COLORLIBLUE;
H5:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,5)) AND PERIOD=5,DRAWNULL,CONST(REF(H,SUMBARS(TA,5)-1))),DRAWNULL),DOTLINE,COLORGRAY;
L5:IF(PERIOD=5,IF(CURRBARSCOUNT>CONST(SUMBARS(TA,5)) AND PERIOD=5,DRAWNULL,CONST(REF(REF(C,1),SUMBARS(TA,5)-1))),DRAWNULL),DOTLINE,COLORLIBLUE;
{233日涨停横线}
AA1:=REF(H,BARSLAST(涨停 AND CURRBARSCOUNT<233));
NOTEXT高RAWLINE(涨停,H,1,REF(AA1,1),1),COLORYELLOW;
AA2:=REF(REF(C,1),BARSLAST(涨停 AND CURRBARSCOUNT<233));
NOTEXT低RAWLINE(涨停,REF(C,1),1,REF(AA2,1),1),COLORLIBLUE;
STICKLINE(IF(CURRBARSCOUNT<=N,V=CONST(LLV(V,N)),DRAWNULL),C,O,3,0)COLOR8000FF;
{n 2 1000 60 }
|
本帖被以下淘专辑推荐:
- · 量柱 量线|主题: 533, 订阅: 27
- · 公式|主题: 322, 订阅: 15
- · 股票公式|主题: 173, 订阅: 10
|