通达信正宗红码技术之黑马通道主图指标公式
2020/6/6 18:51:49
STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR000055;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000088;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR0000AA;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000EE;
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLOR666600;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555500;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR888800;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORAAAA00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBB00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORCCCC00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOREEEE00;
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555555;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
SS1:=1121010;
SS3:=DATE<SS1;
AAA1:=(C-REF(C,1))/REF(C,1)>=0.058 AND (C-REF(C,1))/REF(C,1)<0.095 AND SS3;
AA2:=(C-REF(C,1))/REF(C,1)>=0.098 AND SS3;
STICKLINE(AAA1,O,C,0,1 ),COLOR9B37FF;
STICKLINE(AAA1,OPEN,CLOSE,3,0 ),COLOR6300C6;
STICKLINE(AAA1,OPEN,CLOSE,2.7,0 ),COLOR6D00DB;
STICKLINE(AAA1,OPEN,CLOSE,2.1,0 ),COLOR7800F0;
STICKLINE(AAA1,OPEN,CLOSE,1.5,0 ),COLOR8000FF;
STICKLINE(AAA1,OPEN,CLOSE,0.9,0 ),COLOR8F20FF;
STICKLINE(AAA1,OPEN,CLOSE,0.3,0 ),COLOR9B37FF;
{DRAWTEXT(AAA1,L*0.96,'大阳'),COLOR9B37FF;}
STICKLINE(AA2,C,O,3,0 ),COLOR00AAFF;
STICKLINE(AA2,C,O,2.1,0 ),COLOR00BBFF;
STICKLINE(AA2,C,O,1.5,0 ),COLOR00CCFF;
STICKLINE(AA2,C,O,1,0 ),COLOR00DDFF;
STICKLINE(AA2,C,O,0.6,0 ),COLOR00EEFF;
STICKLINE(AA2,C,O,0.2,0 ),COLOR00FFFF;
{DRAWTEXT(AA2,L*0.98,'涨停'),COLOR00DDDD;
DRAWICON( AA2,L*0.98,1);}
AA1:="AQWE.AQWE#DAY";
BB1:="SQWE.SQWE#DAY";
VAR1:=(C+H+O+L)/4;
SJXZ:=IF(DATE<1931128,1,0);
DRAWTEXT_FIX(1=1,0.7,0,0,''),COLORWHITE;
通道上轨:AA1*SJXZ,COLORYELLOW,LINETHICK2;
通道下轨:BB1*SJXZ,COLORRED,LINETHICK2;
风险:=100*(L-BB1)/BB1,NODRAW;
幅度:=100*(AA1-BB1)/BB1,NODRAW;
STICKLINE(AA1>LOW AND AA1<HIGH,AA1,MAX(AA1,MAX(OPEN,CLOSE)),3,0),COLORYELLOW;
STICKLINE(AA1>LOW AND AA1<HIGH,AA1,HIGH,0,0),COLORYELLOW;
STICKLINE(AA1<LOW,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(AA1<LOW,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(AA1<LOW,HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(BB1>LOW AND BB1<HIGH,BB1,MIN(MIN(OPEN,CLOSE),BB1),3,0),COLORRED;
STICKLINE(BB1>MIN(C,O) AND BB1<MAX(C,O),BB1,MIN(OPEN,CLOSE),3,0),COLORRED;
STICKLINE(BB1>HIGH,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(BB1>HIGH,HIGH,LOW,0,0),COLORRED;
{VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
动能趋势线:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4);
DRAWTEXT(CROSS(动能趋势线,70)AND C>通道上轨,HIGH*1.02,'←卖出'),COLORYELLOW;}
{RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND C<通道下轨,LOW,'↖买入'),COLORRED;}
DRAWTEXT_FIX(1=1,0.7,0.05,0,''),COLORRED;
DRAWTEXT_FIX(1=1,0.7,0.1,0,''),COLORWHITE;
投股 票网 www.tou 18.cn
股市公式下载推荐