⑴ 請高手寫一個十天內出現將軍柱的通達信選股公式
三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);
三日量縮:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));
三日價漲A:=C>=REF(C,1);
三日價漲B:=C<REF(C,1);
三日價漲C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);
縮倍柱:=(VOL*1.95<=REF(VOL,1));
百日低量:=(VOL=LLV(VOL,100));
倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1));
四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4));
四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量縮);
前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日價漲C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日價漲C,1)),3)=0;
倍量黃金柱:=四日前倍量柱 AND 三日量縮 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
高量黃金柱:=四日前高量柱 AND 三日量縮 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
黃金柱:=倍量黃金柱 OR 高量黃金柱;
次倍量黃金柱:=NOT(黃金柱) AND 四日前倍量柱 AND 三日量縮 AND 三日不破 AND 三日價漲B AND 前三引用不成立;
次高量黃金柱:=NOT(黃金柱) AND 四日前高量柱 AND 三日量縮 AND 三日不破 AND 三日價漲B AND 前三引用不成立;
次黃金柱:=次倍量黃金柱 OR 次高量黃金柱;
准倍量黃金柱:=NOT(黃金柱 OR 次黃金柱) AND 四日前倍量柱 AND ((三日量縮 AND 三日價漲C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;
准高量黃金柱:=NOT(黃金柱 OR 次黃金柱) AND 四日前高量柱 AND (三日量縮 AND 三日價漲C) AND 前三引用不成立;
准黃金柱:=准倍量黃金柱 OR 准高量黃金柱;
倍量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 准黃金柱) AND 四日前倍量柱 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
高量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 准黃金柱) AND 四日前高量柱 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
將軍柱:=倍量將軍柱 OR 高量將軍柱;
BACKSET104:=BACKSET(將軍柱,4);
xg:FILTER(BACKSET104,3);
⑵ 求大神將以下指標公式改為選股公式,通達信的,謝謝
公式是改過了也經通達信測試通過。因其中參數(N,M1,M2等)沒給出,暫按系統公式參數設置,可根據您自己需要做相應調整。(以下為源碼及附圖)
【如果覺得對您有幫助,請採納答案,謝謝】
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
多方:=IF((3*K-2*D)>0,(3*K-2*D),0)LINESTICK;
黃金坑:STICKLINE((3*K-2*D)<0,0,-2,3,0) COLORYELLOW;DRAWTEXT((3*K-2*D)<0,-1,'黃金坑');
LC:=REF(CLOSE,1);
RSI:(SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*20)LINETHICK2 COLORRED;
MID:MA(RSI,5)LINETHICK2 COLORGREEN;
UPPER:MID+10*STD(RSI,5)LINETHICK2 COLORYELLOW;
LOWER:MID-10*STD(RSI,5)LINETHICK2 COLORBLUE;
IF(RSI<MID,RSI,DRAWNULL)LINETHICK2 COLORWHITE;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,6));
DRAWICON(CROSS(CCI,-100) AND (RSI>MID),1,24);
DRAWTEXT((CROSS(CCI,-100) AND (RSI>MID)),0,'CCI買');
MOBV:=OBV-MA(OBV,3);
OBV高:=REF(OBV,BARSLAST(FILTER(BACKSET(FILTER(REF(OBV,3)=HHV(OBV,2*3+1),3),3+1),3)));
C高:=REF(C,BARSLAST(FILTER(BACKSET(FILTER(REF(C,3)=HHV(C,2*3+1),3),3+1),3))),NODRAW;
量入為主:=CROSS(OBV,OBV高) AND H<C高,NODRAW;
DRAWICON(量入為主,2,25);
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3)>MA(C,5);
V3:=MA(V,5)>MA(V,10)*1.01;
V4:=COUNT(MA(C,1)>REF(C,1),2)=2;
LC20:=REF(CLOSE,1);
RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
STICKLINE((CROSS(RSI20,11)*1)AND(RSI>MID),0,5,2,0),COLORYELLOW;
VAR3A:=3;
VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);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,3)AND(RSI>MID),5,0),STICK,COLORLIBLUE,LINETHICK3;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
FY:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;TIM:=IF(C,1,0);
縮倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,10))*TIM;
倍量柱:=(VOL>=1.95*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.95*REF(VOL,4))*TIM;
DRAWICON((VOL=LLV(VOL,50))*TIM AND(RSI>MID),0,1);吸貨線:8,POINTDOT,LINETHICK2,COLORCYAN;
DRAWTEXT(ISLASTBAR,8,'加倉線'),COLORFF9900;強:10,POINTDOT,LINETHICK2,COLOR70DB93;
DRAWTEXT(ISLASTBAR,10,'強弱分界'),COLOR70DB93;賣:12,POINTDOT,LINETHICK2,COLORCYAN;
DRAWTEXT(ISLASTBAR,12,'減倉線'),COLORYELLOW;滿:6,POINTDOT,LINETHICK2,COLORCYAN;
DRAWTEXT(ISLASTBAR,6,'建倉線'),COLORFFFFFF;清:14,POINTDOT,LINETHICK2,COLORCYAN;
DRAWTEXT(ISLASTBAR,14,'清倉線'),COLORFF00FF;SHOU:=IF(DATE<=1150520,1,0);
SHI:=BETWEEN((DCLOSE*SHOU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*SHOU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*SHOU)))),1.05,0.95);
TOU:=IF(SHI=0,MA((DCLOSE*SHOU),BARSCOUNT((DCLOSE*SHOU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*SHOU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*SHOU)))));
動力線:=EXPMA((DCLOSE/TOU),13);
XG:CROSS(動力線,1.03);
⑶ {量柱六合一指標} 倍量:(VOL/REF(VOL,1)>2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN
{說明:樓主提供的指標可以改為4個選股公式。我一並做出,測試通過,可以視自己的埋叢喜好採納}
{1.}百日地量:LLV(VOL,100)==VOL;
----------------------------------------------
{2.}黑太陽:LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1);
---------------------------------------------------
{3.}紅此褲太陽:LOW>REF(HIGH,1) AND COUNT(OPEN<CLOSE,1);
-----------------------------------------------------------
{4.}放倍森液簡量:(VOL/REF(VOL,1)>2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>2);
⑷ 麻煩老師將下面通達信指標改成選股公式 要求出現百日地量群選出
朋友,以下是你要的選股公式:
V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;
ZM1:=COUNT(V100,5)>=3;
ZM:FILTER(ZM1,4);