通达信自用主图源码

 2023-12-23 22:09:23    通达信指标网  

参数M..1.300.5,,,,M1..1.300.63...M2..1.1000..240

C18:SMA(COST(18),5,1),COLORWHITE,POINTDOT;

C5:SMA(COST(50),5,1),COLORRED,POINTDOT;

C8:SMA(COST(80),5,1),COLORGREEN,POINTDOT;

QWX1:=HHV(CLOSE,30);

QWX2:=LLV(CLOSE,30);

QWX3:=CONST((QWX1+QWX2)/2);

QWX4:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);

QWX5:=CONST((1-7/100)*(DMA(CLOSE,QWX4)));

QWX6:=CONST((1+7/100)*(DMA(CLOSE,QWX4)));

{KDJ}

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

KX:=SMA(RSV,3,1);

DX:=SMA(KX,3,1);

JX:=3*KX-2*DX;

M5:MA(CLOSE,M),COLORWHITE,LINETHICK1;

M63:MA(CLOSE,M1),COLORGREEN,LINETHICK3;

M240:MA(CLOSE,M2),COLORLIMAGENTA,LINETHICK3;

VAR1:=IF(CLOSE>OPEN,CLOSE,OPEN);

VAR2:=MEMA(CLOSE,5);

VAR3:=ATAN((VAR2/REF(VAR2,1)-1)*100);

VAR4:=IF(VAR3>0,VAR3,VAR3);

VAR5:=(CLOSE/REF(CLOSE,1)-1)*100;

VAR6:=VAR5<1.5 AND VAR5>-1.5;

支撑:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX5,DRAWNULL),DRAWNULL),COLORCYAN;

阻力:IF(PERIOD=5,IF(BARSLAST(CURRBARSCOUNT=5),QWX6,DRAWNULL),DRAWNULL),COLORYELLOW;

今日之升★:LAST(VAR6,4,1) AND VAR5>2 AND VOL>REF(VOL,1),NODRAW,COLORYELLOW;

DRAWTEXT(今日之升★,L/1.01,'★'),COLORYELLOW;

{柱型显示}

STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;

STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;

{蓝}

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;

STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;

{红}

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;

{绿}

STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,3,0),COLOR009900;

STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;

STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;

STICKLINE(CROSS(M5,EMA(C,3)),VAR1,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;

{灰}

STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;

STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;

STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;

STICKLINE(CROSS(EMA(C,3),M5),OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;

STICKLINE(CROSS(JX,DX),OPEN,CLOSE,0.5,0),COLORYELLOW;

STICKLINE(CROSS(DX,JX),OPEN,CLOSE,0.5,0),COLOR000099;

雪狼阻力:PEAK(CLOSE,10,1)*0.98,COLORWHITE,LINETHICK1;

雪狼支撑:TROUGH(CLOSE,10,1)*1.02,COLORYELLOW,LINETHICK1;

重心:=(C+0.618*REF(C,1)+0.382*REF(C,1)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;

【操盘线】:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK4;

【黄金线】:IF(重心>=【操盘线】,【操盘线】,DRAWNULL),COLORRED,LINETHICK2;

【空仓线】:IF(重心<【操盘线】,【操盘线】,DRAWNULL),COLORCYAN,LINETHICK2;

DRAWTEXT(ISLASTBAR,【操盘线】,'【操盘线】'),COLORRED;

{引:EMA(CLOSE,2),LINETHICK1,COLORMAGENTA;

探:MA(CLOSE,5),LINETHICK1;};

变:EMA(CLOSE,5),LINETHICK3,COLORYELLOW;

金:IF(变>REF(变,1),变,DRAWNULL),COLORRED,LINETHICK1;

空:IF(变<REF(变,1),变,DRAWNULL),COLORGREEN,LINETHICK1;

DRAWTEXT(ISLASTBAR,变,'【雷达线】'),COLORRED;

  •  标签:  

原文链接:https://www.tdxzb.com/?id=2098

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服