以下是通达信进场预警副图公式源码

通达信进场预警副图公式源码

附图指标,根据信号进场,安全无忧。无未来,

 

源码

 

VAR03:50,COLORYELLOW,LINETHICK2;

VARF1:=MA(HHV(HIGH,485),17);

VARF2:=MA(HHV(HIGH,222),17);

VARF3:=MA(HHV(HIGH,96),17);

VARF4:=MA(LLV(LOW,485),17);

VARF5:=MA(LLV(LOW,222),17);

VARF6:=MA(LLV(LOW,96),17);

VARF7:=MA((VARF4*0.96+VARF5*0.96+VARF6*0.96+VARF1*0.558+VARF2*0.558+VARF3*0.558)/6,17);

VARF8:=MA((VARF4*1.25+VARF5*1.23+VARF6*1.2+VARF1*0.55+VARF2*0.55+VARF3*0.65)/6,17);

VARF9:=MA((VARF4*1.3+VARF5*1.3+VARF6*1.3+VARF1*0.68+VARF2*0.68+VARF3*0.68)/6,17);

VARFA:=MA((VARF7*3+VARF8*2+VARF9)/6*1.738,17);

VARFB:=IF(C=C,VARFA,VARFA*DAY);

VARFC:=LOW;

VARFD:=REF(LOW,1);

VARFE:=SMA(ABS(VARFC-VARFD),3,1)/SMA(MAX(VARFC-VARFD,0),3,1)*100;

VARFF:=MA(IF(CLOSE*1.35<=VARFB,VARFE*10,VARFE/10),3);

VARF10:=LLV(LOW,30);

VARF11:=HHV(VARFF,30);

进场预警B:IF(C=C,MA(IF(LOW<=VARF10,(VARFF+VARF11*2)/2,0),3),100000000)/(200),COLORRED,LINETHICK2;

VAR1:=(2*C+H+L)/4;

VAR5:=(VAR1-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;

VAR6:=SMA(VAR5,5,1);

鸿运齐福:=SMA(VAR6,3,1);

选股:鸿运齐福<=8.5;

N:=14;

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

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

好运连连:=CCI<-150 AND CCI>REF(CCI,1);

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

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

D:=SMA(K,3,1);

J:=3*K-2*D;

抄底:好运连连 AND J<-8;

STICKLINE(抄底,0,50,0.95,0),COLORGREEN;

STICKLINE(选股,0,50,0.95,0),COLORGREEN;

有惊无险:=EMA(CLOSE,5);

一生好运:=EMA(EMA(CLOSE,25)*0.913,10);

追涨:CROSS(有惊无险,一生好运); 

STICKLINE(追涨,0,50,0.95,0),COLORYELLOW;

VAR11:=REF(CLOSE,1);

VAR21:=REF(INDEXC,1);

个股:SMA(MAX(CLOSE-VAR11, 0),14,1)/SMA(ABS(CLOSE-VAR11), 14, 1)*100,COLORMAGENTA,LINETHICK2;

大盘:SMA(MAX(INDEXC-VAR21, 0),14,1)/SMA(ABS(INDEXC-VAR21), 14, 1)*100;

STICKLINE(个股>大盘 AND 个股>49 AND 大盘<35,0,25,3,0),COLORCYAN;

 

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