副图公式源码 支持 :手机/电脑
N:=60;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100),NODRAW;
MA3:=EMA(CLOSE,3);
MA33:=EMA(CLOSE,33);
GUP1:=IF(YEAR>=2021 AND MONTH>=9,0,1);
GUP2:=REF(LOW,1)*GUP1;
GUP3:=SMA(ABS(LOW-GUP2),3,1)/SMA(MAX(LOW-GUP2,0),3,1)*100*GUP1;
GUP4:=EMA(IF(CLOSE*1.3,GUP3*10,GUP3/10),3)*GUP1;
GUP5:=LLV(LOW,N)*GUP1;
GUP6:=HHV(GUP4,N)*GUP1;
GUP7:=IF(MA(CLOSE,120),1,0)*GUP1;
GUP8:=EMA(IF(LOW<=GUP5,(GUP4+GUP6*2)/2,0),3)/618*GUP7*GUP1;
买入1:IF(GUP8>100 AND RSI<11,100,0)*GUP1,COLORYELLOW;
买入2:IF(GUP8<100 AND RSI<11.5,GUP8,0)*GUP1,COLORGREEN;
超跌:IF(GUP8>100 AND RSI<33,GUP8,0)*GUP1,COLORRED;
STICKLINE(超跌>150,0,超跌,1,0),COLORRED;
选股公式源码:
{选股公式一:超跌}
N:=60;
GUP1:=IF(YEAR>=2021 AND MONTH>=9,0,1);
GUP2:=REF(LOW,1)*GUP1;
GUP3:=SMA(ABS(LOW-GUP2),3,1)/SMA(MAX(LOW-GUP2,0),3,1)*100*GUP1;
GUP4:=EMA(IF(CLOSE*1.3,GUP3*10,GUP3/10),3)*GUP1;
GUP5:=LLV(LOW,N)*GUP1;
GUP6:=HHV(GUP4,N)*GUP1;
GUP7:=IF(MA(CLOSE,120),1,0)*GUP1;
GUP8:=EMA(IF(LOW<=GUP5,(GUP4+GUP6*2)/2,0),3)/618*GUP7*GUP1;
超跌:IF(GUP8>100 AND RSI<33,GUP8,0)*GUP1,COLORRED;
{选股公式二:买入1}
N:=60;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
GUP1:=IF(YEAR>=2021 AND MONTH>=9,0,1);
GUP2:=REF(LOW,1)*GUP1;
GUP3:=SMA(ABS(LOW-GUP2),3,1)/SMA(MAX(LOW-GUP2,0),3,1)*100*GUP1;
GUP4:=EMA(IF(CLOSE*1.3,GUP3*10,GUP3/10),3)*GUP1;
GUP5:=LLV(LOW,N)*GUP1;
GUP6:=HHV(GUP4,N)*GUP1;
GUP7:=IF(MA(CLOSE,120),1,0)*GUP1;
GUP8:=EMA(IF(LOW<=GUP5,(GUP4+GUP6*2)/2,0),3)/618*GUP7*GUP1;
买入1:IF(GUP8>100 AND RSI<11,100,0)*GUP1,COLORYELLOW;
{选股公式三:买入2}
N:=60;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
GUP1:=IF(YEAR>=2021 AND MONTH>=9,0,1);
GUP2:=REF(LOW,1)*GUP1;
GUP3:=SMA(ABS(LOW-GUP2),3,1)/SMA(MAX(LOW-GUP2,0),3,1)*100*GUP1;
GUP4:=EMA(IF(CLOSE*1.3,GUP3*10,GUP3/10),3)*GUP1;
GUP5:=LLV(LOW,N)*GUP1;
GUP6:=HHV(GUP4,N)*GUP1;
GUP7:=IF(MA(CLOSE,120),1,0)*GUP1;
GUP8:=EMA(IF(LOW<=GUP5,(GUP4+GUP6*2)/2,0),3)/618*GUP7*GUP1;
买入2:IF(GUP8<100 AND RSI<11.5,GUP8,0)*GUP1,COLORGREEN;
|