把下面<机会难得 难得一见 满仓买入>三公式副图指标
2019/12/14 19:08:46
公式编写说明:
VAR1:=REF(CLOSE,1);VAR2:=LLV(LOW,5);VAR3:=HHV(HIGH,10);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,4);VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,2);VARA:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;VARB:=SMA(MAX(CLOSE-VAR1,0),13,1)/SMA(ABS(CLOSE-VAR1),13,1)*100;VAR0A:=BARSLAST(VARB<43)<=3 AND CROSS(VARA,VARB);VAR0B:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<-12.5;VAR1A:=BARSLAST(VARB<33)<=3 AND CROSS(VARA,VARB);VAR1B:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<-12.5;VAR2A:=BARSLAST(VARB<23)<=3 AND CROSS(VARA,VARB);VAR2B:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<-12.5;三合一:VAR0A AND VAR0BAND VAR1A AND VAR1B AND VAR2A AND VAR2B AND CROSS(VAR4,VAR5) AND VAR4<=25;-------机会难得:VAR0A AND VAR0B AND CROSS(VAR4,VAR5) AND VAR4<=25;难得一见: VAR1A AND VAR1B AND CROSS(VAR4,VAR5) AND VAR4<=25;满仓买入: VAR2A AND VAR2B AND CROSS(VAR4,VAR5) AND VAR4<=25;
公式源码回答:
VAR1:=REF(CLOSE,1);
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,10);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,4);
VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,2);
VARA:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
VARB:=SMA(MAX(CLOSE-VAR1,0),13,1)/SMA(ABS(CLOSE-VAR1),13,1)*100;
VAR0A:=BARSLAST(VARB<43)<=3 AND CROSS(VARA,VARB);
VAR0B:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<-12.5;
VAR1A:=BARSLAST(VARB<33)<=3 AND CROSS(VARA,VARB);
VAR1B:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<-12.5;
VAR2A:=BARSLAST(VARB<23)<=3 AND CROSS(VARA,VARB);
VAR2B:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<-12.5;
机会难得:VAR0A AND VAR0B AND CROSS(VAR4,VAR5) AND VAR4<=25,LINETHICK0;
难得一见: VAR1A AND VAR1B AND CROSS(VAR4,VAR5) AND VAR4<=25,LINETHICK0;
满仓买入: VAR2A AND VAR2B AND CROSS(VAR4,VAR5) AND VAR4<=25,LINETHICK0;
DRAWTEXT(机会难得,L,'机会难得'),COLORYELLOW;
DRAWTEXT(难得一见,L,'难得一见'),COLORYELLOW;
DRAWTEXT(满仓买入,L,'满仓买入'),COLORYELLOW;
投股票 网 www.tou18.c n
股市公式下载推荐