极品布林主图公式 选股公式

[复制链接]
查看55 | 回复0 | 2022-7-24 06:48:26 | 显示全部楼层 |阅读模式

极品布林主图公式

参数N:20

自己设置

 

NJ:=6;YV:=2;RI:=1;
 GOQIRI:=(NJ+110)*10000+YV*100+RI;
 GOQI:=DATE>=GOQIRI;
 GOQIVU:=COUNT(GOQI=1,0);
 TIVIQI:=GOQI=1 AND DAY<=15 ;
 TIVIDJ:=GOQIVU=1 OR TIVIQI>REF(TIVIQI,1);
 TIVI1:=TIVIDJ=1 AND CURRBARSCOUNT<=20 AND IF(MOD(CURRBARSCOUNT,2)=1,(MOD(FROMOPEN-1,60)>=40 AND FROMOPEN!=240),(MOD(FROMOPEN-1,60)>=20));
 TIVI:=TIVI1=1 AND COUNT(TIVI1=1,0)=1;
 IHDX:=BARSLAST(TIVI=1)>=3;
 WUXD:=GOQI=1 AND IHDX=1;
 A:=(OPEN+HIGH+LOW+CLOSE+CLOSE)/5;
 ZCX:=EMA(EMA(A,N),SQRT(5*N));
 MID:=ZCX;
 VAR1:=POW((C-MID),2);
 VAR2:=EMA(EMA(VAR1,N),SQRT(5*N));
 VAR3:=SQRT(VAR2);
 WID:=SQRT(5)*VAR3;
 UPPER:=MID+WID;
 LOWER:=MID-WID;
中线1:=MID;
左边线1:=UPPER;
右边线1:=LOWER;
比宽1:=WID/MID*100;
中线:IF(WUXD,DRAWNULL,中线1),NODRAW,COLOR00FFFF;
 NOTEXT1:IF(WUXD,DRAWNULL,中线1+WID*0.04),DOTLINE,COLOR00FFFF;
 NOTEXT2:IF(WUXD,DRAWNULL,中线1-WID*0.04),DOTLINE,COLOR00CCCC;
左边线:IF(WUXD,DRAWNULL,左边线1),COLORFF00FF;
右边线:IF(WUXD,DRAWNULL,右边线1),COLOR00FF00;
比宽:IF(WUXD,DRAWNULL,比宽1),NODRAW,COLORFFFFFF;
右边线上拐:=右边线>REF(右边线,1) AND REF(右边线,1)<=REF(右边线,2);
左边线下拐:=左边线<REF(左边线,1) AND REF(左边线,1)>=REF(左边线,2);
买点1:=右边线上拐 AND 中线<REF(中线,1);
卖点1:=左边线下拐 AND 中线>REF(中线,1);
 DRAWICON(买点1,右边线-MA(H-L,20)*0.4,11);
 DRAWICON(卖点1,左边线+MA(H-L,20)*0.2,12);
中线上拐:=中线>REF(中线,1) AND REF(中线,1)<=REF(中线,2);
中线下拐:=中线<REF(中线,1) AND REF(中线,1)>=REF(中线,2);
买点2:=中线上拐;
卖点2:=中线下拐;
DRAWICON(买点2,中线-MA(H-L,20)*0.4,1);
 DRAWICON(卖点2,中线+MA(H-L,20)*0.2,2);

63099899.jpg

63099899.jpg

 

选股公式:

 

NJ:=6;YV:=2;RI:=1;N:=20;
 GOQIRI:=(NJ+110)*10000+YV*100+RI;
 GOQI:=DATE>=GOQIRI;
 GOQIVU:=COUNT(GOQI=1,0);
 TIVIQI:=GOQI=1 AND DAY<=15 ;
 TIVIDJ:=GOQIVU=1 OR TIVIQI>REF(TIVIQI,1);
 TIVI1:=TIVIDJ=1 AND CURRBARSCOUNT<=20 AND IF(MOD(CURRBARSCOUNT,2)=1,(MOD(FROMOPEN-1,60)>=40 AND FROMOPEN!=240),(MOD(FROMOPEN-1,60)>=20));
 TIVI:=TIVI1=1 AND COUNT(TIVI1=1,0)=1;
 IHDX:=BARSLAST(TIVI=1)>=3;
 WUXD:=GOQI=1 AND IHDX=1;
 A:=(OPEN+HIGH+LOW+CLOSE+CLOSE)/5;
 ZCX:=EMA(EMA(A,N),SQRT(5*N));
 MID:=ZCX;
中线1:=MID;
中线:=IF(WUXD,DRAWNULL,中线1),NODRAW,COLOR00FFFF;
中线上拐:=中线>REF(中线,1) AND REF(中线,1)<=REF(中线,2);
买点2:中线上拐;
 

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则