存盘公式缩量突破前高
上次高:=REF(H,HHVBARS(H,21));第二次高:=H=上次高;
突破高量:=REF(V,HHVBARS(H,21));
缩量突破:=第二次高 AND V<REF(突破高量,1);
DRAWTEXT(缩量突破=1,H,'缩量突破'),COLORYELLOW,DRAWABOVE;
TJ:=BARSLAST(缩量突破);
缩量突破柱:=REF(C,TJ);
STICKLINE(缩量突破柱,缩量突破柱,缩量突破柱,1,1),COLOR008080;
三一位:O-(O-C)/3,NODRAW;
中线位: (O+C)/2,NODRAW;
三二位:O-2*(O-C)/3,NODRAW;
B:=C<O AND C/O<=0.96;
STICKLINE(B,O-(O-C)/3,O-(O-C)/3,40,0),COLORFF00FF;
STICKLINE(B,(O+C)/2,(O+C)/2,40,0),COLORFFFFFF;
STICKLINE(B,O-2*(O-C)/3,O-2*(O-C)/3,40,0),COLOR00FF00;
STICKLINE(B,C,C,40,0),COLORFF0000;
STICKLINE(B,O,O,40,0),COLORFF0080;
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); HSL:=100*VOL/(CONST(FINANCE(7))/100); HS:=IF(BETWEEN(HSL,0,1000000),HSL,VOL); STICKLINE(V2>=0.9 AND C>O,C,O,3,0),COLORAA00AA; STICKLINE(V2>=0.9 AND C>O,C,O,2,0),COLORAA00CC; STICKLINE(V2>=0.9 AND C>O,C,O,1,0),COLORAA00DD; STICKLINE(V2>=0.9 AND C>O,H,L,0,0),COLOR0000FF; N:=5; XB1:=TROUGH(2,N,1),COLORGRAY; CB1:=CONST(TROUGHBARS(2,N,1)); B1:=IF(CURRBARSCOUNT<CB1+3,CONST(XB1),DRAWNULL),COLORGRAY; STICKLINE(1,B1,B1,3,1),COLORGRAY; XB2:=TROUGH(2,N,2),COLORGRAY; CB2:=CONST(TROUGHBARS(2,N,2)); B2:=IF(CURRBARSCOUNT<CB2+3 AND CURRBARSCOUNT>CB1-1,CONST(XB2),DRAWNULL),COLORGRAY; STICKLINE(1,B2,B2,3,1),COLORGRAY; XB3:=TROUGH(2,N,3),COLORGRAY; CB3:=CONST(TROUGHBARS(2,N,3)); B3:=IF(CURRBARSCOUNT<CB3+3 AND CURRBARSCOUNT>CB2-1,CONST(XB3),DRAWNULL),COLORGRAY; STICKLINE(1,B3,B3,3,1),COLORGRAY; XB4:=TROUGH(2,N,4),COLORGRAY; CB4:=CONST(TROUGHBARS(2,N,4)); B4:=IF(CURRBARSCOUNT<CB4+3 AND CURRBARSCOUNT>CB3-1,CONST(XB4),DRAWNULL),COLORGRAY; STICKLINE(1,B4,B4,3,1),COLORGRAY; XB5:=TROUGH(2,N,5),COLORGRAY; CB5:=CONST(TROUGHBARS(2,N,5)); B5:=IF(CURRBARSCOUNT<CB5+3 AND CURRBARSCOUNT>CB4-1,CONST(XB5),DRAWNULL),COLORGRAY; STICKLINE(1,B5,B5,3,1),COLORGRAY; XB6:=TROUGH(2,N,6),COLORGRAY; CB6:=CONST(TROUGHBARS(2,N,6)); B6:=IF(CURRBARSCOUNT<CB6+3 AND CURRBARSCOUNT>CB5-1,CONST(XB6),DRAWNULL),COLORGRAY; STICKLINE(1,B6,B6,3,1),COLORGRAY; XT1:=PEAK(1,N,1),COLORGRAY; CT1:=CONST(PEAKBARS(1,N,1)); T1:=IF(CURRBARSCOUNT<CT1+3,CONST(XT1),DRAWNULL),COLORLIRED; STICKLINE(1,T1,T1,3,1),COLORLIRED; XT2:=PEAK(1,N,2),COLORGRAY; CT2:=CONST(PEAKBARS(1,N,2)); T2:=IF(CURRBARSCOUNT<CT2+3 AND CURRBARSCOUNT>CT1-1,CONST(XT2),DRAWNULL),COLORLIRED; STICKLINE(1,T2,T2,3,1),COLORLIRED; XT3:=PEAK(1,N,3),COLORGRAY; CT3:=CONST(PEAKBARS(1,N,3)); T3:=IF(CURRBARSCOUNT<CT3+3 AND CURRBARSCOUNT>CT2-1,CONST(XT3),DRAWNULL),COLORLIRED; STICKLINE(1,T3,T3,3,1),COLORLIRED; XT4:=PEAK(1,N,4),COLORGRAY; CT4:=CONST(PEAKBARS(1,N,4)); T4:=IF(CURRBARSCOUNT<CT4+3 AND CURRBARSCOUNT>CT3-1,CONST(XT4),DRAWNULL),COLORLIRED; STICKLINE(1,T4,T4,3,1),COLORLIRED; XT5:=PEAK(1,N,5),COLORGRAY; CT5:=CONST(PEAKBARS(1,N,5)); T5:=IF(CURRBARSCOUNT<CT5+3 AND CURRBARSCOUNT>CT4-1,CONST(XT5),DRAWNULL),COLORLIRED; STICKLINE(1,T5,T1,3,1),COLORLIRED; XT6:=PEAK(1,N,6),COLORGRAY; CT6:=CONST(PEAKBARS(1,N,6)); T6:=IF(CURRBARSCOUNT<CT6+3 AND CURRBARSCOUNT>CT5-1,CONST(XT6),DRAWNULL),COLORLIRED; STICKLINE(1,T6,T6,3,1),COLORLIRED; 涨停:=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; AA:DRAWLINE(YEAR=2016 AND MONTH=4 AND DAY=15,3085,YEAR=2016 AND MONTH=8 AND DAY=15,3085,1),COLORRED;
BB:DRAWLINE(YEAR=2016 AND MONTH=4 AND DAY=20,O,YEAR=2016 AND MONTH=7 AND DAY=27,O,1),COLORGREEN;
CC:DRAWLINE(YEAR=2016 AND MONTH=5 AND DAY=6,2998.4,YEAR=2016 AND MONTH=8 AND DAY=15,2998.4,1),COLORGRAY;
DD:DRAWLINE(YEAR=2016 AND MONTH=5 AND DAY=31,C,YEAR=2016 AND MONTH=8 AND DAY=15,O,2),COLORLIBLUE;
EE:DRAWLINE(YEAR=2016 AND MONTH=6 AND DAY=27,O,YEAR=2016 AND MONTH=8 AND DAY=12,O,1),COLORYELLOW;
FF:DRAWLINE(YEAR=2016 AND MONTH=4 AND DAY=27,3017,YEAR=2016 AND MONTH=6 AND DAY=17,3017,1),COLORLIRED;
GG:DRAWLINE(YEAR=2016 AND MONTH=8 AND DAY=16,O,YEAR=2016 AND MONTH=8 AND DAY=17,3130.53,1),COLORLIRED;
三一:DRAWLINE(YEAR=2016 AND MONTH=8 AND DAY=08,3109,YEAR=2016 AND MONTH=8 AND DAY=15,3109,1),COLORLIGREEN;
HH:DRAWLINE(YEAR=2016 AND MONTH=8 AND DAY=08,3097,YEAR=2016 AND MONTH=8 AND DAY=15,3097,1),COLORLIRED; 谢谢分享支持 存盘公式涨停基因横线 存盘公式缩量突破前高 辛苦了辛苦了辛苦了辛苦了 好好学习 认真领悟 谢谢分享。 谢谢楼主分享。 谢谢分享,努力学习。 谢谢楼主分享!向高手学习! 谢谢楼主分享!向高手学习! 谢谢分享,好好学习。 谢谢楼主分享 是ccccccccccccccccccccccccccccccccccccccccccccc