LC:=REF(C,1);
MA5:=MA(C,5);
MA1:=MA(CLOSE,1);
通达信:=HHV(MA5,10);
急线:=IF(HHV((MA1 通达信),5),100,90),COLORBLUE ;
短线:IF(HHV((MA1 通达信),10),100,86),COLORCYAN;
DRAWTEXT(急线=90,95,'顶'),COLORBLUE;
DRAWTEXT(短线=86,90,'顶'),COLORGREEN;
乐:= MA(LC,10);
买卖:=LLV(乐,10);
精准短买:=IF(LLV((MA1 买卖),10),15,0),COLORWHITE;
VARA:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
VARB:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
VARC:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);
买入:IF(VARB MA(VARC,6),MA(VARC,6),VARB),COLORRED;
卖出:IF(VARA MA(VARC,6),MA(VARC,6),VARA),COLORGREEN;
趋势线:MA(VARC,6),COLORYELLOW ,LINETHICK1;
VAR01:=LLV(LOW,21);
VAR02:=HHV(HIGH,21);
红色线:=EMA((CLOSE-VAR01)/(VAR02-VAR01)*100,6),COLORRED,LINETHICK1;
压力:=MA(LLV(C,12)*1.126,8);
支撑:=MA(HHV(C,26)*0.866,6);
多空线:=(压力+支撑)/2,COLORYELLOW, LINETHICK3;
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=(SUM(IF(((HD 0) AND (HD LD)),HD,0),5) );
DMM:=SUM(IF(((LD 0) AND (LD HD)),LD,0),5);
神偷线:=(((DMP ) * 100) / TR);
辅助线:=((DMM * 100) / TR);
动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));
ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR12:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:=IF(CLOSE OPEN,VAR12*(HIGH-LOW),IF(CLOSE OPEN,VAR12*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLOR00E521;
主卖:=IF(CLOSE OPEN,VAR12*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,VAR12*(HIGH-LOW),VOL/2));
买卖比1:=主买/主卖;
净:=(主买-主卖)/100;
净买:IF(净 0,净,DRAWNULL),COLORRED,NODRAW;
VAR4:=MA(LOW,1);
VAR5:=MA(HIGH,2);
VAR6:=MA(CLOSE,2);
VAR7:=REF(VAR6,1);
【趋势】:=((SMA(MAX((VAR6 - VAR7),0),5,1) / SMA(ABS((VAR6 - VAR7)),5,1)) * 100);
急买准:=IF(LLV((MA1 买卖),5)AND 动向趋势线=100,15,0),COLORRED,NODRAW;
V90:=TROUGHBARS(3,15,1)
V100:=PEAKBARS(3,15,1)
V110:=IF(V90=1,50,0);
V120:=IF(V100=1,50,0);
主出货:=IF(IF(V120=50,100,0) REF(IF(V120=50,100,0),1),1,0),COLORGREEN,LINETHICK1,NODRAW;
STICKLINE(主出货=1,趋势线+4,100,0.3,0),COLORGREEN;
底部:=IF(V110=50,50,0),COLORBLACK,LINETHICK1;
有局:IF(底部 REF(底部,1),1,0),COLORLIMAGENTA,NODRAW;
STICKLINE(急买准=15 AND 有局=1,85,100,12,1),COLORRED;
STICKLINE(有局=1,90,100,8,0),COLORLIMAGENTA;
主抄:IF(REF(有局,1),1,0),COLORYELLOW, NODRAW;
出世:IF(主抄=1 AND REF(有局=1,1) AND 卖出 REF(卖出,1)AND 趋势线 REF(趋势线,1),45,0),LINETHICK1,COLORRED,NODRAW;
解密:=(EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;
真:=CROSS(EXPMA(解密,120)-0.0004,EXPMA(解密,200)),COLORCYAN,NODRAW;
BUYHAOGU1:=C-REF(C,1);
BUYHAOGU2:=100*EMA(EMA(BUYHAOGU1,6),6)/EMA(EMA(ABS(BUYHAOGU1),6),6);
BUYHAOGU3:=CROSS(EMA(C,19),EMA(C,7));
BUYHAOGU4:=CROSS(EMA(C,7),EMA(C,19));
Z1:=L=LLV(L,BARSLAST(BUYHAOGU3)+1);
Z2:=LLV(L,BARSLAST(BUYHAOGU3)+1);
Z3:=H=HHV(H,BARSLAST(BUYHAOGU4)+1);
Z4:=HHV(H,BARSLAST(BUYHAOGU4)+1);
BUYHAOGUA:=DRAWLINE(Z1,Z2,Z3,Z4,0),COLORMAGENTA,LINETHICK2;
Y1:=H=HHV(H,BARSLAST(BUYHAOGU4)+1);
Y2:=HHV(H,BARSLAST(BUYHAOGU4)+1);
Y3:=L=LLV(L,BARSLAST(BUYHAOGU3)+1);
Y4:=LLV(L,BARSLAST(BUYHAOGU3)+1);
BUYHAOGUB:=DRAWLINE(Y1,Y2,Y3,Y4,0),COLORCYAN,LINETHICK2;
X01:=LLV(BUYHAOGU2,2)=LLV(BUYHAOGU2,7);
X2:=COUNT(BUYHAOGU2 0,2);
X3:=CROSS(BUYHAOGU2,MA(BUYHAOGU2,2));
X4:=REF(BUYHAOGUB,1) REF(BUYHAOGUB,2);
X5:=BUYHAOGUA REF(BUYHAOGUB,1);
买入1:=(X01 AND X2 AND X3) AND X4 AND X5;
TJ0:=IF(BUYHAOGUA REF(BUYHAOGUA,1) AND BUYHAOGUB=BUYHAOGUA,1,0);
TJ1:=IF(BUYHAOGUB REF(BUYHAOGUB,1) AND BUYHAOGUB=BUYHAOGUA,1,0);
红持股:=IF((BUYHAOGUB REF(BUYHAOGUB,1) AND BUYHAOGUB=BUYHAOGUA),50,0),STICK,COLORRED,LINETHICK3,NODRAW;
STICKLINE(BUYHAOGUB REF(BUYHAOGUB,1),0,35,2,0),COLOR006600;
绿持币:=IF((BUYHAOGUB REF(BUYHAOGUB,1) AND BUYHAOGUB=BUYHAOGUA),0,40),STICK,COLORGREEN,NODRAW;
买绝:=IF(REF(TJ1,1)=0 AND TJ1 =1,58,0),STICK,COLORYELLOW,NODRAW;
STICKLINE((REF(TJ1,1)=0 AND TJ1 =1),0,58,2,0),COLORYELLOW;
卖绝:=IF(REF(TJ0,1)=0 AND TJ0 =1,58,0),STICK,COLORBLUE,NODRAW;
STICKLINE((REF(TJ0,1)=0 AND TJ0 =1),0,58,2,0),COLORBLUE;DRAWICON(卖绝=15 AND 买入 REF(买入,1),买入,8);
VAR11:=MA(C,9),COLORRED;
上通道:=IF(VAR11 REF(VAR11,1),VAR11,DRAWNULL),COLORRED;
上势:=CROSS(买入,趋势线)AND 红持股 50 AND 主出货 1 AND 上通道
DRAWICON(主抄=1 AND 红持股=50,红色线,1);
DRAWICON(主出货,趋势线+5,2);
B:ZIG(3,10) REF(ZIG(3,10),1) AND REF(ZIG(3,10),1) REF(ZIG(3,10),2),COLORYELLOW,LINETHICK2;
S:=ZIG(3,10) REF(ZIG(3,10),1) AND REF(ZIG(3,10),1) REF(ZIG(3,10),2),COLORGREEN,LINETHICK2;
DRAWICON(B=1,趋势线,1);
机会区:=20,POINTDOT,COLORRED;
STICKLINE(真=1 AND 红色线 REF(红色线,1),多空线,红色线,2,0),COLORCYAN;
STICKLINE(主抄,0,10,6,0),COLORRED;{www.9m8.cn 九毛八公式指标网}
DRAWTEXT(精准短买,40,'●'),COLORWHITE;
DRAWTEXT(主出货=1 AND 主抄=1,红色线,'持股不动');
上涨中:=BACKSET(CLOSE/REF(CLOSE,4) =1.1,4),COLORCYAN,NODRAW;
顶:IF(上涨中=0,趋势线,DRAWNULL),COLORGREEN;
DRAWTEXT(主出货=1,趋势线,'清仓出局'),COLORCYAN;
IF(上涨中=1,趋势线,DRAWNULL),COLORRED;