双轨通道 通达信主图指标 源码 贴图
2020-02-13 09:52:00来源:本站整理浏览:819
双轨通道 通达信主图指标 源码 贴图
{趋势买卖}
上上轨A:=MEMA((3*C+H+O+L)/6,30)*1.1;
下下轨A:=MEMA((3*C+H+O+L)/6,30)*0.9;
DRAWBAND(上上轨A,RGB(30,50,80),下下轨A,0);
DRAWKLINE(H,O,L,C);
上上轨:EMA((3*C+H+O+L)/6,30)*1.09,COLORGREEN,NODRAW;
中上轨:EMA(2*EMA(EMA(H,34),34)-EMA(EMA(L,34),34),5),COLORBLUE,LINETHICK2;
中下轨:EMA(2*EMA(EMA(L,21),21)-EMA(EMA(H,21),21),5),COLORYELLOW,LINETHICK2;
下下轨:EMA((3*C+H+O+L)/6,30)*0.89,COLORMAGENTA,NODRAW;
DDTD:=DMA(C,ABS(C-MA(C,14))/MA(C,14));
上布:EMA(DDTD,30)*1.11,COLORGREEN;
下布:EMA(DDTD,30)*0.91,COLORMAGENTA;
{WWW.GPXIAZAI.COM}
STICKLINE(中下轨>LOW AND 中下轨<HIGH,中下轨,MIN(MIN(OPEN,CLOSE),中下轨),3,0),COLORYELLOW;
STICKLINE(中下轨>MIN(C,O) AND 中下轨<MAX(C,O),中下轨,MIN(OPEN,CLOSE),3,0),COLORYELLOW;
STICKLINE(中下轨>HIGH,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(中下轨>HIGH,HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(上上轨>LOW AND 上上轨<HIGH,上上轨,MAX(上上轨,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(上上轨>MIN(C,O) AND 上上轨<MAX(C,O),上上轨,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(上上轨>LOW AND 上上轨<HIGH,上上轨,HIGH,0,0),COLORGREEN;
STICKLINE(上上轨<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(下下轨>LOW AND 下下轨<HIGH,下下轨,MIN(MIN(OPEN,CLOSE),下下轨),3,0),COLORMAGENTA;
STICKLINE(下下轨>MIN(C,O) AND 下下轨<MAX(C,O),下下轨,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(下下轨>LOW AND 下下轨<HIGH,下下轨,LOW,0,0),COLORMAGENTA;
STICKLINE(下下轨>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
{逃顶}
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
逃命:=CROSS(80,RSI5);
DRAWICON(逃命,H*1.02,15);
TJ1:=REF("CCI.CCI",1)>90 AND "CCI.CCI"<REF("CCI.CCI",1);
TJ2:=REF("KDJ.J"(9,3,3),1)>90 AND "KDJ.J"(9,3,3)<REF( "KDJ.J"(9,3,3),1);
TJ3:=REF("RSI.RSI1",1)>70 AND "RSI.RSI1"<REF("RSI.RSI1",1);
TJ4:=COUNT(TJ1,5) AND COUNT(TJ2,5) AND COUNT(TJ3,5);
大顶:=CROSS(TJ4,0.5);
DRAWICON(大顶,H*1.05,2);
TJ5:=REF("CCI.CCI",1)<-100 AND "CCI.CCI">REF("CCI.CCI",1);
TJ6:=REF("KDJ.J"(9,3,3),1)<20 AND "KDJ.J"(9,3,3)>REF( "KDJ.J"(9,3,3),1);
TJ7:=REF("RSI.RSI1",1)<20 AND "RSI.RSI1">REF("RSI.RSI1",1);
TJ8:=COUNT(TJ5,5) AND COUNT(TJ6,5) AND COUNT(TJ7,5);
大底:=CROSS(TJ8,0.5);
DRAWICON(大底,L*0.95,23);
- 上一篇公式:慧眼识金 通达信主图指标 源码 贴图
- 下一篇公式:抄底爆点 通达信副图/选股指标 源码 贴图