AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*N/100;
通道2:=AA*(200-N)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:=(1+M/100)*DD;
通道4:=(1-M/100)*DD;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1));
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N2);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N2);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N2);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
薜氏选股1:C<通道4 AND C>O AND CCI<-100 AND ADX>60;
副图公式如下:
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*N/100;
通道2:=AA*(200-N)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:=(1+M/100)*DD;
通道4:=(1-M/100)*DD;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1));
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N2);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N2);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N2);
PDI:=DMP*100/MTR;
MDI:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM);
ADXR:=EXPMEMA(ADX,MM);
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
HSL:=100*VOL/(CONST(FINANCE(7))/100);
HS:=IF(BETWEEN(HSL,0,1000000),HSL,VOL);
DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD:=2*(DIFF-DEA);
A1:=EMA(DIFF,5)*100;
A2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*100;
A3:=IF(A2>0,A2,50);
A4:=IF(A2<0,A2,50);
动能A:=A2,COLOR00FFFF,LINETHICK2;
动能B:=A1,COLORFFFF00,LINETHICK2;
VAR2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1);
VAR4:=EMA(VAR3,5);
AA0:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
BB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
AA1:=STICKLINE(动能A<动能B,0,-3,2,0);
BB1:=STICKLINE(动能A>动能B,0,3,2,0);
持币:=AA1,COLOR00FF00;
持股:=BB1,COLORRED;
底部:=CROSS(BB,9);
大阳接粉红:=V2>=0.9 AND C>O;
底部大阳粉红:=底部=1 AND 大阳接粉红=1;
薜氏选股1:=C<通道4 AND C>O AND CCI<-100 AND ADX>60;
STICKLINE(薜氏选股1,0,2,2,0),COLORBLUE;
STICKLINE(薜氏选股1,2,4,2,0),COLORYELLOW;
STICKLINE(薜氏选股1,4,6,2,0),COLORMAGENTA;
参数: n 80 120 102
m 2 20 7
n1 2 100 14
n2 2 100 14
mm 2 60 6
|