主力:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED,LINETHICK2;
IF(主力 REF(主力,1),主力,DRAWNULL),COLORGREEN,LINETHICK2;
VAR1:=MA((HIGH+LOW+2*CLOSE)/4,5);
VAR2:=EMA(VAR1,10)-EMA(VAR1,30);
VAR3:=EMA(VAR2,5);
VAR4:=(VAR2-VAR3)*5;
VAR5:=IF(VAR4 =VAR1,VAR1,VAR4);
动向:= FORCAST(FORCAST(VAR5,10),10),LINETHICK1;
趋势: IF(VAR5 动向,VAR5,VAR1),COLORWHITE;
强势: MA(VAR1,5),COLORYELLOW;
弱势:= MA(HHV(VAR1,10),5),COLORWHITE;
疯牛: DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,90),VOL),COLORMAGENTA;
年线: DMA(MA(CLOSE+REF(CLOSE,5)/CLOSE*0.098,250),VOL),LINETHICK2,COLORFF9E3E;
VAR6:=EMA(CLOSE,5);
VAR7:=EMA(CLOSE,10);
VAR8:=EMA(CLOSE,20);
VAR9:=EMA(CLOSE,30);
VARA:=EMA(CLOSE,60);
VARB:=EMA(CLOSE,90);
VARC:=EMA(CLOSE,125);
VARD:=EMA(CLOSE,250);
VAR10:=1.809*LLV(LOW,250);
VAR11:=MA(CLOSE,10)-EMA(CLOSE,10)*100;
VAR12:=MA(VAR11,5);
VAR13:=3*(VAR12-VAR11);
VAR14:=((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*200-100)/2-REF(CLOSE,5);
VAR15:=SMA(SMA(VAR14,5,1),5,1);
VAR16:=MA(MA(VAR15,5),5);
VAR17:=3*VAR16-5*VAR15;
VAR18:=EMA(VAR17,10);
VAR19:=MA(CLOSE,20)/MA(CLOSE,20)-REF(CLOSE,20)/CLOSE*100;
VAR1A:=DMA(SMA(EMA(VAR19,5),5,1),VOL/REF(VOL,5));
VAR1B:=SMA(EMA(VAR19,10),5,1);
VAR1C:=(-100)*(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13));
VAR1D:=(-100)*(HHV(HIGH,8)-CLOSE)/(HHV(HIGH,8)-LLV(LOW,8));
VAR1E:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14,1);
VAR1F:=HIGH-REF(HIGH,1);
VAR20:=REF(LOW,1)-LOW;
VAR21:=SMA(IF(VAR1F 0 AND VAR1F VAR20,VAR1F,0),14,1);
VAR22:=SMA(IF(VAR20 0 AND VAR20 VAR1F,VAR20,0),14,1);
VAR23:=VAR21*100/VAR1E;
VAR24:=VAR22*100/VAR1E;
VAR25:=SMA(ABS(VAR24-VAR23)/(VAR24+VAR23)*100,14,1);
VAR26:=(VAR25+REF(VAR25,6))/2;
DRAWTEXT(CROSS(VAR13,50) AND VAR6 VAR7 AND VAR7 VAR8 AND VAR8 VAR9 AND VAR9 VARA AND VARA VARB AND VARB VARC AND VARC VARD AND 疯牛 VARD AND VAR19 VAR1A AND VAR1A VAR1B AND VAR1B -100 AND VAR1C -20 AND VAR1D -20 AND -30 VAR18 AND VAR18 VAR17 AND VAR23 VAR25 AND VAR25 VAR26 AND VAR26 VAR24,年线,'宝典'),COLORYELLOW;
DRAWTEXT(CROSS(VAR13,200) AND VAR6 VAR7 AND VAR7 VAR8 AND VAR8 VAR9 AND VAR9 VARA AND VARA VARB AND VARB VARC AND VARC VARD AND VARD 年线 AND 年线 VAR10 AND VAR19 VAR1A AND VAR1A VAR1B AND VAR1B -100 AND VAR1C -20 AND VAR1D -20 AND VAR23 VAR25 AND VAR25 VAR26 AND VAR26 VAR24,年线,'疯牛'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,' 用法和说明: 趋势线上穿强势线,且主力线掉头向上,买入。'),COLORFF53FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.035,0,' 1、主力洗盘怎么办?好办,只要主力线上行,就别出来,让他使劲洗。'),COLOR4080FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.069,0,' 2、如果年线和疯牛线也掉头向上,那可就祝福你了:你买到了一只大牛股!'),COLORFF9E3E;
{www.9m8.cn 九毛八公式指标网 股票软件下载网-通达信指标公式}
AAA2:=SUM(IF( CLOSE REF(CLOSE,1),VOL*C,0),0);
AAA3:=SUM(IF( CLOSE REF(CLOSE,1),VOL*C,0),0);
AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);
B1万元:=DVOL*DCLOSE/100;
净流入万元:=(AAA2-AAA3-0.5*AAA4);
PM:=MA(净流入万元,1);
PMA:=PM/REF(PM,1)
PMB:=REF(PMA,1) 1 AND PMA;
密电:=(EMA(MA(B1万元,2),2))/100000;
二日比:=密电/REF(密电,1);
密选:PMB AND 密电 REF(密电,1) AND 二日比 1,COLORYELLOW,NODRAW;
DRAWICON(密选,主力,1);
NN:=150;判断高低:=3;
高:=REF(HHV(H,NN),判断高低);
近期顶:REFDATE(高,DATE),COLORGREEN;
DRAWTEXT(BARSTATUS=2,近期顶,'近期顶'),COLORGREEN;
最顶:=REFDATE(近期顶,DATE),NODRAW;
出:=最顶=H AND ((C-L) (O-C) OR (O-L) (C-O)),NODRAW;
STICKLINE(出,C,O,3,0),COLORBLUE;
STICKLINE(出,C,O,2,0),COLORBLUE;
低:=REF(LLV(L,NN),判断高低);
近期底:REFDATE(低,DATE),COLORRED;
DRAWTEXT(BARSTATUS=2,近期底,'近期底'),COLORRED;
最底:=REFDATE(近期底,DATE),NODRAW;
进:=最底=L AND ((C+L) (O+C) OR (O+L) (C+O)),NODRAW;
STICKLINE(进,C,O,3,0),COLORMAGENTA;
STICKLINE(进,C,O,2,0),COLORMAGENTA;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
DRAWTEXT(RSI1 10{《 信号参考值},L*0.98,'R拐点'),COLORMAGENTA;