㈠ 求高手編一個通達信KDJ背離選股公式(有效再加400分!)
第一個選股器要分成很多個小的選股器才能寫出來,選股的時候看你需要用哪個條件了,公式如下:
1.低位金叉
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
CROSS(DIFF,DEA) AND DIFF<-0.1;
2.二次金叉
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
3.底背離
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
4.頂背離
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
第二個公式編寫出來的選股公式如下:
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A2:=BARSLAST(REF(CROSS(K,D),1));
B2:=REF(C,A2+1)>C AND REF(K,A2+1)<K AND CROSS(K,D);
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS(D,K),1));
D2:=REF(C,C2+1)<C AND REF(K,C2+1)>K AND CROSS(D,K);
C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D3:=REF(C,C3+1)<C AND REF(RSI1,C3+1)>RSI1 AND CROSS(RSI2,RSI1);
IF(B1>0,1,0) OR IF(B2>0,1,0) OR IF(B3>0,1,0) OR IF(D1>0,1,0) OR IF(D2>0,1,0) OR IF(D3>0,1,0);
你試一下吧。
㈡ 通達信 skdj底背離選股、預警公式(拜求專業指標編寫,要求無未來函數)
這里應該沒有人給你解決,建議去QQ群搜股票技術指標技術群,多加點,或許能找到
㈢ 通達信MACD底背離選股公式
股價創30日新低:l<=llv(l,30);
當日MACD(就是那個紅綠柱子)值大於昨日:"macd.macd」>ref("macd.macd",1);
當日DIFF(白線) 沒創新低:"macd.dif">=ref("macd.dif",1);
選股1:l<=LLV(l,30) AND "MACD.MACD">REF("MACD.MACD",1);
選股2:l<=LLV(l,30) AND "MACD.DIF">=REF("MACD.DIF",1);
選股3:l<=LLV(l,30) AND "MACD.MACD">REF("MACD.MACD",1) and
"MACD.DIF">=REF("MACD.DIF",1);
㈣ 請高手把下面的通達信指標改寫成底背離的選股公式
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
底背離:CROSS(FF,MA15);
㈤ 求通達信15分鍾周期MACD底背離的選股公式
用日線的底背離公式,選擇15分鍾周期就可以了。
下圖是macd底背離選股指標日線勝率回測截圖
㈥ 求通達信公式 KD背離金叉選股公式 如圖 萬分感謝高人!
是這樣的效果嗎
㈦ 求通達信選股公式 ,月線KDJ底背離
A1:=BARSLAST(REF(CROSS(KDJ.K#MONTH,KDJ.D#MONTH),1));
月底背離:REF(CLOSE,A1+1)>C AND KDJ.K#MONTH>REF(KDJ.K#MONTH,A1+1) AND CROSS(KDJ.K#MONTH,KDJ.D#MONTH);
㈧ kd底背離選股公式
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
L1:=BARSLAST(LOW=LLV(LOW,5));
L2:=REF(LLVBARS(LOW,20),L1+1);
LOW1:=REF(LOW,L1);
LOW2:=REF(LOW,L2);
K1:=REF(SMA(RSV,3,1),L1);
K2:=REF(SMA(RSV,3,1),L2);
L2>L1 AND LOW1<LOW2 AND K1>K2;
㈨ 老師,請編寫一個用於通達信的KDJ J值抬頭和股價下跌背離的選股公式。
J交叉:=CROSS(KDJ.J,KDJ.K)
AND
CROSS(KDJ.K,KDJ.D);
{底背紅買}
K值:="KDJ.K";
DD:=C=LLV(C,60);
DDSJ:=BARSLAST(REF(DD,1));{上一低點時間}
DDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;
KDZB:=REF(K值,DDSJ+1)
K底背離:=DDGJ
AND
KDZB;
XG:J交叉
OR
K底背離;
如果要二個條件同時成立,則用:
XG:J交叉
AND
K底背離;
經測試,信號很小。