A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
SHORT:=7; LONG:=19;
RMA:=EMA(CLOSE,SHORT);
NMA:=EMA(CLOSE,LONG);
UP:DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST
O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1;
O2:EMA(O1,3),COLORFF00FF,LINETHICK1;
O3:EMA(O2,3),COLOR00FF00,LINETHICK1;
MMM:=MA(CLOSE,20);
DRAWTEXT((CLOSE<MMM),MMM,'*'),COLOR00FF00,LINETHICK5;
DRAWTEXT((CLOSE
工作线:(EMA(C,14)),POINTDOT,LINETHICK3,COLOR22ACDE;
生命线:(MA(C,25)),LINETHICK1,COLORMAGENTA;
不惑线:(MA(C,40)),COLORCYAN,LINETHICK1;
姊妹线:(EMA(C,56)),POINTDOT,COLOR33CCDD,LINETHICK1;
A3:=EMA((((SLOPE(C,21)) * 20) + C),68);
A4:=EMA(C,10
MA5:MA(CLOSE,5),LINETHICK1,COLORWHITE;
MA10:MA(CLOSE,10),LINETHICK1,COLORYELLOW;
MA20:MA(CLOSE,20),LINETHICK2,COLORMAGENTA;
MA60:MA(CLOSE,60),LINETHICK1,COLORGREEN;
买线:=EMA(C,4);
卖线:=EMA(SLOPE(C,20)*10+C,35);
DRAWTEXT(CROS
白色: SMA(HIGH,21,2)*1.05,COLORWHITE,linethick2;
黄色: SMA(LOW,21,2)*0.95,COLORYELLOW;
粉色: SMA(LOW,5,1),COLORFF00FF;
绿色: SMA(CLOSE,2,1),COLORGREEN,linethick2;
波段买入:IF(CROSS(绿色,粉色),白色*1.05,粉色),,COLORFF00FF,linethick2;
领头羊:IF(CROSS(绿
来势线: EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;
福星: EMA(来势线,7), COLORSTICK,COLORRED;
VAR00:=CLOSE/REF(LLV(LOW,35),5)< 1;
决策: IF(VAR00,0.5,0), STICK,COLORBLUE;
必买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),COLORYELLOW ,LINET
Q_1:=C-REF(C,1);
Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
Q_3:=CROSS(EMA(C,19),EMA(C,7));
Q_4:=CROSS(EMA(C,7),EMA(C,19));
Z1:=L=LLV(L,BARSLAST(Q_3)+1);
Z2:=LLV(L,BARSLAST(Q_3)+1);
Z3:=H=HHV(H,BARSLAST(Q_4)+1);
REFLINE:-10, 0, 20, 50, 80;
{DRAWGBKLAST(C>0,STRIP(RGB(10,60,0),RGB(10,10,0),0));
DRAWTEXTABS(2,15,'上升趋势重买点,出现卖点轻言顶;'),COLOR0000FF,LINETHICK2;
DRAWTEXTABS(250,15,'下降趋势重卖点,遇见买点未必底。'),COLORFFFF00,LINETHICK2;
}
STICKLINE(CLOSE
ZTBL:=REF(ZIG(3,13),3)>REF(ZIG(3,13),2)AND REF(ZIG(3,13),1)>REF(ZIG(3,13),2);
BL:= REF(ZIG(3,13),2)>REF(ZIG(3,13),1) AND ZIG(3,13)>REF(ZIG(3,13),1);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND
N1:=3;N2:=5;
MR:=BUYVOL*C/100;
ZMR:=SUM(MR,0);
MC:=SELLVOL*C/100;
ZMC:=SUM(MC,0);
RCH:=ZMR+ZMC;
RCC:=ZMR-ZMC;
MR0:=IF(MR<5,MR,0);
ZMR0:=SUM(MR0,0);
MC0:=IF(MC<5 ,MC,0);
ZMC0:=SUM(MC0,0);
MR
VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,30);
VARE:=HHV(VARC,30);
VARF:=IF(MA(CLOSE,58),1,0);
VARG:=EMA(IF(LOW<=VARD,(VARC+VA
N:=33;
重心:(H+L+3*C+O)/6,NODRAW;
STICKLINE(重心>0,重心,重心*1.001,0.1,0),COLORLIRED;
重心转向:重心>REF(重心,1) AND REF(重心,1)<REF(重心,2),NODRAW;
STICKLINE(重心转向,L,MAX(C,O),0.1,0),COLORYELLOW;
STICKLINE(重心转向,L,L*1.001,2,0),COLORYELLOW;
N:=21;
VAR1:=(CLOSE+LOW+HIGH)/3;
VAR2:=SUM(((VAR1-REF(LOW,3))-(HIGH-VAR1))*VOL/10000/(HIGH-LOW),1);
VAR3:=EMA(VAR2,3),COLORFFEE3C;
JCS0:VAR3,CIRCLEDOT,LINETHICK1,COLORFFEE3C;
波段买入或持股:IF(JCS0>REF(JCS0,1),JCS0,DRAWNULL),LI
中线:18.5,COLORLIRED;
AA1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
MACD底背离:=REF(C,AA1+1)>C AND REF("MACD.DIF",AA1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0;
动力线:MA(C,5),LINETHICK3,COLOR00CCFF;
牛熊线:MA(C,13),CIRCLEDOT,COLORYELLOW;
生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA;
MA05:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
五日乖离率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA