HJ_1:=IF(DATE 999999999,1,DRAWNULL);
主趋势线:EMA(EMA(CLOSE,10),10)*HJ_1,COLORRED,LINETHICK3;
HJ_2:=IF(DATETODAY(DATE) 999999999,1,DRAWNULL);
HJ_3:=主趋势线 REF(主趋势线,1)*HJ_1;
IF(HJ_3-1,主趋势线,DRAWNULL)*HJ_1,COLORGREEN,LINETHICK3;
HJ_4:=EMA(CLOSE,5) EMA(CLOSE,20)*HJ_2;
HJ_5:=EMA(CLOSE,5) EMA(CLOSE,20)*HJ_2;
HJ_6:=EMA(CLOSE,5) EMA(CLOSE,10)*HJ_2;
HJ_7:=EMA(CLOSE,5) EMA(CLOSE,10)*HJ_1;
HJ_8:=CLOSE OPEN;
STICKLINE(HJ_4,HIGH,LOW,0,0),COLORRED;
STICKLINE(HJ_4,OPEN,CLOSE,3,1),COLORRED;
STICKLINE(HJ_4 AND HJ_8,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(HJ_5,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(HJ_5,OPEN,CLOSE,3,1),COLORGREEN;
STICKLINE(HJ_5 AND HJ_8,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(HJ_5 AND HJ_6,HIGH,LOW,0,1),COLORWHITE;
STICKLINE(HJ_5 AND HJ_6,OPEN,CLOSE,3,1),COLORWHITE;
STICKLINE(HJ_5 AND HJ_6 AND HJ_8,OPEN,CLOSE,3,0),COLORWHITE;
STICKLINE(HJ_4 AND HJ_7,HIGH,LOW,0,0),COLORWHITE;
STICKLINE(HJ_4 AND HJ_7,OPEN,CLOSE,3,1),COLORWHITE;
STICKLINE(HJ_4 AND HJ_7 AND HJ_8,OPEN,CLOSE,3,0),COLORWHITE;
{-----------------------------------};
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
低吸:=CROSS(RSI,11);
DRAWTEXT(低吸,L,'★'),COLORWHITE;
DRAWTEXT(低吸,L-0.05,'低吸'),COLORWHITE;
VAR7:=EMA(AMOUNT/VOL/100,3);
VAR8:=EMA(VAR7,88);
VAR9:=EMA(VAR7,88)*0.85;
VARA:=VAR9*0.87;
VARB:=LOW VARA AND CLOSE REF(CLOSE,1)*1.02;
DRAWTEXT(FILTER(VARB,6),L-0.05,'坚决买进'),COLORFF00FF;
DRAWTEXT(FILTER(VARB,6),L,'★'),COLORFF00FF;
VARF:=(2*CLOSE+HIGH+LOW)/4;
VA4:=LLV(LOW,34);
VA5:=HHV(HIGH,34);
VA6:=EMA((VARF-VA4)/(VA5-VA4)*100,6);
VA7:=EMA(0.667*REF(VA6,1)+0.333*VA6,4);
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 0.3 AND COUNT(VA6 VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND
CLOSE OPEN,1,0),L,'★'),COLORYELLOW;
DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 0.3 AND COUNT(VA6 VA7,3) AND REF(LOW,1)=LLV(LOW,120) AND
CLOSE OPEN,1,0),L-0.05,'出击'),COLORYELLOW;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
DRAWTEXT(CROSS(D1,K1),L-0.05,'波段买入'),COLOR0099FF;
DRAWTEXT(CROSS(D1,K1),L,'★'),COLOR0099FF;
多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
,3,1),2,1);
天线:=78.89;
STICKLINE(CROSS(天线,多方趋势),H*1.02,H*1.00,6,0),COLOR00FF00;
DRAWTEXT(CROSS(天线,多方趋势),H*1.04,'逃顶'),COLOR00FF00;
HKLNPT: COUNT(C/O =1,5) =5 AND ( C/O REF(C/O,1) OR REF(C/O,1) REF(C/O,2) ) AND C/O 1 AND (REF(V,3) REF(V,4) OR REF(V,2) REF(V,3)) AND REF(V,1) REF(V,2) AND V REF(V,1) AND COUNT(H/L 1.062 OR C/REF(C,1) 1.062,2)
DRAWTEXT(HKLNPT,(H*1.05),'红K量能平台'),COLORRED;
DRAWICON(HKLNPT,(H+L)/2,1);
MA5:=MA(C,7),COLORWHITE;
MA20:=MA(C,20),COLORFF00FF;
MA90:MA(C,90),COLORFFCC66;
Y1:=BARSLAST(CROSS(MA5,MA20)) AND MA5 MA20;
Y2:=Y1 AND BARSLAST(CROSS(MA5,MA90));
Y3:=Y2 AND CROSS(MA20,MA90);
DRAWICON(Y3,L-0.10,1);
DRAWTEXT(Y3,L-0.40,'双跨越'),COLORMAGENTA;
F0:=BARSLAST(CROSS(MA(C,5),MA(C,90)));
F1:=F0 AND BARSLAST(CROSS(MA(C,20),MA(C,90)));
F2:=F1 AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20) MA(C,90);
DRAWICON(F2,L-0.10,1);
DRAWTEXT(F2,L-0.40,'双蹄奋起');
MA51:=MA(C,5);
MA10:=MA(C,10);
MA201:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
FA:=BARSLAST(CROSS(MA10,MA51)) AND CROSS(MA51,MA10);
FB:=FA AND MA51 MA30 AND MA10 MA30 AND MA10 REF(MA10,1);
STICKLINE(FB,L,L-0.09,1,0),COLORYELLOW;
DRAWTEXT(FB,L-0.13,'雄起'),COLORYELLOW;
所属板块:=STRCAT('',STRCAT(STRCAT(STRCAT(STRCAT(' [行业]',HYBLOCK),STRCAT(' [地域]',DYBLOCK)),STRCAT(' [概念]',GNBLOCK)),STRCAT(' [自定义]',ZDBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.2,0.05,0,所属板块),COLORYELLOW;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
副值:=K-D;
涨前测试1:=REF(V REF(V,1) REF(副值,1),1);
涨前测试2:=C O REF(C,1)&&V/1.8 REF(V,1) REF(V,1)& REF(V,1)&&副值/2.5 REF(副值,1);{www.9m8.cn 九毛八公式指标网}
涨前测试3:=涨前测试2&&EXIST(涨前测试1,1);
涨前测试:=V REF(V,1)&&副值/1.2 REF(副值,1)&&REF(涨前测试3,1);
前夕昨日:=REF(O,1) REF(C,2)&&REF(C,1) REF(C,2)&&REF(副值,1) REF(副值,2);
前夕今日:=REF(副值,1)*2 副值 0;
大涨前夕1:=前夕昨日
大涨前夕:大涨前夕1,NODRAW,COLORGREEN;
STICKLINE(大涨前夕,1.6,0.5,2,0),COLORGREEN;
VAR1G:=(((CLOSE / MA(CLOSE,40)) * 100) 78);
VAR2G:=(((CLOSE / MA(CLOSE,60)) * 100) 74);
VAR3G:=(HIGH (LOW * 1.051));
VAR4G:=(VAR3G AND (COUNT(VAR3G,5) 1));
AA:=IF((VAR4G AND (VAR1G OR VAR2G)),2,0);
BB:=C/REF(C,25) =1.1;
CC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1);
V5:=SMA(操盘线,2,1);
抄底:=IF(操盘线 REF(操盘线,1) AND REF(操盘线,1) REF(操盘线,2) AND 操盘线 23 ,1.5,0);
买就赢利:BB AND AA AND CC AND 抄底;