通达信金钻通道系列主图指标 源码 贴图

2017-07-08 13:24:00来源:本站整理浏览:758

 金钻通道系列主图

{金钻通道主图A}
 

趋势线:MA(CLOSE,20),COLORYELLOW,LINETHICK2;

顶:趋势线+2*STD(CLOSE,20),COLORGREEN,LINETHICK2;

底:趋势线-2*STD(CLOSE,20),COLORCYAN,LINETHICK2;

STICKLINE(C>O,C,O,4,0),COLOR000077;

STICKLINE(C>O,C,O,3,0),COLOR000088;

STICKLINE(C>O,C,O,2,0),COLOR000099;

STICKLINE(C>O,C,O,1,0),COLOR0000BB;

{绿}

STICKLINE(C<O,C,O,4,0),COLOR007700;

STICKLINE(C<O,C,O,3,0),COLOR008800;

STICKLINE(C<O,C,O,2,0),COLOR009900;

STICKLINE(C<O,C,O,1,0),COLOR00BB00;

MA5:EMA(CLOSE,5),COLORMAGENTA,LINETHICK2;

MA10:EMA(CLOSE,10),LINETHICK2;

A:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORRED;

B:IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORCYAN;

TYP:=(HIGH+LOW+CLOSE)/3;

CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));

DRAWTEXT(CROSS(CCI,-210) AND CCI>REF(CCI,1),L*0.993,'★平空'),COLORWHITE;

DRAWTEXT(CROSS(220,CCI) AND CCI<REF(CCI,1),H*1.007,'★平多做空'),COLORYELLOW;

DRAWTEXT(CROSS(CCI,50) AND CCI>REF(CCI,1),L*0.993,'★加多'),COLORYELLOW;

DRAWTEXT(CROSS(-150,CCI) AND CCI<REF(CCI,1),H*1.007,'★加空'),COLORWHITE;

{公式名称: 金钻通道涨停

无参数

公式类型: 条件选股公式-其他类型

公式版本: 0

参数精灵:无

用法注释:无

公式源码:}

X_1:=IF(BARSCOUNT(CLOSE)>7,100*(MA(CLOSE,7)/LLV(MA(CLOSE,7),7)-1),1);

X_2:=IF(X_1>0.35,6,65);

X_3:=(-(100*(HHV(HIGH,X_2)-CLOSE)))/(HHV(HIGH,X_2)-LLV(LOW,X_2));

X_4:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;

X_5:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;

X_6:=(HIGH+LOW)/2;

X_7:=EMA(X_6,3);

X_8:=IF(CLOSE>X_7,VOL,0);

X_9:=IF(CLOSE<X_7,VOL,0);

X_10:=MA(SUM(X_8-X_9,22),3);

X_11:=21*X_10+20*REF(X_10,1)+19*REF(X_10,2)+18*REF(X_10,3)+17*REF(X_10,4)+16*REF(X_10,5)+15*REF(X_10,6)+14*REF(X_10,7)+13*REF(X_10,8)+12*REF(X_10,9)+11*REF(X_10,10)+10*REF(X_10,11)+9*REF(X_10,12)+8*REF(X_10,13)+7*REF(X_10,14)+6*REF(X_10,15)+5*REF(X_10,16)+4*REF(X_10,17)+3*REF(X_10,18)+2*REF(X_10,19)+REF(X_10,20);

X_12:=X_11/(21+1)/21*2;

X_13:=X_12;

X_14:=X_10-X_13;

X_15:=SMA(X_4,3,1);

X_16:=SMA(X_15,3,1);

X_17:=EMA(SMA(X_5,3,1),2);

X_18:=SMA(X_17,3,1);

X_19:=CROSS(X_3,(-2)) AND CROSS(X_15,X_16) AND CROSS(X_17,X_18);

X_20:=EMA(CLOSE,2);

X_21:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);

X_22:=CROSS(X_20,X_21);

X_23:=CROSS(X_21,X_20);

X_24:=REF(HIGH,4)=HHV(HIGH,2*4+1);

X_25:=FILTER(X_24,3);

X_26:=BACKSET(X_25,3+1);

X_27:=FILTER(X_26,3);

X_28:=REF(LOW,3)=LLV(LOW,2*3+1);

X_29:=FILTER(X_28,3);

X_30:=BACKSET(X_29,3+1);

X_31:=FILTER(X_30,3);

X_32:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;

X_33:=(HIGH+LOW)/2;

X_34:=X_27 AND NOT(X_31 AND X_32>=X_33) OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;

X_35:=X_27 AND NOT(X_31 AND X_32>=X_33);

X_36:=X_31 AND NOT(X_27 AND X_32=X_33);

X_37:=REF(BARSLAST(X_34),1)+1;

X_38:=BACKSET(X_34 AND COUNT(X_36,X_37)>0,LLVBARS(IF(X_36,LOW,10000),X_37));

X_39:=X_38>REF(X_38,1);

X_40:=BACKSET(X_39,2);

X_41:=X_40>REF(X_40,1);

X_42:=X_41 OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;

X_43:=REF(BARSLAST(X_42),1)+1;

X_44:=BACKSET(X_42 AND COUNT(X_35,X_43)>0,HHVBARS(IF(X_35,HIGH,0),X_43));

X_45:=X_44>REF(X_44,1);

X_46:=BACKSET(X_45,2);

X_47:=X_46>REF(X_46,1);

X_48:=BACKSET(ISLASTBAR=1,BARSLAST(X_47)+1);

X_49:=X_48>REF(X_48,1);

X_50:=BACKSET(X_49,REF(BARSLAST(X_47),1)+2);

X_51:=X_50>REF(X_50,1);

X_52:=REF(HIGH,BARSLAST(X_49));

X_53:=REF(HIGH,BARSLAST(X_51));

X_54:=CROSS(CLOSE,X_52);

必抓涨停:X_19 AND X_54;


通达信金钻通道系列主图指标 源码 贴图


 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式