通达信绝处逢生源码主图
P1:=5;
P2:=4;
P11:=LLV(LOW,P1);
P12:=HHV(HIGH,P1);
K:=EMA((CLOSE-P11)/(P12-P11)*100,P2),COLORRED,LINETHICK2;
D:=EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(K,D)*限时 AND D<40 AND XTB,H*1.01,''),COLORFF00FF;
DRAWTEXT(CROSS(K,D)*限时 AND D<40 AND 下跌段=DRAWNULL AND XTS!=1,H*1.01,''),COLORFF00FF;
DRAWTEXT(CROSS(D,K)*限时 AND XTS,H*1.01,''),COLORBLUE;
DRAWTEXT(CROSS(D,K)*限时 AND 上升段=DRAWNULL AND XTB!=1,H*1.01,''),COLORBLUE;
DRAWTEXT(CROSS(80,K)*限时,H*1.06,''),COLORCYAN;
DRAWTEXT(CROSS(D,K)*限时 AND D>=80,H*1.06,''),COLORCYAN;
DRAWTEXT(CROSS(ZIG(3,13)*限时,REF(ZIG(3,13),1)),MIN(【箱底】,L)*0.9,'重仓'),COLORFF00FF;
DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA1:=EMA(DIF1,9);
淘金1:=(DIF1-DEA1)*2*60;
主力:=淘金1-REF(淘金1,1),COLORRED;
DRAWTEXT(CROSS(主力,15)*限时 AND 主力-REF(主力,1)>5 AND 主力>5 AND 下跌段=DRAWNULL AND XTS!=1 AND C>=REF(C,1),HIGH*1,''),COLOR00CCFF;
DRAWTEXT(CROSS(主力,15)*限时 AND 主力-REF(主力,1)>5 AND 主力>5 AND 上升段=DRAWNULL AND XTB!=1 AND C<REF(C,1),HIGH*1,''),COLOR00CC00;
DRAWTEXT(CROSS(主力,15)*限时 AND 主力-REF(主力,1)>5 AND 主力>5 AND XTB,HIGH*1,'←涨'),COLOR00CCFF;
DRAWTEXT(CROSS(主力,15)*限时 AND 主力-REF(主力,1)>5 AND 主力>5 AND XTS,HIGH*1,'←跌'),COLOR00CC00;
差值:=IF(主力-REF(主力,1), 主力-REF(主力,1),0),COLORRED;
VARR:=TROUGHBARS(3,15,1)<4;
DRAWTEXT(FILTER(VARR=1,5)*限时,LOW*0.98,''),COLOR00CCFF;
市盈率 :DYNAINFO(39),NODRAW;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,' ');
A1:=MA(C,20);
B1:=A1+2*STD(C,20);
C1:=A1-2*STD(C,20);
AA:=CROSS(C,B1) AND C/REF(C,1)>1.05;
DRAWTEXT(AA*限时 AND C>MA(C,60) AND C>MA(C,90) AND C>MA(C,120) AND C>MA(C,250),H*1.03,''),COLORYELLOW;
A11:=(C-MA(C,250))/MA(C,250)*100;
N11:=BARSLAST(CROSS(C,MA(C,250)));
N21:=BARSLAST(CROSS(MA(C,250),C));
B11:=IF(N11<N21,N11+1,0);
C11:=HHV(A11,B11);
D11:=(C-REF(C,B11))/REF(C,B11)*100;
N31:=BARSLAST(CROSS(C,MA(C,20)));
N41:=BARSLAST(CROSS(MA(C,20),C));
AA1:=IF(N31<N41,N31+1,0);
BB1:=(C-REF(C,AA1))/REF(C,AA1)*100,COLORRED;
DRAWTEXT(CROSS(BB1,10)*限时 AND C/REF(C,1)>1.05,H*1.01,''),COLORRED;
预警线:=18.5,COLORGREEN;
趋势线:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CROSS(18.5,趋势线)*限时,L,''),COLORFF00FF;
DRAWTEXT(CROSS(趋势线,94.5)*限时,H*1.01,''),COLOR70DB93;
VARR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VARR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VARR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VARR6:=(VARR3+VARR4+VARR5)/3;
VARR8:=IF(VARR6<=-20,10,0);
VARR9:=HHV(VARR8,10);
VARRA:=IF(VARR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
DRAWTEXT(VARR8=10*限时 AND FILTER(VARR8=10,5),LOW*0.9,'')COLORFF00FF;
DRAWTEXT(VARRA=20*限时,LOW*0.94,'') COLOR70DB93;
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
AX1:=EMA(DIFF,5)*5;
AX2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
资金动能A:=AX2,COLORYELLOW,LINETHICK2;
资金动能B:=AX1,COLORFFFF00,LINETHICK2;
DRAWTEXT((CROSS(资金动能A,资金动能B)*限时),LOW*0.9,'');
DRAWTEXT((CROSS(资金动能B,资金动能A)*限时),H*1.01,'');
TY:=H;
AS1:=REF(TY,10)=HHV(TY,2*10+1); BS1:=FILTER(AS1,10); CS1:=BACKSET(BS1,10+1); HD:=FILTER(CS1,10);
AS2:=REF(TY,10)=LLV(TY,2*10+1); BS2:=FILTER(AS2,10); CS2:=BACKSET(BS2,10+1); LD:=FILTER(CS2,10);
阻力:=REF(H,BARSLAST(HD)),COLOR00FF00;
DRAWTEXT(CROSS(C,阻力)*限时,LOW*0.93,''),COLORFF00FF;
VARS2:=LLV(LOW,10);
VARS3:=HHV(HIGH,25);
动力线:=EMA((CLOSE-VARS2)/(VARS3-VARS2)*4,4);
阶段卖:=3.2;
全清仓:=3.5;
底部:=0.2,COLOR70DB93;
起涨:=0.5,COLORYELLOW;
DRAWTEXT( FILTER(CROSS(动力线,起涨)*限时,20),LOW*0.93 ,'')COLORYELLOW;
DRAWTEXT( FILTER(CROSS(全清仓,动力线)*限时,20),H*1.03,'')COLORYELLOW;
DRAWTEXT( FILTER(CROSS(动力线,底部)*限时,20),LOW*0.93 ,'')COLORYELLOW;
DRAWTEXT( FILTER(CROSS(阶段卖,动力线)*限时,20),H*1.03,'')COLORYELLOW;
DRAWTEXT(CROSS(DATE,限时日) OR DATE=限时日,REF(M10,1),''),COLOR00FFFF;
- 上一篇公式:通达信大盘顶底指标副图无未来
- 下一篇公式:通达信MACD底面积背驰抄底公式