通达信双重买点主图指标公式[源码]
周叉:DRAWTEXT(CROSS("KDJ.D#WEEK"(9,3,3),"KDJ.K#WEEK"(9,3,3)) ,H+0.08,"K5"),COLORGREEN;
M5:=CROSS("MACD.DEA#WEEK","MACD.DIF#WEEK");
DRAWTEXT(M5,H+0.10,"M5"),COLORGREEN;
M20:=CROSS("MACD.DEA#MONTH","MACD.DIF#MONTH");
DRAWTEXT(M20,(H+0.15),"M20"),COLORGREEN;
STICKLINE(月叉 OR 周叉 OR M5 OR M20,HIGH,LOW,0.2,0),COLORGREEN;
STICKLINE(月叉 OR 周叉 OR M5 OR M20,OPEN,CLOSE,0.2, 0),COLORGREEN;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.8,0),COLOR808080;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.5,0),COLOR919890;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,2.2,0),COLORB4B5AF;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,1.7,0),COLORCCCCCC;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,1.2,0),COLORDDDDDD;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.8,0),COLOREEEEEE;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.4,0),COLORF5F1F1;
STICKLINE(M月 OR K月 OR K周 OR M周,OPEN,CLOSE,0.1,0),COLORFFFAFA;
T0:=BARSCOUNT(CLOSE)>12;
T1:=CLOSE=LLV(CLOSE,12);
T2:=RSI.RSI1>LLV(RSI,12);
T3:=RSI.RSI1<21;
TRSI:=T0 AND T1 AND T2 AND T3 AND CLOSE/HHV(CLOSE,120)<0.7;
RSI成W底:=IF(REF(TRSI,1) AND CLOSE>REF(CLOSE,1),1,0);
DRAWTEXT(RSI成W底,(L*0.98),"W"),COLORLIMAGENTA;{RSI在低位上穿且收盘价是12来最低}
STICKLINE(RSI成W底,OPEN,CLOSE,2,0),COLORLIMAGENTA;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:=(0-WR)-100,COLORYELLOW;
RSI买点:=RSI.RSI1<20 AND RSI.RSI1>REF(RSI.RSI1,1);
WR反向买点:=WR反向>-80 AND WR反向<REF(WR反向,1);
梁队长选股:=RSI买点 AND WR反向买点;
DRAWTEXT(梁队长选股,LOW-0.03,"梁")COLORRED;{WR和RSI的双重买点}
STICKLINE(梁队长选股,OPEN,CLOSE,3,0)COLORRED;
STICKLINE(梁队长选股,HIGH,LOW,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(梁队长选股,OPEN,CLOSE,2.5,0),COLOR0033FF;
STICKLINE(梁队长选股,OPEN,CLOSE,2.1,0),COLOR00BEFF;
STICKLINE(梁队长选股,OPEN,CLOSE,1.7,0),COLOR13BCFF;
STICKLINE(梁队长选股,OPEN,CLOSE,1.3,0),COLOR13D1FF;
STICKLINE(梁队长选股,OPEN,CLOSE,0.9,0),COLOR00D6FF;
STICKLINE(梁队长选股,OPEN,CLOSE,0.4,0),COLOR13E5FF;
STICKLINE(梁队长选股,OPEN,CLOSE,0,0),COLOR00F6FC;
LC:=REF(CLOSE,1);
AG:=REF(RSI.RSI1<45,1) AND RSI.RSI1>45;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
B:=REF(CCI<-100,1) AND CCI>=-100;
MMS:=MA(3*RSI.RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
W:=REF(MMS<39,1) AND MMS>=39;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
JG:=3*K-2*D;
F:=REF(JG<10,1) AND JG>=10;
牛股:=AG AND B AND W AND F;
STICKLINE(牛股,OPEN,CLOSE,2.5,0),COLORMAGENTA;{3个指标会和而成其中RSI强势KDJ低位}
DRAWTEXT(牛股,(L-0.08),"牛股"),COLORMAGENTA;
BIAS0:= (C-MA(C,2))/MA(C,2)*100;
D1:=INDEXC;
D2:=MA(D1,13);
DR2:=D2>1.050*D1;
E2:=(C-REF(C,26))/REF(C,26)*10;
SJ1:=DR2;
SJ2:=E2<-2.30;
SJ3:=BIAS0<-2.7;
SJ5:=SJ1 AND SJ2 AND SJ3;
SJ6:=CROSS(0.5,SJ5);
JS1:=CROSS(SJ6,0.5);
JS2:=BARSLAST(JS1=1);
JS3:=JS2<=5 AND C<REF(C,JS2);
赛:=SJ6 OR JS3;
DRAWTEXT(赛,(L*0.97),"赛"),COLORRED;{大赛排名第一}
STICKLINE(赛,OPEN,CLOSE,1,0)COLORRED;
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
买入:=FILTER(MR,10);
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
接近底部:=(乖离<-12 AND 乖离>=-18);
乖离抄底:=IF(乖离<-18,1,0);
乖离信号:=乖离抄底 OR 买入;
DRAWTEXT(乖离信号,(L*0.93),"乖"),COLOR7FFF00;
VAR41:=CLOSE/MA(CLOSE,30)*100<75;
VAR42:=CLOSE/MA(CLOSE,50)*100<78;
VAR43:=HIGH>LOW*1.053;
VAR44:=VAR43 AND COUNT(VAR43,5)>2;
VAR45:=VAR44 AND (VAR41 OR VAR42);
VAR46:=DMA(EMA(CLOSE,5),SUM(VOL,8)/2.8/CAPITAL);
VAR47:=(CLOSE-VAR46)/VAR46*100;
赢:=REF(VAR47,1)<-34 AND VAR47>REF(VAR47,1) AND REF(VAR47,1)<REF(VAR47,2)
AND VAR47-REF(VAR47,1)>1.76 OR VAR45;
DRAWTEXT(赢,(L*0.88),"赢"),COLORMAGENTA;
获利:=WINNER(CLOSE)*100;
获利盘:=WINNER(C)*100;
近邻筹码:=(WINNER(C*1.07)-WINNER(C*0.93))*85;
获利纵横:=获利盘-近邻筹码,NODRAW;
换手率:=V/CAPITAL*100;
AGA:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
AGB:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
AGC:=IF(AGB,1,(AGA<(DYNAINFO(5)+0.01) && AGA>(DYNAINFO(6)-0.01)));
MA21:=IF(AGC,0.01*EXPMA(AMOUNT,21)/EXPMA(VOL,21),EMA((HIGH+LOW+CLOSE)/3,21));
- 上一篇公式:通达信短线急速选股指标公式[源码]
- 下一篇公式:通达信正差关系指标公式[源码]