请大师帮我将通达信附图指标公式改为选股公式
我需要选出当天附图中显示“黑马出现”柱的条件选股公式,谢谢!附图指标公式源码和附图如下:A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);获利回...
我需要选出当天附图中显示“黑马出现”柱的条件选股公式,谢谢!
附图指标公式源码和附图如下:
A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK0;大黑马:(A2<0)*A2,COLORD4FF7F,LINETHICK0;坚绝做空:(A1<0)*A1,COLORB00058,LINETHICK0;买入持股:(A1>=0)*A1,COLORRED,LINETHICK0;STICKLINE(A2>=0,A2,0,5,0),COLORWHITE;STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F;STICKLINE(A1<0,A1,0,5,0),COLORB00058;STICKLINE(A1>=0,A1,0,5,0),COLORRED;VAR8:=VOL>2*MA(VOL,30);VAR9:="DMI.ADX"(12,6);VARA:="DMI.ADXR"(12,6);VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));VARF:=TROUGHBARS(3,15,1)<4;VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);VAR11:=IF(VARF=1,50,0);多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;0,COLORRED;STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),COLORF00FF0;STICKLINE(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW;DRAWTEXT(FILTER(VARF=1,3),25,'黑马出现'),COLORRED ;STICKLINE(多空<-10,0,多空,0.85,0),COLORYELLOW;STICKLINE(多空>10,0,多空,0.95,0),COLORRED; 展开
附图指标公式源码和附图如下:
A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);获利回吐:(A2>=0)*A2,COLORWHITE,LINETHICK0;大黑马:(A2<0)*A2,COLORD4FF7F,LINETHICK0;坚绝做空:(A1<0)*A1,COLORB00058,LINETHICK0;买入持股:(A1>=0)*A1,COLORRED,LINETHICK0;STICKLINE(A2>=0,A2,0,5,0),COLORWHITE;STICKLINE(A2<0,A2,0,5,0),COLORD4FF7F;STICKLINE(A1<0,A1,0,5,0),COLORB00058;STICKLINE(A1>=0,A1,0,5,0),COLORRED;VAR8:=VOL>2*MA(VOL,30);VAR9:="DMI.ADX"(12,6);VARA:="DMI.ADXR"(12,6);VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));VARF:=TROUGHBARS(3,15,1)<4;VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);VAR11:=IF(VARF=1,50,0);多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;0,COLORRED;STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),COLORF00FF0;STICKLINE(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW;DRAWTEXT(FILTER(VARF=1,3),25,'黑马出现'),COLORRED ;STICKLINE(多空<-10,0,多空,0.85,0),COLORYELLOW;STICKLINE(多空>10,0,多空,0.95,0),COLORRED; 展开
2个回答
展开全部
朋友,以下是你要的选股公式:
A1:=EMA(C,12)-EMA(C,25);
A2:=EMA(A1,6);
获利回吐:=(A2>=0)*A2,COLORWHITE,LINETHICK0;
大黑马:=(A2<0)*A2,COLORD4FF7F,LINETHICK0;
坚绝做空:=(A1<0)*A1,COLORB00058,LINETHICK0;
买入持股:=(A1>=0)*A1,COLORRED,LINETHICK0;
VAR8:=VOL>2*MA(VOL,30);
VAR9:="DMI.ADX"(12,6);
VARA:="DMI.ADXR"(12,6);
VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)<4;
ZHOUMIN:FILTER(VARF=1,3);
但由于此公式带未来函数,请谨慎使用。
A1:=EMA(C,12)-EMA(C,25);
A2:=EMA(A1,6);
获利回吐:=(A2>=0)*A2,COLORWHITE,LINETHICK0;
大黑马:=(A2<0)*A2,COLORD4FF7F,LINETHICK0;
坚绝做空:=(A1<0)*A1,COLORB00058,LINETHICK0;
买入持股:=(A1>=0)*A1,COLORRED,LINETHICK0;
VAR8:=VOL>2*MA(VOL,30);
VAR9:="DMI.ADX"(12,6);
VARA:="DMI.ADXR"(12,6);
VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)<4;
ZHOUMIN:FILTER(VARF=1,3);
但由于此公式带未来函数,请谨慎使用。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询