通达信我的主图均线源码附图

2017-03-19 12:59:00来源:本站整理浏览:439

C短线:=IF(((MA(((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10)),2)*3+((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10))*13)/16)>13,MA(((MA(((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10)),2)*3+((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10))*13)/16),2),((MA(((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10)),2)*3+((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100)-LLV((SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100),10))*13)/16));

短线:=(L短线+H短线+C短线)/3 ;

短买:=(L-REF(C,10))-MA((L-REF(C,10)),5) ;

J:= 3*SMA(((C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1)-2*SMA(SMA(((C-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1),3,1) ;

LJ:=3*SMA(((L-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1)-2*SMA(SMA(((L-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100),3,1),3,1) ;

CD:=短买<0 AND 抄底<=-2 AND LJ<2 AND ((L短线=0 AND L抄底<=-2 ) AND (H短线<0.5 AND H抄底<=-1)) AND (100*(L-LLV(L,3))/(HHV(L,3)-LLV(L,3))=0 AND 100*(L-LLV(L,5))/(HHV(L,5)-LLV(L,5))=0 );

DD:=短线<4.2 AND (L短线<1 OR H短线<1 OR C短线<1) AND L短线<2 AND 抄底<-0.9 AND L抄底<-1.99 AND H抄底<7.2 AND 趋界<-1.5 AND J<45;

可以抄底:=DD AND CD;

STICKLINE(可以抄底,H,L,0,0),COLORYELLOW;

STICKLINE(可以抄底,O,C,2,0),COLORYELLOW;

VAR1T:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);

VAR1F:=SMA(CROSS(赚钱,0),3,1);

VAR2F:=SMA(VAR1F,3,1);

VAR3F:=SMA(VAR2F,3,1);

DRAWICON(CROSS(赚钱,0) OR CROSS(VAR1T,8),L,1);

DRAWICON(CROSS(VAR2F,VAR3F) AND (VAR2F<40),L,41);

{角买}

MTM:=C-REF(C,1);

DXD:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

买:=LLV(DXD,2)=LLV(DXD,7) AND COUNT(DXD<0,2) AND CROSS(DXD,MA(DXD,2));

STICKLINE(FILTER(买=1,5),H,L,0,0),COLORMAGENTA;

STICKLINE(FILTER(买=1,5),C,O,2.5,0),COLORMAGENTA;

{白柱子买点}

HLCO:=(C+H+L+O)/4;

MAHC:=MA((CLOSE*2+H)/3,5),COLOR0000FF;

MAHO:=MA((O*2+H)/3,5),COLOR00FF00;

MALO:=MA((O+L*2)/3,5),COLOR00FFFF;

CO1:=O+(C-O)/2;

STICKLINE(MAHC<MAHO AND (CROSS(C,MALO) OR CROSS(HLCO,MALO)),CO1,MIN(C,O),1.5,0),COLORWHITE;

{暴涨}

ZF:=(C/REF(C,1)-1)*100;

AAAB:=SUM(ZF,3);

DRAWICON(COUNT(AAAB<-6,3)=2 AND CROSS(AAAB,-6),L-0.1,11);

{涨10%}

VAR01:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);

短底:=EMA(VAR01,5);

上1:=(HHV(短底,60) * 0.92);

阻挡线:=(SMA(LOW,21,2) * 0.96);

DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA(C,20) - REF(MA(C,20),1)) > 0)) AND (OPEN <= 上1)) AND (HIGH > 上1))

AND (CLOSE > 阻挡线)),5),LOW,'涨10%'),COLORRED;

{主图显示}

所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(' [地域] - ',DYBLOCK),STRCAT(' [概念] - ',GNBLOCK)));

DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,所属板块),COLORYELLOW;

{DRAWTEXT_FIX(1,0.005,0.13,0,'MACD 零 上 死 叉 期 间 阳 线 抛 , MACD 零 上 金 叉 期 间 阴 线 买') COLORMAGENTA;

DRAWTEXT_FIX(1,0.005,0.2,0,'下 降 趋 势 中 不 要 相 信 均 线 有 支 撑 , 跌 破 30 均线 离 场 就 对 了') COLORCYAN;};



 


 

DRAWGBK(C>0,RGB(20,10,80),RGB(10,1,5),1,0,1);

上一页  [1] [2] 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式