同花顺薛斯通道主图公式
-
相关简介:同花顺薛斯通道主图公式 源码 AAA:=MA((2*CLOSE+HIGH+LOW)/4,5); 通道1:AAA*M1/100; 通道2:AAA*(200-M1)/100; CCC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DDD:=DMA(CLOSE,CCC); 通道3:(1+M2/100)*DDD; 通道4:(1-M2/100)*DDD; 涨:IF(MA(BBI,1)REF(MA(BBI,1),1),MA(BBI,1),DRAW
-
文章来源:股海网作者:股海网发布时间:2015-12-10浏览次数:
同花顺薛斯通道主图公式
源码
AAA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:AAA*M1/100;
通道2:AAA*(200-M1)/100;
CCC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DDD:=DMA(CLOSE,CCC);
通道3:(1+M2/100)*DDD;
通道4:(1-M2/100)*DDD;
涨:IF(MA(BBI,1)>REF(MA(BBI,1),1),MA(BBI,1),DRAWNULL),colorred,LINETHICK2;
平:IF(MA(BBI,1)=REF(MA(BBI,1),1),MA(BBI,1),DRAWNULL),COLOR00FFFF,LINETHICK3;
跌:IF(MA(BBI,1)<REF(MA(BBI,1),1),MA(BBI,1),DRAWNULL),colorgreen,LINETHICK2;
K:=BARSLAST(CURRBARSCOUNT=N);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));
KJ:=GD-DD;
GD4:=IF(CURRBARSCOUNT<=N/2,GD,DRAWNULL);
平衡:IF(CURRBARSCOUNT<=N,DD+KJ/2,DRAWNULL),COLOR00FFFF,NODRAW;
压力:IF(CURRBARSCOUNT<=N,GD-KJ*0.191,DRAWNULL),COLORFF00FF,NODRAW;
支撑:IF(CURRBARSCOUNT<=N,DD+KJ*0.191,DRAWNULL),COLOR00FF00,NODRAW;
高:IF(CURRBARSCOUNT<=N,GD,DRAWNULL),COLOR00FFFF,POINTDOT;
低:IF(CURRBARSCOUNT<=N,DD,DRAWNULL),COLOR00FF00,POINTDOT;
低涨:IF(CURRBARSCOUNT<=N, (C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天数:BARSLAST(L=DD),colorcyan,NODRAW;
STICKLINE(CURRBARSCOUNT=1,GD,DD,0,-1),colorgreen;
STICKLINE(CURRBARSCOUNT<=N,平衡,平衡,3,-1),colorwhite;
STICKLINE(CURRBARSCOUNT<=N/2,压力,压力,3,-1),colorred;
STICKLINE(CURRBARSCOUNT<=N/2,支撑,支撑,3,-1),colorgreen;
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
TYX5:=EMA((C+L+O+H)/4,21);
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),coloryellow;
STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,1,0),colorwhite;
STICKLINE(REF(COUNT(C<TYX3,5)=5,1) AND C>TYX3 AND C>O,C,O,1,0),COLOR00CCFF;
|