通达信决策指标公式
{牛牛指标网提供:www.tdx001.com}
复制内容到剪贴板
- V5日涨跌%: (C-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORWHITE,NODRAW;
- V10日涨跌%: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;
- V30日涨跌%: (C-REF(CLOSE,30))/REF(CLOSE,30)*100,COLORMAGENTA,NODRAW;
-
- V60日涨跌%: (C-REF(CLOSE,60))/REF(CLOSE,60)*100,COLORYELLOW,NODRAW;
- V120日涨跌%: (C-REF(CLOSE,120))/REF(CLOSE,120)*100,COLORMAGENTA,NODRAW;
-
- V180日涨跌%: (C-REF(CLOSE,180))/REF(CLOSE,180)*100,COLORMAGENTA,NODRAW;
- V250日涨跌%: (C-REF(CLOSE,250))/REF(CLOSE,250)*100,COLORMAGENTA,NODRAW;
-
-
-
-
- MB1:EMA(CLOSE,5),COLOR0000FF;
- MB2:EMA(MB1,3),COLOR80FFFF;
- MB3:EMA(MB2,3),COLORFF80FF;
- MB4:EMA(MB3,3),COLORFFFFFF;
- MB5:EMA(MB4,3),,COLOR0080FF;
- 双线持币:HHV(MA(HIGH,2),2),COLORGREEN,LINETHICK2;
- 单线持股:LLV(MA(HIGH,2),1),COLORRED,LINETHICK1;
-
- QB1:EMA(CLOSE,30),COLOR00FFFF;
- QB2:EMA(QB1,3),COLOR00FFFF;
- QB3:EMA(QB2,3),COLOR00FFFF;
- QB4:EMA(QB3,3),COLOR00FFFF;
- QB5:EMA(QB4,3),COLOR00FFFF;
- QB6:EMA(QB5,3),COLOR00FFFF;
-
-
-
- MBQ1:=EMA(CLOSE,13);
- MBQ2:=EMA(MBQ1,3);
- MBQ3:=EMA(MBQ2,3);
- MBQ4:=EMA(MBQ3,3);
- MBQ5:=EMA(MBQ4,3);
-
- RSV1:=(CLOSE-LLV(LOW,23))/(HHV(HIGH,23)-LLV(LOW,23))*100;
- RSVQ:=(CLOSE-LLV(LOW,196))/(HHV(HIGH,196)-LLV(LOW,196))*100;
-
-
- MBQ6:=SMA(RSVQ,30,1)>SMA(SMA(RSVQ,30,1),15,1) OR SMA(RSV1,6,1)> SMA(SMA(RSV1,6,1),3,1) ;
- MBB:=ABS(MBQ1-MBQ5)<0.01 AND MBQ6 ;
-
-
- DRAWICON(MBB,L*0.95,13);
-
-
-
-
-
-
- LX:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,LINETHICK1;
- J:=SUM(VOL*CLOSE,5)/SUM(VOL,5);
- M:=EMA(J,2),COLORWHITE,LINETHICK1;
-
-
- DRAWICON((CROSS(M,LX) AND MBQ6),LX-0.05,11);
- DRAWTEXT((CROSS(M,LX) AND MBQ6),LX,' ←介入,'),COLOR00FF00;
-
-
- RZSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18));
- K1:=EMA(RZSV,3);
- D1:=EMA(K1,3);
- J1:=3*K1-2*D1;
-
- 山:=(3*K1-2*D1);
- KDJ1:=REF(COUNT(J1<REF(J1,1),5)>=3,1) AND REF(J1,1)<0.2;
- KDJ2:=J1>REF(J1,1);
-
- RWSV1:=(CLOSE-LLV(LOW,23))/(HHV(HIGH,23)-LLV(LOW,23))*100;
- RWSVQ:=(CLOSE-LLV(LOW,196))/(HHV(HIGH,196)-LLV(LOW,196))*100;
-
-
- MWB6:=SMA(RWSVQ,30,1)>SMA(SMA(RWSVQ,30,1),15,1) OR SMA(RWSV1,6,1)> SMA(SMA(RWSV1,6,1),3,1) ;
-
-
-
- 观注:DRAWTEXT( FILTER(KDJ1 AND KDJ2 AND MWB6,3),H-0.4,'△'),COLORFF00EE;
- DRAWTEXT( FILTER(KDJ1 AND KDJ2 AND MWB6,3),H-0.5,'△'),COLORFF00EE;
- STICKLINE(观注,O,C,4,1),LINETHICK2,COLORFFFFFF;
-
- 龙盘250Ⅰ:EXPMA(CLOSE,250),CROSSDOT,LINETHICK1,COLORWHITE;
- 龙盘120Ⅱ:MA(C,120),CIRCLEDOT,LINETHICK0,;
-
-
- VAXR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
- VAXR22:=SMA(VAXR21,3,1);
- VAXR23:=SMA(VAXR22,3,1);
- VAXR24:=SMA(VAXR23,3,1);
- VAXR25:=CROSS(VAXR23,VAXR24) AND VAXR23<20;
- DRAWTEXT(FILTER(VAXR25,10)=1,LOW-0.6,'←抄底'),COLORRED;
- DRAWICON(FILTER(VAXR25,10)=1,LOW,9);
-
-
- 空仓:IF(CLOSE<SAR(4,2,10),SAR(4,2,10),DRAWNULL),CIRCLEDOT,COLOR008080 ;
-
-
- DIFZ:=EMA(C,12)-EMA(C,26);
- DEAZ:=EMA(DIFZ,9);
- MACDZ:=2*(DIFZ-DEAZ);
- HH0:=CONST(HHV(H,120))*1;{以现价的N日最高值为高点,我取120日,这个取值可以根据
- 自己电脑的版面而定}
- LL0:=CONST(LLV(L,120))*1;{以现价的N日最低值为高点}
- MM0:=CONST((HH0+LL0)/2);{取中间值}
- HL0:=CONST(IF(CONST(C)>=MM0,LL0-(HH0-LL0)*0.2,HH0+(HH0-LL0)*0.2));
- {此句为便于叠加副图不影响版面,当现价大于中间值时将叠加副图放在主图上沿反之放下沿
- LL0-(HH0-LL0)*0.2是限制副图大小0.2可根据自己的喜好调节}
- HH1:=IF(CONST(C)<MM0,HH0,HL0);{再次设定叠加副图的最高值,根据现价与中间值的关系可上可下}
- LL1:=IF(CONST(C)>=MM0,LL0,HL0);{再次设定叠加副图的最低值}
- HL1:=(HH1+LL1)/2;{最后确定副图的中间值位置}
- STICKLINE(MACDZ>0,MACDZ*2+HL1,HL1,1,0),COLOR400080;
- STICKLINE(MACDZ>0 AND MACDZ>REF(MACDZ,1),MACDZ*2+HL1,HL1,1,0),COLOR0000FF;
- STICKLINE(MACDZ<0,MACDZ*2+HL1,HL1,1,0),COLOR00D900;
- STICKLINE(MACDZ<0 AND MACDZ>REF(MACDZ,1),MACDZ*2+HL1,HL1,1,0),COLORC080FF;
- (DIFZ*2+HL1),COLORRED;
- (DEAZ*2+HL1),COLORFFFFFF;
- IF(DIFZ<=REF(DIFZ,1),DIFZ*2+HL1,DRAWNULL),COLORFFF000;
815455595.jpg
|