通达信交易买卖副图指标 源码 贴图
N:=2; 一天线:=MA(CLOSE,1); 两天线:=MA(CLOSE,2); JC:=CROSS(两天线,一天线); SC:=CROSS(一天线,两天线); AA:=LLV(L,34); XD:=SMA(ABS(L-REF(L,1)),34,1); CD:=SMA(MAX(L-REF(L,1),0),34,2); 收盘买:=-(EMA(IF(L<=AA,XD/CD,-3),9)); ★明天卖:收盘买<0 AND 收盘买>REF(收盘买,1) AND REF(EVERY(收盘买DRAWTEXT(★明天卖>0,1.76,'★明天卖'),COLORFFFFFF; STICKLINE(★明天卖,0,2,0,0),COLORFF00FF; VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1); VAR2:=8; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); 卖:CROSS(88,RSI),STICK,LINETHICK1,COLORFFFF00; DRAWTEXT(卖>0,1.36,'★卖'),COLORFFFF00; STICKLINE(卖,0,2,0,0),COLORBBBB00; 买:CROSS(VAR1,VAR2),COLOR00FFFF,STICK,LINETHICK1; DRAWTEXT(买>0,1.36,'★买'),COLOR00FFFF; STICKLINE(买,0,2,0,0),COLOR0000FF; 量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); 放量:FILTER(IF(FROMOPEN<220,量,VOL)>2*((REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4))/4) AND C>O,5),STICK,LINETHICK1,COLORFFFFFF; DRAWTEXT(放量>0,0.8,'★放量'),COLOR00FFFF; EMA3:=EMA(C,3); EMA13:=EMA(C,13); EMA21:=EMA(C,21); HR2:=EMA3>=REF(EMA3,3) AND EMA13>=REF(EMA13,1) AND EMA21>=REF(EMA21,1) AND CROSS(C,EMA3) AND CROSS(C,EMA13) AND CROSS(C,EMA21); 止跌买:HR2 AND FILTER(HR2,10),COLOR4080FF,STICK,LINETHICK1; DRAWTEXT(止跌买>0,0.2,'★止跌买'),COLORFFFFFF; 加:CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,COLORFFFFFF,STICK,LINETHICK1; DRAWTEXT(加>0,0.5,'★加'),COLORFFFFFF; A0:=(L+H+C*2)/4; A1:=EMA(A0,N); A1X:=(A1-REF(A1,1))/REF(A1,1)*100; 清:IF(A1X<0 AND REF(A1X,1)>=0 ,1,0),COLORFFFF15,STICK,LINETHICK1; DRAWTEXT(清>0,0.5,'★减'),COLORFFFF15; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); 短线:IF(FILTER(YXF=1,5),20,-10)=20,STICK,LINETHICK1; DRAWTEXT(短线>0,0.1,'★短线'),COLOR00FFFF; SJ:=WMA(((2*C+H+L)/4-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2); ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2); 交易卖:CROSS(88,RSI),STICK,LINETHICK1,COLORFFFF00; DRAWTEXT(交易卖>0,1.76,'交易卖'),COLORFFFF00; STICKLINE(交易卖,0,2,0,0),COLORBBBB00; ★交易买:CROSS(VAR1,VAR2),COLOR00FFFF,STICK,LINETHICK1; DRAWTEXT(★交易买>0,1.76,'★交易买'),COLOR00FFFF; STICKLINE(★交易买,0,2,0,0),COLOR0000FF; N1:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C)); 短线持股:C>=MA(C,N1),COLOR0000FF,LINETHICK3;
|