【通达信免费源码】真实通道指标主图 波段 短线 买卖点 操盘控盘
重心:WMA((2*C+H+L)/4,2),COLOR00FFFF,LINETHICK0;
UPPERS: 重心*(1+2.382/100),COLOR990099;
DRAWNUMBER(CURRBARSCOUNT=1,UPPERS, ( CONST(UPPERS))),COLOR0077FF;
LOWERS: 重心*(1-2.382/100),COLORFF0000;
DRAWNUMBER(CURRBARSCOUNT=1,LOWERS, ( CONST(LOWERS))),COLOR00FFFF;
{中通道}
VAR2:=重心*VOL;
VAR3:=(EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,8)/EMA(VOL,8)+EMA(VAR2,13)/EMA(VOL,13)+EMA(VAR2,21)/EMA(VOL,21))/4;
UP:=VAR3*1.0809;
DN:=VAR3*0.9191;
{外通道}
VAR4:=EMA(重心,19);
LUP:=EMA(VAR4*1.119,3);
LDN:=EMA(VAR4*0.881,3);
UPL:=LUP-UP;
DRAWBAND(UP,RGB(200,0,80),UP+UPL*0.2,RGB(200,0,80));
DRAWBAND(UP+UPL0.2,RGB(180,0,100),UP+UPL0.4,RGB(180,0,100));
DRAWBAND(UP+UPL0.4,RGB(150,0,150),UP+UPL0.6,RGB(150,0,150));
DRAWBAND(UP+UPL0.6,RGB(100,0,180),UP+UPL0.8,RGB(100,0,180));
DRAWBAND(UP+UPL*0.8,RGB(80,0,155),LUP,RGB(80,0,155));
UPK:=UP-UPPERS;
DRAWBAND(UPPERS,RGB(80,0,80),UPPERS+UPK*0.2,RGB(80,0,80));
DRAWBAND(UPPERS+UPK0.2,RGB(100,0,100),UPPERS+UPK0.4,RGB(100,0,100));
DRAWBAND(UPPERS+UPK0.4,RGB(150,0,155),UPPERS+UPK0.6,RGB(150,0,155));
DRAWBAND(UPPERS+UPK0.6,RGB(200,0,100),UPPERS+UPK0.8,RGB(200,0,100));
DRAWBAND(UPPERS+UPK*0.8,RGB(255,0,55),UP,RGB(255,0,55));
DRAWBAND(UPPERS,RGB(20,20,50),LOWERS,RGB(20,20,50));
UPD:=LOWERS-DN;
DRAWBAND(LOWERS,RGB(0,80,80),LOWERS-UPD*0.2,RGB(0,80,80));
DRAWBAND(LOWERS-UPD0.2,RGB(0,100,150),LOWERS-UPD0.4,RGB(0,100,150));
DRAWBAND(LOWERS-UPD0.4,RGB(0,150,120),LOWERS-UPD0.6,RGB(0,150,120));
DRAWBAND(LOWERS-UPD0.6,RGB(0,180,80),LOWERS-UPD0.8,RGB(0,180,80));
DRAWBAND(LOWERS-UPD*0.8,RGB(0,220,55),DN,RGB(0,220,55));
DPL:=DN-LDN;
DRAWBAND(DN,RGB(0,180,0),DN-DPL*0.2,RGB(0,180,0));
DRAWBAND(DN-DPL0.2,RGB(0,160,50),DN-DPL0.4,RGB(0,160,50));
DRAWBAND(DN-DPL0.4,RGB(0,140,80),DN-DPL0.6,RGB(0,140,80));
DRAWBAND(DN-DPL0.6,RGB(0,100,100),DN-DPL0.8,RGB(0,100,100));
DRAWBAND(DN-DPL*0.8,RGB(0,80,55),LDN,RGB(0,80,55));
STICKLINE(CLOSE>= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000066;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,2.6,0 ),COLOR000099;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,2,0 ),COLOR0000CC;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,1.2,0 ),COLOR0000FF;
STICKLINE(CLOSE>= REF(CLOSE,1) ,OPEN,CLOSE,0.4,0 ),COLORCC66FF;
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLORCC0000;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.6,0 ),COLORFF4400;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2,0 ),COLORFF8800;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.2,0 ),COLORFFCC00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.4,0 ),COLORCYAN;
{红股.绿币的趋势线}
MA5:WMA(重心,5),COLOR00FF00,DOTLINE;
IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLOR0077FF,LINETHICK3;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!