拉升启动(改编源码 副图/选股 通达信)不后补 不飘移
{拉升启动幅图}
N:=5;
VAR1:4*SMA((C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100,5,1)-
3*SMA(SMA((C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100,5,1),3.2,1),COLORYELLOW,NODRAW;
VAR2:8,COLORGREEN,NODRAW;
上升在即:IF(CROSS(VAR1,VAR2),80,0),STICK,COLOR0000CC,LINETHICK3;
专吸庄血:IF(VAR1 =8,25,0),STICK,COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(VAR1,VAR2),70,'准备买入'),COLOR00FFFF;
VARO5:=LLV(LOW,21);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,3)*25;
建仓区:IF((VARO7 10),80,100) ,COLOR00CCFF,LINETHICK1;
0,LINETHICK2 ,COLORFFCC00;
HJ_1:=REF(LOW,1);
HJ_2:=SMA(ABS(LOW-HJ_1),13,1)/SMA(MAX(LOW-HJ_1,0),13,1)*100;
HJ_3:=EMA(IF(CLOSE*1.2,HJ_2*13,HJ_2/13),13);
HJ_4:=LLV(LOW,34);
HJ_5:=HHV(HJ_3,34);
HJ_6:=IF(LLV(LOW,55),1,0);
HJ_7:=EMA(IF(LOW =HJ_4,(HJ_3+HJ_5*2)/2,0),3)/618*HJ_6;
HJ_8:=HJ_7 REF(HJ_7,1);
HJ_9:=HJ_8 REF(HJ_8,1);
启动点:IF(HJ_9 REF(HJ_9,1) AND VAR1 REF(VAR1,1),50,0),COLORRED,LINETHICK3;
DRAWTEXT(启动点=50,45,' 启动点'),COLORYELLOW;
选股公式:
{启动点选股}
N:=5;
VAR1:=4*SMA((C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100,5,1)-
3*SMA(SMA((C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100,5,1),3.2,1);
HJ_1:=REF(LOW,1);
HJ_2:=SMA(ABS(LOW-HJ_1),13,1)/SMA(MAX(LOW-HJ_1,0),13,1)*100;
HJ_3:=EMA(IF(CLOSE*1.2,HJ_2*13,HJ_2/13),13);
HJ_4:=LLV(LOW,34);
HJ_5:=HHV(HJ_3,34);
HJ_6:=IF(LLV(LOW,55),1,0);
HJ_7:=EMA(IF(LOW =HJ_4,(HJ_3+HJ_5*2)/2,0),3)/618*HJ_6;
HJ_8:=HJ_7 REF(HJ_7,1);
HJ_9:=HJ_8 REF(HJ_8,1);
启动点:HJ_9 REF(HJ_9,1) AND VAR1 REF(VAR1,1);