以下是通达信六线通道主图指标源码

通达信六线通道主图指标源码

简单说明:主图中的 “ 逃命 ”提示有未来,不过你可以参考使用,如果在收市之前不消失,坚决卖出。要是害怕未来的,自己在源码里直接删掉就可以了。

此图主要是以下两点,1,风险线和必卖线,当股价接近风险线时,一定要注意,十有八九要回调,突破风险线接近或者到达必卖线时,果断卖出。
2,安全线和强弱线,股价运行在安全线之上,或者是回调不破安全线的,可以操作,也就是所谓的抄底,但是此时股性不强。当股价站上强弱线是,顾名思义,强弱分界线,这时候就是一段拉升的开始。

最后,祝大家投资顺利

估:=(2*CLOSE+LOW+HIGH)/4;
界:=SLOPE(CLOSE,21)*20+CLOSE;
文:=EMA(估,40)*0.85;

卖线:=EMA(估,55)*1.3;
捞钱线:=EMA(估,55);
保本线:=(捞钱线+文)/2;
STICKLINE(C>=保本线 AND REF(C,1)<保本线 AND REF(C,2)>保本线,O,C,3,0),COLORRED;
STICKLINE(C>=保本线 AND REF(C,1)<保本线 AND REF(C,2)>保本线,L,H,0.2,0),COLORRED;
STICKLINE(FILTER(C>=捞钱线 AND L<捞钱线,2),O,C,3,0),COLORYELLOW;
STICKLINE(FILTER(C>=捞钱线 AND L<捞钱线,2),L,H,0.2,0),COLORYELLOW;
STICKLINE(FILTER(CROSS(卖线,CLOSE),3),O,C,3,0),COLORGREEN;
STICKLINE(FILTER(CROSS(卖线,CLOSE),3),L,H,0.2,0),COLORGREEN;
DRAWICON(C>=保本线 AND REF(C,1)<保本线 AND REF(C,2)>保本线,L*0.96,9);
DRAWICON(FILTER(C>=捞钱线 AND L<捞钱线,2),L*0.98,1);
DRAWICON(FILTER(CROSS(卖线,CLOSE),3),H*1.03,2);

V10日涨跌%: (C-REF(CLOSE,10))/REF(CLOSE,10)*100,COLORYELLOW,NODRAW;

VAR1:=IF(DATE>=10211201,0,1);
VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
VAR3:=EMA(CLOSE,3);
VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;
VAR5:=VAR2-VAR3;
风险线:EMA(VAR4,45)*1.15,COLORFFFF00;
必卖线:EMA(VAR4,55)*1.3,POINTDOT,LINETHICK4;
底线:EMA(VAR4,40)*0.85,COLORFF00FF;
铁底线:EMA(VAR4,88)*0.7,POINTDOT,LINETHICK4,COLORGREEN;
成本线:EMA(VAR4,55),COLORYELLOW;

价值中枢: (成本线+底线)/2,COLORWHITE;
DRAWTEXT(ISLASTBAR,风险线,’风险’),COLORFFFF00;
DRAWTEXT(ISLASTBAR,必卖线,’必卖’),COLORYELLOW;
DRAWTEXT(ISLASTBAR,底线,’安全’),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,铁底线,’铁底’),COLORYELLOW;
DRAWTEXT(ISLASTBAR,成本线,’拉升’),COLORRED;
DRAWTEXT(ISLASTBAR,价值中枢,’强弱’),COLORWHITE;
AAPP:MA(MA(CLOSE,3),1),LINETHICK3,COLORGREEN;
IF(AAPP>=REF(AAPP,1),AAPP,DRAWNULL),COLORFF00FF,LINETHICK3;

XXS:=MA(HIGH,5)*(1+5/100);
DRAWTEXT(CROSS(XXS,C),H*1.02,’开盘逃’),COLORYELLOW;

LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE – LC),0),3,1) / SMA(ABS((CLOSE – LC)),3,1)) * 100);
FF:=EMA(CLOSE,2);MA15:=EMA(CLOSE,26);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.999),’中继’),COLORA6E500;
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),’逃顶‘),COLOR1880FF;
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;

XXS1:=MA(HIGH,5)*(1+5/100);

DDDD:=CROSS(C,XXS1);
DRAWTEXT(DDDD,HIGH*1.02,’明走’),COLORYELLOW;

多头线:=EMA(C,1.5),COLOR0000CC;
空头线:=EMA(C,5),COLORMAGENTA;
均衡线:=EMA(空头线,5),COLORGREEN;
VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
ZAI:=FILTER(VARF1 AND VARF2,2);
DRAWTEXT(ZAI,均衡线*0.99,’↖主力拉升’),COLOR00FF00;

MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120),COLORLIBLUE;
MA250:=MA(CLOSE,250),COLORBLUE;

DRAWTEXT(CROSS(MA20,MA30),L,’牛相关注20′),COLORMAGENTA;
DRAWTEXT(CROSS(MA30,MA60),L,’初生牛犊30′),COLORGREEN;
DRAWTEXT(CROSS(MA60,MA120),L,’霸占大牛60′),COLORBLUE;
DRAWTEXT(CROSS(MA120,MA250),L,’牛气冲天120′),COLORYELLOW;

买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,O,C,1.5,0),COLORYELLOW,LINETHICK2;

M1:=MA(CLOSE,13);

A:=MA(C,5);

DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND “CCI.CCI”>REF(“CCI.CCI”,1) AND CROSS(“CCI.CCI”,-100),L*0.99,’⊕底’);
DRAWTEXT(CROSS(A,M1),M1,’◣周加’),COLORWHITE;
DRAWTEXT(A>=REF(A,1) AND REF(A,1)<REF(A,2),A,’◣周买’),COLORYELLOW;{周线上买入,中期持有,月线上更好};

{PEAKBARS未来判断明日顶部,收市前指标不消失请逃顶}
VAR3A:=PEAKBARS(3,15,1)<10;
VAR5A:=IF(VAR3A=1,2,0);
顶:= IF(VAR5A=2,2,0);
顶A:=IF(顶>REF(顶,1),50,0);
DRAWTEXT(顶A=50,H * 1.02,’逃命’),COLOR00FF00;
T:=BARSLAST(L>REF(H,1));
E:=COUNT(L<REF(H,T+1),T)<2;
DRAWTEXT(L<REF(H,T+1 ) AND E,L*0.99,’缺口回补’),COLOR0099FF;

Y:=CLOSE/REF(CLOSE,1)>1.07;
X:=VOL>MA(VOL,5);
A1:=Y AND X;
DRAWTEXT(A1,L*0.999,’攻涨停‘),COLORMAGENTA;
Z:=CLOSE/REF(CLOSE,1)<0.93;
W:=VOL<MA(VOL,5);
A2:=Z AND W;
DRAWTEXT(A2,H*1.01,’小心跌停’),COLORGREEN;

B36:=MA(CLOSE,3) – MA(CLOSE,6);
B612:=MA(CLOSE,6) – MA(CLOSE,12);
J:=((B36)/(CLOSE))*(10);
J1:=((B612)/(CLOSE))*(10);
DRAWTEXT((J < (-0.2)) AND (J1 < (-0.2)) AND CROSS(J,J1),(LOW)*(0.999),’大牛’),COLORRED;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。