通达信量价时空附图指标 贴图 源码

2016-10-16 13:41:00来源:本站整理浏览:1115

AA:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));
BB:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));
三平底:=AA AND CLOSE>REF(OPEN,2);
三平顶:=BB AND CLOSE<REF(CLOSE,2);
C_D1:=(3*C+2*O+L+H)/7;
WMA5:=(5*C_D1+4*REF(C_D1 ,1 )+3*REF(C_D1 ,2 )+2*REF(C_D1 ,3 )+REF(C_D1 ,4 ))/15 COLORYELLOW;
C_D2:=REVERSE(C_D1)+2*WMA5 COLORGREEN;
WMA5金叉:=CROSS(WMA5,C_D2*0.997);
WMA5死叉:=CROSS(C_D2,WMA5*0.997);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
主力:=EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,COLOR0000FF;
散户:=EMA((CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,COLOR00FF00;
DRAWICON(CROSS(主力,散户) AND 主力<-10 AND 散户>REF(散户,1) OR (CROSS(主力,散户) AND 散户<-35),J20%价,1);
DRAWTEXT(CROSS(主力,散户) AND 主力<-10 AND (WMA5金叉 OR 金底 OR 三平底),J20%价,8);
DRAWTEXT(CROSS(RSI1,25) AND (WMA5金叉 OR 金底 OR 三平底),J0%价,9);
DRAWTEXT(CROSS(85,RSI1),股价反推J值,10);
{买卖力度柱}
STICKLINE(力度柱>0,J50%价,力度柱+J50%价,0,0),COLOR0000CC;
STICKLINE(力度柱<0,J50%价,力度柱+J50%价,0,0),COLOR009940;
STICKLINE(1,J50%价,J50%价,80,-1),COLOR606060;
{--价量乃为指标之母,亦即先有股价、成交量,始有指标的产生,成反向推算KDJ价--};



 

上一页  [1] [2] 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式