通达信三个通道寻找买卖点主图源码
潜伏哥】仅仅有个通达信的【真实通道】图没有源码.我看这个图即漂亮有实用.无奈【潜伏哥】没给源码.我不好勉强人家.大家需要我就再来个通达信的一定和【潜伏哥】不一样.咱们各自为战.好不好.
源码是基于薛氏通道形成的.股价上下突破就是买卖点.相当直观.可靠.我加一根趋势线.配合通道使得买卖点更能清晰可见.在这我还得谢谢【潜伏哥】发表怎么漂亮图形.给我的启发.如有不妥.和需要改正还望多多指正.再次谢谢【潜伏哥】.这个就是【潜伏哥】的原图.我i就是照猫画虎而已
这是通达信的源码.其他的大智慧一样就不必重复说明了
{内通道}
重心: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+UPL*0.2,RGB(180,0,100),UP+UPL*0.4,RGB(180,0,100));
DRAWBAND(UP+UPL*0.4,RGB(150,0,150),UP+UPL*0.6,RGB(150,0,150));
DRAWBAND(UP+UPL*0.6,RGB(100,0,180),UP+UPL*0.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+UPK*0.2,RGB(100,0,100),UPPERS+UPK*0.4,RGB(100,0,100));
DRAWBAND(UPPERS+UPK*0.4,RGB(150,0,155),UPPERS+UPK*0.6,RGB(150,0,155));
DRAWBAND(UPPERS+UPK*0.6,RGB(200,0,100),UPPERS+UPK*0.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-UPD*0.2,RGB(0,100,150),LOWERS-UPD*0.4,RGB(0,100,150));
DRAWBAND(LOWERS-UPD*0.4,RGB(0,150,120),LOWERS-UPD*0.6,RGB(0,150,120));
DRAWBAND(LOWERS-UPD*0.6,RGB(0,180,80),LOWERS-UPD*0.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-DPL*0.2,RGB(0,160,50),DN-DPL*0.4,RGB(0,160,50));
DRAWBAND(DN-DPL*0.4,RGB(0,140,80),DN-DPL*0.6,RGB(0,140,80));
DRAWBAND(DN-DPL*0.6,RGB(0,100,100),DN-DPL*0.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;