通达信祈福狙击手主图指标公式
2020/5/12 18:05:24
攻击:EMA(CLOSE,5)LINETHICK3,COLOR00CCFF;
攻击线:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORBLACK,LINETHICK1;
攻击量:=MA(VOL,3)COLORWHITE;
防守量:=MA(VOL,5)COLORGREEN;
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
五日乖离率:=(C-攻击)/攻击*100;
BB05:=ATAN((攻击/REF(攻击,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((攻击-REF(攻击,1))/REF(攻击,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
满仓:IF(BB05>30 AND 攻击>REF(攻击,1), 攻击,DRAWNULL),LINETHICK3,COLORRED;
BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
空仓:IF(BB05<0 AND 攻击<REF(攻击,1), 攻击,DRAWNULL),LINETHICK3,COLORGREEN;
三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;
VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);
VAR2:=(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 攻击>REF(攻击,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 攻击<REF(攻击,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 攻击>REF(攻击,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;
VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));
VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);
MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;
压力:MA(REF(HHV(C,21),1),2),COLOR9DFFFF;
支撑:MA(REF(LLV(C,21),1),2),COLORABFF46;
RSV1:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K1:=SMA(RSV1,5,1);
D1:=SMA(K1,3,1);
J1:=3*K1-2*D1;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,3));
散户:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
主力:=EMA(J1,6);
{DA:=(EMA(H,1)+EMA(L,1)+EMA(H,1)+EMA(H,1))/4,COLORRED,LINETHICK2;
DB:=EMA(REF(HHV(H,25),1),2),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(DB,DA),HIGH*1.02,'险'),COLORGREEN,LINETHICK1;}
DIF:=(EMA(CLOSE,8) - EMA(CLOSE,22))*100,COLORGRAY,LINETHICK2;
DEA:=EMA(DIF,5),COLORWHITE,LINETHICK1;
MACD:=2*(DIF-DEA),COLORWHITE,LINETHICK2;
R1:=(C>REF(C,1) AND C>REF(C,2));
R2:=(REF(R1,1) AND C<=REF(C,1) AND C>=REF(C,2));
R3:=(REF(R2,1) AND C>=REF(C,1) AND C<=REF(C,2));
R4:=(REF(R3,1) AND C<=REF(C,1) AND C>=REF(C,2));
R5:=(REF(R4,1) AND C>=REF(C,1) AND C<=REF(C,2));
R6:=(REF(R5,1) AND C<=REF(C,1) AND C>=REF(C,2));
R7:=(REF(R6,1) AND C>=REF(C,1) AND C<=REF(C,2));
R8:=(REF(R7,1) AND C<=REF(C,1) AND C>=REF(C,2));
R9:=(REF(R8,1) AND C>=REF(C,1) AND C<=REF(C,2));
RA:=(REF(R9,1) AND C<=REF(C,1) AND C>=REF(C,2));
RB:=(REF(RA,1) AND C>=REF(C,1) AND C<=REF(C,2));
RC:=(REF(RB,1) AND C<=REF(C,1) AND C>=REF(C,2));
RD:=(C<REF(C,1) AND C<REF(C,2));
RE:=(REF(RD,1) AND C>=REF(C,1) AND C<=REF(C,2));
RF:=(REF(RE,1) AND C<=REF(C,1) AND C>=REF(C,2));
R10:=(REF(RF,1) AND C>=REF(C,1) AND C<=REF(C,2));
R11:=(REF(R10,1) AND C<=REF(C,1) AND C>=REF(C,2));
R12:=(REF(R11,1) AND C>=REF(C,1) AND C<=REF(C,2));
R13:=(REF(R12,1) AND C<=REF(C,1) AND C>=REF(C,2));
R14:=(REF(R13,1) AND C>=REF(C,1) AND C<=REF(C,2));
R15:=(REF(R14,1) AND C<=REF(C,1) AND C>=REF(C,2));
R16:=(REF(R15,1) AND C>=REF(C,1) AND C<=REF(C,2));
R17:=(REF(R16,1) AND C<=REF(C,1) AND C>=REF(C,2));
R18:=(REF(R17,1) AND C>=REF(C,1) AND C<=REF(C,2));
R19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;
R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);
DL1:=LLV(LOW,10);
DL2:=HHV(HIGH,25);
动力线:=EMA((CLOSE-DL1)/(DL2-DL1)*4,4);
强势:=CROSS(动力线,1.75);
N:=20;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;
DX:=MA(DDX,5)*N;
DDX1:=SMA(DX,3,1),COLORBLUE;
资金:=DDX1>REF(DDX1,1);
DDX2:=SMA(DDX1,3,1),COLOR00FF00;
RSV:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
KD金叉:=CROSS(K,D) AND K>20 AND D<50;
红区:=BB05>30 AND 攻击>REF(攻击,1);
BIAS:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*100;
金叉:=CROSS(BIAS,0);
DRAWICON(R19 AND 动力线>REF(动力线,1) AND 资金 AND MACD>REF(MACD,1) AND 走势>=REF(走势,1),LOW*0.98,1),COLORFFFFFF;
DRAWICON(R1A AND 动力线<=REF(动力线,1),HIGH*1.02,2),COLORFFFFFF;
预警:=DDX>0 AND MA(V,5)>MA(MA(V,5),5) AND CROSS(DDX1,DDX2);
压力线:=MA(CLOSE,21)*1.06,LINETHICK1,COLORGRAY;
狙击:DRAWTEXT(CROSS(攻击线,MA20) AND 资金 AND MACD>0,支撑,'★'),COLORYELLOW;
狙击一:DRAWTEXT(R19 AND 金叉 AND 买入,支撑,'Ф狙1'),COLORRED;
狙击二:DRAWTEXT(金叉 AND 资金 AND 红区 AND MACD>-10 AND 主力>散户,支撑,'Ф狙2'),COLORYELLOW;
大胆持股:IF(攻击线>攻击 AND 攻击>REF(攻击,1) AND 攻击线>MA20,支撑,DRAWNULL),COLORMAGENTA,LINETHICK2;
绝对空仓:IF(走势<REF(走势,1) AND 主力<REF(主力,1) AND 主力<散户,压力,DRAWNULL),COLORBLUE,LINETHICK2;
强势狙击三:DRAWTEXT(KD金叉 AND 红区 AND 强势,支撑,'Ф狙3'),COLORYELLOW;
DRAWTEXT(R19 AND MACD>DEA AND DEA<0,支撑,'△小玩'),COLORFFFFFF;
DRAWTEXT(R19 AND 主力>走势 AND 主力>REF(主力,1) AND 攻击量>防守量,支撑,'Ф潜伏'),COLORYELLOW;
VAR1AA:=LLV(LOW,21);
VAR2AA:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1AA) / (VAR2AA - VAR1AA)) * 100),5);
AK:=EMA((((CLOSE - VAR1AA) / (VAR2AA - VAR1AA)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'△反弹'),COLORRED;
AA1:=AMOUNT ;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
超跌反弹:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(超跌反弹,L-0.1,'超跌反弹'),COLORRED;
{BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIASMA:=MA(BIAS1,6);
DRAWTEXT(CROSS(BIAS1,BIASMA) AND R19,压力-0.1,'B'),COLORRED;};
看股吧 公式 www.kanguba.c om
其它股票公式列表