短线突破进攻 神奇时间数字【指标公式】(含选股)
第一部分 副图公式 手机/电脑
N1:=6;
基准 2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
CAIH1:=WMA((基准-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
CAIH2:=WMA(0.618*REF(CAIH1,1)+0.382*CAIH1,2);
DRAWTEXT(CROSS(CAIH1,CAIH2) AND CAIH170,H+0.1,'←卖出'),COLOR0077FF;
CAIH3:=EMA(C,14),COLORWHITE,LINETHICK1;
CAIH4:=(CAIH3-REF(CAIH3,1))/REF(CAIH3,1)*100,NODRAW;
突破:REF(EMA(C,14),1),NODRAW;
间距 C-突破)/突破*100,NODRAW;
进攻:IF(CAIH4>=0,REF(EMA(C,14),BARSLAST(CROSS(CAIH4,0))+1),DRAWNULL),COLORRED,LINETHICK1;
收手:IF(CAIH4=0,(C-进攻)/进攻*100,DRAWNULL),NODRAW;
跌幅:IF(CAIH4=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0);
B1 RAWLINE(LOW=HHV(HIGH,5),HIGH,0);
A2 RAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,0),COLORCYAN;
B2 RAWLINE(LOW=HHV(HIGH,13),HIGH,0);
A3 RAWLINE(HIGH>=HHV(HIGH,34),HIGH,LOW<=LLV(LOW,34),LOW,0);
B3 RAWLINE(LOW=HHV(HIGH,34),HIGH,0);
A4 RAWLINE(HIGH>=HHV(HIGH,55),HIGH,LOW<=LLV(LOW,55),LOW,0);
B4 RAWLINE(LOW=HHV(HIGH,55),HIGH,0);
MTM:=C-REF(C,1);
CAIH5:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
买:=IF(LLV(CAIH5,2)=LLV(CAIH5,7) AND COUNT(CAIH550,2) AND CROSS(MA(CAIH5,2),CAIH5),1,0);
DRAWICON(FILTER(买=1,5),LOW*0.99,7),COLORRED;
STICKLINE(FILTER(买=1,5),C,O,1,0),COLORRED;
DRAWICON(FILTER(卖=1,1),H*1.01,8),COLOR00FF00;
STICKLINE(FILTER(卖=1,1),C,O,1,0),COLOR00FF00;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
CAIH6:=HHV(J,2)=HHV(J,8) AND J>80;
CAIH7:=IF(CROSS(REF(J-0.01,1),J) AND REF(CAIH6,1),1,0);
DRAWTEXT(CAIH7 AND 卖<1,HIGH*1.01,'J'),COLOR00FF00,LINETHICK3;
STICKLINE(CAIH7 AND 卖<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2;
时间窗01:=FILTER(IF(HHVBARS(HIGH,5),0,H),5),COLORFFFF00;
DRAWTEXT(时间窗01,HIGH*0.99,'5');
时间窗02:=FILTER(IF(LLVBARS(LOW,5),0,L),5),COLOR00FFFF;
DRAWTEXT(时间窗02,LOW*0.99,'5');
时间窗1:=FILTER(IF(HHVBARS(HIGH,13),0,1),13),COLOR00FF00;
DRAWTEXT(时间窗1,HIGH*0.99,'13');
时间窗2:=FILTER(IF(LLVBARS(LOW,13),0,1),13),COLOR0000FF;
DRAWTEXT(时间窗2,LOW*0.99,'13');
时间窗3:=FILTER(IF(HHVBARS(HIGH,34),0,2),34),COLOR55FF55;
DRAWTEXT(时间窗3,HIGH*0.99,'34');
时间窗4:=FILTER(IF(LLVBARS(LOW,34),0,2),34),COLOR5555FF;
DRAWTEXT(时间窗4,LOW*0.99,'34');
时间窗5:=FILTER(IF(HHVBARS(HIGH,55),0,30),55),COLOR99FF99;
DRAWTEXT(时间窗5,HIGH*0.99,'55');
时间窗6:=FILTER(IF(LLVBARS(LOW,55),0,30),55),COLORDD00FF;
DRAWTEXT(时间窗6,LOW*0.99,'55');
时间窗7:=FILTER(IF(HHVBARS(HIGH,89),0,40),89),COLORDDFFDD;
DRAWTEXT(时间窗7,HIGH*0.99,'89');
时间窗8:=FILTER(IF(LLVBARS(LOW,89),0,40),89),COLOR0055FF;
DRAWTEXT(时间窗8,LOW*0.99,'89');
时间窗9:=FILTER(IF(HHVBARS(HIGH,144),0,50),144),COLORDDFF00;
DRAWTEXT(时间窗9,HIGH*0.99,'144');
时间窗10:=FILTER(IF(LLVBARS(LOW,144),0,50),144),COLOR9955FF;
DRAWTEXT(时间窗10,LOW*0.99,'144');
时间窗11:=FILTER(IF(HHVBARS(HIGH,233),0,60),233),COLORDDFFFF;
DRAWTEXT(时间窗11,HIGH*0.99,'233');
时间窗12:=FILTER(IF(LLVBARS(LOW,233),0,60),233),COLORFF55FF;
DRAWTEXT(时间窗12,LOW*0.99,'233');
第二部分 选股公式
N1:=6;
基准
CAIH1:=WMA((基准-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
CAIH2:=WMA(0.618*REF(CAIH1,1)+0.382*CAIH1,2);
DRAWTEXT(CROSS(CAIH1,CAIH2) AND CAIH170,H+0.1,'←卖出'),COLOR0077FF;
CAIH3:=EMA(C,14),COLORWHITE,LINETHICK1;
CAIH4:=(CAIH3-REF(CAIH3,1))/REF(CAIH3,1)*100,NODRAW;
突破:REF(EMA(C,14),1),NODRAW;
间距
进攻:IF(CAIH4>=0,REF(EMA(C,14),BARSLAST(CROSS(CAIH4,0))+1),DRAWNULL),COLORRED,LINETHICK1;
收手:IF(CAIH4=0,(C-进攻)/进攻*100,DRAWNULL),NODRAW;
跌幅:IF(CAIH4=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0);
B1
A2
B2
A3
B3
A4
B4
MTM:=C-REF(C,1);
CAIH5:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
买:=IF(LLV(CAIH5,2)=LLV(CAIH5,7) AND COUNT(CAIH550,2) AND CROSS(MA(CAIH5,2),CAIH5),1,0);
DRAWICON(FILTER(买=1,5),LOW*0.99,7),COLORRED;
STICKLINE(FILTER(买=1,5),C,O,1,0),COLORRED;
DRAWICON(FILTER(卖=1,1),H*1.01,8),COLOR00FF00;
STICKLINE(FILTER(卖=1,1),C,O,1,0),COLOR00FF00;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
CAIH6:=HHV(J,2)=HHV(J,8) AND J>80;
CAIH7:=IF(CROSS(REF(J-0.01,1),J) AND REF(CAIH6,1),1,0);
DRAWTEXT(CAIH7 AND 卖<1,HIGH*1.01,'J'),COLOR00FF00,LINETHICK3;
STICKLINE(CAIH7 AND 卖<1,O,CLOSE,1,0),COLORYELLOW,LINETHICK2;
时间窗01:=FILTER(IF(HHVBARS(HIGH,5),0,H),5),COLORFFFF00;
DRAWTEXT(时间窗01,HIGH*0.99,'5');
时间窗02:=FILTER(IF(LLVBARS(LOW,5),0,L),5),COLOR00FFFF;
DRAWTEXT(时间窗02,LOW*0.99,'5');
时间窗1:=FILTER(IF(HHVBARS(HIGH,13),0,1),13),COLOR00FF00;
DRAWTEXT(时间窗1,HIGH*0.99,'13');
时间窗2:=FILTER(IF(LLVBARS(LOW,13),0,1),13),COLOR0000FF;
DRAWTEXT(时间窗2,LOW*0.99,'13');
时间窗3:=FILTER(IF(HHVBARS(HIGH,34),0,2),34),COLOR55FF55;
DRAWTEXT(时间窗3,HIGH*0.99,'34');
时间窗4:=FILTER(IF(LLVBARS(LOW,34),0,2),34),COLOR5555FF;
DRAWTEXT(时间窗4,LOW*0.99,'34');
时间窗5:=FILTER(IF(HHVBARS(HIGH,55),0,30),55),COLOR99FF99;
DRAWTEXT(时间窗5,HIGH*0.99,'55');
时间窗6:=FILTER(IF(LLVBARS(LOW,55),0,30),55),COLORDD00FF;
DRAWTEXT(时间窗6,LOW*0.99,'55');
时间窗7:=FILTER(IF(HHVBARS(HIGH,89),0,40),89),COLORDDFFDD;
DRAWTEXT(时间窗7,HIGH*0.99,'89');
时间窗8:=FILTER(IF(LLVBARS(LOW,89),0,40),89),COLOR0055FF;
DRAWTEXT(时间窗8,LOW*0.99,'89');
时间窗9:=FILTER(IF(HHVBARS(HIGH,144),0,50),144),COLORDDFF00;
DRAWTEXT(时间窗9,HIGH*0.99,'144');
时间窗10:=FILTER(IF(LLVBARS(LOW,144),0,50),144),COLOR9955FF;
DRAWTEXT(时间窗10,LOW*0.99,'144');
时间窗11:=FILTER(IF(HHVBARS(HIGH,233),0,60),233),COLORDDFFFF;
DRAWTEXT(时间窗11,HIGH*0.99,'233');
时间窗12:=FILTER(IF(LLVBARS(LOW,233),0,60),233),COLORFF55FF;
DRAWTEXT(时间窗12,LOW*0.99,'233');
第二部分 选股公式