TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
生命线:=(HHV(VAR1A,12)),LINETHICK4,COLOR0080FF;
VAR1:=EMA(AMOUNT/VOL/100,3);控盘成本:EMA(VAR1,M), POINTDOT,LINETHICK3,COLOR808080;
低吸伏击:EMA(VAR1,M)*0.85, POINTDOT,LINETHICK3,COLORFFFF00;
走势铁底:低吸伏击*0.87, POINTDOT,LINETHICK3,COLOR00FFFF;
STICKLINE(CLOSE REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
STICKLINE(CLOSE REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
STICKLINE(CLOSE REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
DIFF:=EMA(CLOSE,7)-EMA(CLOSE,13);
DEA:=EMA(DIFF,9);
VAR1AS:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
价值:= VAR1AS, POINTDOT,LINETHICK2,COLORFF6600 ;
低估: VAR1AS-VAR1AS*39/100, POINTDOT,LINETHICK3, COLOR88CC00;
高估: VAR1AS+VAR1AS*16/100, POINTDOT,LINETHICK3, COLORWHITE;
绿降:(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLOR800080,LINETHICK1;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'●'),COLOR0000FF;{底背离}
X1:=HHV(H,3);X2:=LLV(L,3);XX:=(X1+X2)/2;
LYA1:=IF (H REF(X1,1) AND C REF(C,1),X2,IF (L REF(X2,1) AND C REF(C,1),
X1,DRAWNULL));
LYA:=IF(LYA1=DRAWNULL,REF(LYA1,1),LYA1);
SNX2:=IF(LYA H AND LYA L,REF(LYA,1),LYA);
PLOYLINE(C 0,SNX2),LINETHICK2,COLOR0099FF;
卖:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),LINETHICK2,COLORDC5124;
A1:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
A3:LLV(L,30),LINETHICK2,COLORFFCC00;
A4:=EMA(A1,5);
A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
DIFFP := EMA(CLOSE,12) - EMA(CLOSE,26);
DEAP :=EMA(DIFFP,9);
基础:=(DIFFP -0.1 AND DIFFP DEAP);
{www.9m8.cn 九毛八公式指标网 股票软件下载网_最新股票指标公式}
STICKLINE(CROSS(A1,A4) AND (A5-A4) 40 AND 基础 ,A3,A3*1.2,4,0),COLORRED;
MA05:MA(C,5)LINETHICK2,COLOR00CCFF;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
五日乖离率:=(C-MA05)/MA05*100;
BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
IF(BB05 30 AND MA05 REF(MA05,1), MA05,DRAWNULL),LINETHICK2,COLORRED;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
IF(BB05 0 AND MA05 REF(MA05,1), MA05,DRAWNULL),LINETHICK2,COLORGREEN;
三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
VAR1P:=(MA20-MA30) REF((MA20-MA30),1) AND MA20 REF(MA20,1) AND MA30 REF(MA30,1);
VAR2P:=(MA30-MA20) REF((MA30-MA20),1) AND MA20 REF(MA20,1) AND MA30 REF(MA30,1);
BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;
强势狙击:=FILTER(BB30 30 AND BB10 45 AND CROSS(BB05,60),10);
加仓:=FILTER(COUNT(CROSS(BB05,30),5) =1 AND MA05 REF(MA05,1) AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA10 REF(MA10,1)
AND 加速度5 REF(加速度5,1) AND 速度5 REF(速度5,1) ,10) ;
清仓:=FILTER(COUNT(CROSS(30,BB05),5) =1 AND (C MA30 OR O MA30) AND MA05 REF(MA05,1) AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA10 REF(MA10,1),10);
DRAWTEXT(加仓 ,LOW*0.98,' 加仓'),COLORRED;
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA10 REF(MA10,1) ;
减仓:=FILTER(JC,10);
MR:=COUNT(CROSS(五日乖离率,0),3) =1 AND 三拾日乖离率 REF(三拾日乖离率,1) AND MA05 REF(MA05,1) AND (C/REF(C,1)-1)*100 5 AND REF(C,1) MA30;
买入:=FILTER(MR,10);
DRAWTEXT(减仓,HIGH*1.02,' 风险'),COLORCYAN;
DRAWTEXT(买入,LOW*0.98,' 买入'),COLORYELLOW;
DRAWTEXT(清仓 ,HIGH*1.02,' 清仓'),COLORGREEN;
DRAWTEXT(强势狙击,LOW*0.98,' 强势狙击'),COLORYELLOW;