「翔博精选指标」优化版天空浮桥(通达信公式 主图 源码 测试图
2022-04-23原创 编 辑:翔博软件
VARA:=EMA(REF(CLOSE,1),4);
色彩峰:(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100),COLORB000B0,NODRAW;
STICKLINE(色彩峰,0,100,5,0),COLOR512800;
STICKLINE(色彩峰,0,-50,5,0),COLOR512800;
STICKLINE(色彩峰>0,0,色彩峰,1,0),COLOR730073;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD1:1000*(2*(DIFF-DEA))/EMA(C,30),COLOR666666,NODRAW;
STICKLINE(MACD1>=0,0,MACD1,1,0),COLOR666666;
STICKLINE(MACD1>=0 AND MACD1>REF(MACD1,1),0,MACD1,1,0),COLORAAAAAA;
STICKLINE(MACD1<0,0, 0.3*MACD1,1,0),COLOR666666;
STICKLINE(MACD1<0 AND MACD1>REF(MACD1,1),0,0.3*MACD1,1,0),COLOR9A9A9A;
PF1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RSV:=SMA(PF1,9,1);
FASTK1:=SMA(RSV,3,1);
K1:=SMA(FASTK1,2,1);
D1:=SMA(K1,5,1);
T3:=(K1-D1)>REF((K1-D1),5);
多方拱桥:IF(K1>=D1,D1,DRAWNULL),NODRAW,COLORRED;
空方拱桥:IF(K1<=D1,D1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(K1>=D1,D1,K1,1,0),COLORRED;
STICKLINE(K1<=D1,D1,K1,1,0),COLORGREEN;
RSV2:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
FASTK:=SMA(RSV2,3,1);
K:SMA(FASTK,2,1),COLORYELLOW;
D:=SMA(K,5,1),COLOR006CB5;
跟庄多头:IF(K>=D,D,DRAWNULL),NODRAW,COLORYELLOW;
跟庄空头:IF(K<=D,D,DRAWNULL),NODRAW,COLORWHITE;
STICKLINE(K>=D,D,K,1,0),COLORYELLOW;
STICKLINE(K<=D,D,K,1,0),COLORWHITE;
短进:DRAWICON(CROSS(MACD1,150),100,1);
DRAWTEXT(色彩峰<3.5,-30,'■'),COLORCYAN;
DRAWTEXT(CROSS(色彩峰,90),98,'■'),COLORMAGENTA;
DRAWICON(CROSS(MACD1,100),MACD1,6);
WWW70822COM:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
DRAWTEXT(FILTER(色彩峰<3.5,8),-25,'摘星'),COLORCYAN;
DRAWTEXT(FILTER(MACD1<-0.5 AND MACD1>REF(MACD1,1) AND 色彩峰<10,5),-5,'出航'),COLORYELLOW;
DRAWICON(MACD1>0 AND MACD1>REF(MACD1,1)*2 AND REF(MACD1,1)>0,MACD1,9);
DRAWTEXT(FILTER(MACD<0 AND MACD>REF(MACD,1) AND 色彩峰<20,5) AND T3,-1,'▲'),COLORYELLOW;