副图公式源码支持: 手机/电脑
BN:=5;
GUPB:=4*SMA((CLOSE-LLV(LOW,BN))/(HHV(HIGH,BN)-LLV(LOW,BN))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,BN))/(HHV(HIGH,BN)-LLV(LOW,BN))*100,5,1),3.2,1);
庄:=GUPB<=8;
PDTC:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);
CCIDTC:=((PDTC - MA(PDTC,14))*(100))/((1.5)*(AVEDEV(PDTC,14)));
RSI1DTC:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),6,1)))*(100);
黄底:=(CCIDTC < (-100));
蓝底:=(RSI1DTC < 25);
GUP1MMQZ:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
红底:=GUP1MMQZ<-9 AND GUP1MMQZ> REF(GUP1MMQZ,1);
抓底:黄底 AND 蓝底 AND 红底,COLORYELLOW;
抄底:=(200000000000*MAX (庄,抓底)*DMA(EMA(C,60),SUM(V,60)/CAPITAL)/EXP(2*HIGH-LOW/3))*1.1,COLORRED,LINETHICK2;
LC20:=REF(CLOSE,1);
RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
买多:=CROSS(RSI20,11)*1,COLORRED;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
加仓:=IF(FILTER(YXF=1,5),1,0),STICK,COLORFFFFFF,LINETHICK3;
买加:买多 AND 加仓,COLORRED;
M13:=MA(C,13);
M55:=MA(C,55);
T:=BARSLAST(CROSS(M13,C));
GL:=M55/MIN(C,O);
BL:=M13/M55;
条件1:=EVERY(GL<1.025,T);
条件2:=EVERY(BL<1.12,T);
条件3:=EVERY(M55>=REF(M55,1) AND M13>M55,T+1);
条件4:=COUNT(CROSS(C,M13),T+1)=1 AND CROSS(C,M13);
条件:条件1 AND 条件2 AND 条件3 AND 条件4 AND BETWEEN(T,5,10) AND BL<1.03,COLORWHITE;
选股公式源码:
{选股公式一:抓底}
BN:=5;
GUPB:=4*SMA((CLOSE-LLV(LOW,BN))/(HHV(HIGH,BN)-LLV(LOW,BN))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,BN))/(HHV(HIGH,BN)-LLV(LOW,BN))*100,5,1),3.2,1);
庄:=GUPB<=8;
PDTC:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);
CCIDTC:=((PDTC - MA(PDTC,14))*(100))/((1.5)*(AVEDEV(PDTC,14)));
RSI1DTC:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),6,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),6,1)))*(100);
黄底:=(CCIDTC < (-100));
蓝底:=(RSI1DTC < 25);
GUP1MMQZ:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
红底:=GUP1MMQZ<-9 AND GUP1MMQZ> REF(GUP1MMQZ,1);
抓底:黄底 AND 蓝底 AND 红底,COLORYELLOW;
{选股公式二:买加}
LC20:=REF(CLOSE,1);
RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
买多:=CROSS(RSI20,11)*1,COLORRED;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
加仓:=IF(FILTER(YXF=1,5),1,0),COLORFFFFFF,LINETHICK3;
买加:买多 AND 加仓,COLORRED;
{选股公式三:条件}
M13:=MA(C,13);
M55:=MA(C,55);
T:=BARSLAST(CROSS(M13,C));
GL:=M55/MIN(C,O);
BL:=M13/M55;
条件1:=EVERY(GL<1.025,T);
条件2:=EVERY(BL<1.12,T);
条件3:=EVERY(M55>=REF(M55,1) AND M13>M55,T+1);
条件4:=COUNT(CROSS(C,M13),T+1)=1 AND CROSS(C,M13);
条件:条件1 AND 条件2 AND 条件3 AND 条件4 AND BETWEEN(T,5,10) AND BL<1.03,COLORWHITE; |