請高手幫我把通信達(dá)選股公式改成大智慧的,謝謝!
MFI:=(H-L)*1000000/V;rnA4:=MFI<=REF(MFI,1)*0.9 AND V>=REF(V,1)*1.1; rn蟄伏:=COUNT(A4,1)=1;rnAAA:=(3*C+H+L+O)/6;rnVAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;rnVAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;rnVAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;rnFF:=EMA(CLOSE,3);rnMA15:=EMA(CLOSE,21);rn上:=EMA(C,3),COLORBLUE,LINETHICK1;rnMM:=上>REF(上,1) AND REF(上,1)[=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)][=REF(C,1);rnVAR06:=V5>REF(V5,1) AND REF(V5,1)][HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;rnVAR08:=VAR07 AND COUNT(VAR06,2);rnVAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);rnVAR10:=EMA(MA(C,13),13);rnVAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5);rnVAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;rnVAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);rnVAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));rnVAR16:=VAR08 AND NOT(REF(VAR08,1));rnRSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;rnK:=SMA(RSV,3,1);rnD:=SMA(K,3,1);rnJ:=3*K-2*D;rn金叉:=CROSS(J,D);rn買1:=(VAR14 OR VAR15) AND VAR11;rn買2:=(VAR14 OR VAR15) AND VAR4;rn買3:=(VAR14 OR VAR15) AND VAR2;rn買4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);rn買5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);rnTTJ:=CROSS(FF,MA15);rnTTJ0:=VAR16;rnTTJ1:=買1 OR 買2 OR 買3 OR 買4 OR 買5 AND MM;rnXG0:=TTJ AND TTJ0;rnXG1:=TTJ AND TTJ1;rnX:=蟄伏 AND (XG0 OR XG1);rnMV5:=EMA(V,3);rnMA5:=EMA(C,3);rnMG角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1816;rnMA角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1816;rnQSXS:=MA角度>REF(MA角度,1) AND MG角度>83;rnM30角:=IF(CROSS(MA角度,33) AND QSXS,1,0);rnXG:M30角 AND X;]堅(jiān)決全倉}
H1:=EMA(C,8);
H2:=EMA(H1,20);
HH2:=XMA(CLOSE,14);
HH3:=MEMA(CLOSE,4);
VAR1:=(CLOSE-LLV(LOW,60.135))/(HHV(HIGH,60.135)-LLV(LOW,60))*80;
VAR2:=SMA(VAR1,7,1);
VAR3:=SMA(VAR2,5,1);
堅(jiān)決全倉:CROSS(VAR2,VAR3) AND VAR2<20 AND HH2>HH3; 給個最佳呀!!!!!
沒有特殊函數(shù),應(yīng)該可以通過的呀。
如果你就是無法通過,估計是你的軟問題,退出通達(dá)信,等幾分鐘再重新進(jìn)入,再改寫指標(biāo)。
一點(diǎn)一點(diǎn)地弄 測試。
MA15:=EMA(CLOSE,21);
上:=EMA(C,3);
MM:=上>REF(上,1) AND REF(上,1)<REF(上,2);
V5:=MA((LOW+HIGH+CLOSE)/3,5);
VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);
VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;
VAR08:=VAR07 AND COUNT(VAR06,2);
VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
VAR10:=EMA(MA(C,13),13);
VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5);
VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));
VAR16:=VAR08 AND NOT(REF(VAR08,1));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
金叉:=CROSS(J,D);
買1:=(VAR14 OR VAR15) AND VAR11;
買2:=(VAR14 OR VAR15) AND VAR4;
買3:=(VAR14 OR VAR15) AND VAR2;
買4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);
買5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);
TTJ:=CROSS(FF,MA15);
TTJ0:=VAR16;
TTJ1:=買1 OR 買2 OR 買3 OR 買4 OR 買5 AND MM;
XG0:=TTJ AND TTJ0;
XG1:=TTJ AND TTJ1;
X:=蟄伏 AND (XG0 OR XG1);
MV5:=EMA(V,3);
MA5:=EMA(C,3);
MG角度:=ATAN((MV5/REF(MV5,1)-1)*100)*180/3.1816;
MA角度:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1816;
QSXS:=MA角度>REF(MA角度,1) AND MG角度>83;
M30角:=IF(CROSS(MA角度,33) AND QSXS,1,0);
XG:M30角 AND X;
有問題Q我吧
請哪位高手幫我把通信達(dá)選股公式改成大智慧的,謝謝!
源碼:DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);rnDEA:=EMA(DIFF,9),COLORFFFF00;rnA1:=BARSLAST(REF(CROSS(DIFF,DEA),1));rn底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);rnDEA0:=EMA(DIFF*100,9);rnMACD0:=2*(DIFF*100-DEA0);rn黑馬:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);rn底背離 AND 黑馬;測試通過
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
DEA0:=EMA(DIFF*100,9);
MACD0:=2*(DIFF*100-DEA0);
黑馬:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);
底背離 AND 黑馬;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
很麻煩的 JIN金RONG融DIAN點(diǎn)PING評WANG網(wǎng)”看去。
有大量關(guān)于此類的問題解答,您可以去查看
請高手幫忙把這個通達(dá)信公式改成選股公式,十分感激
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;rn0,COLORRED;rnSTICKLINE(多空<-10,0,多空,0,0),COLORGREEN;rnSTICKLINE(多空>10,0,多空,0,0),COLORYELLOW;rnRSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);rnK:=SMA(RSV,3,1);rnD:=SMA(K,3,1);rnJ:=((3 * K) - (2 * D));rnVARA1:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);rnVARA2:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);rnVARA3:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);rnVARA4:=(((VARA1 + (2 * VARA2)) + (3 * VARA3)) / 6);rnVARA5:=MA(VARA4,3);rnSTICKLINE((CROSS(J,0) AND (VARA5 <= (0 - 7))),0,35,8,0),COLOR780000;rnSTICKLINE((CROSS(J,0) AND (VARA5 <= (0 - 7))),0,35,6,0),COLOR9D0000;rnSTICKLINE((CROSS(J,0) AND (VARA5 <= (0 - 7))),0,35,5,0),COLORFF0000;rnSTICKLINE((CROSS(J,0) AND (VARA5 <= (0 - 7))),0,35,2,0),COLOR7AB500;rnDRAWTEXT((CROSS(J,0) AND (VARA5 <= (0 - 7))),15,x27←抄底x27),COLOR0000FF;rn抄底:CROSS(J,0) AND (VARA5 <= (0 - 7));rnLC:=REF(CLOSE,1);rnRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; rn頂部:CROSS(80,RSI)*35,LINETHICK2 ,COLORGREEN; rnDRAWTEXT(CROSS(80,RSI),1.2,x27頂 x27),COLORGREEN;rn逃頂:頂部,COLORGREEN;rn頂:IF(逃頂>REF(逃頂,1),35,0),COLOR7AB500;rnDRAWTEXT(頂=35,35,x27←逃頂x27),COLORFF0000;抄底的選股預(yù)警
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
VARA1:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VARA2:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VARA3:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VARA4:=(((VARA1 + (2 * VARA2)) + (3 * VARA3)) / 6);
VARA5:=MA(VARA4,3);
抄底:CROSS(J,0) AND (VARA5 <= (0 - 7));
請高手幫忙把這個通達(dá)信里的指標(biāo)公式改成選股公式,萬分感謝啊!
參數(shù)是:rn 參數(shù) 最小 最大 缺省rn1 M 1.00 100.00 32.00rn2 N 1.00 100.00 20.00rn3 P1 1.00 100.00 100.00rn4 P2 1.00 100.00 100.00rn公式內(nèi)容如下:rnVAR1:=(C+H+O+L)/4;rn賣出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;rn買入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;rn幅度:100*(賣出-買入)/買入,NODRAW;rnMA1:=MA(VAR1,3);rnSTICKLINE(賣出>LOW AND 賣出MIN(C,O) AND 賣出LOW AND 賣出LOW AND 買入MIN(C,O) AND 買入LOW AND 買入HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;rnSTICKLINE(買入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;rnDRAWTEXT(CROSS(LOW,買入),LOW*0.95,x27買入x27),COLORRED,LINETHICK2;rnDRAWTEXT(CROSS(賣出,HIGH),HIGH*1.02,x27賣出x27),COLORGREEN;這個公式很準(zhǔn),但有未來函數(shù)。選股公式如下:
VAR1:=(C+H+O+L)/4;
賣出:=XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
買入:=XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
CROSS(LOW,買入);
其中XMA是標(biāo)準(zhǔn)的未來函數(shù),也就是信號會發(fā)生漂移。因此這個公式只能用來做參考,且莫用做股票操作的依據(jù)。
請老師將通達(dá)信的指標(biāo)和選股公式 改成大智慧的謝謝
公式rnN:=60;rnK值:="KDJ.K";rnDD:=C=LLV(C,N);{60日最低點(diǎn)}rnDDSJ:=BARSLAST(REF(DD,1));{上一低點(diǎn)時間}rnDDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;{股價趨勢}rnKDZB:=REF(K值,DDSJ+1)K值;rnK頂背離:=GDGJ AND KGZB;rnMACD:="MACD.MACD";rnMDZB:=REF(MACD,DDSJ+1)MACD;rnM頂背離:=GDGJ AND MGZB;rnRSI:="RSI.RSI1";rnRDZB:=REF(RSI,DDSJ+1)RSI;rnR頂背離:=GDGJ AND RGZB;rnTYP:=(HIGH + LOW + CLOSE)/3;rnCCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));rnCDZB:=REF(CCI,DDSJ+1)CCI;rnC頂背離:=GDGJ AND CGZB;rnREFLINE: -5,15,30,COLORBLACK;rnDRAWTEXT(K頂背離,IF(ISLASTBAR,27.5,25),x27◆x27),LINETHICK2 ;rnDRAWTEXT(M頂背離,(ISLASTBAR,24.5,20),x27◆x27),LINETHICK2 ;rnDRAWTEXT(R頂背離,(ISLASTBAR,20.5,15.1),x27◆x27),LINETHICK2 ;rnDRAWTEXT(C頂背離,(ISLASTBAR,16.6,10.1),x27◆x27),LINETHICK2 ;rnDRAWTEXT(ISLASTBAR,10.1 ,x27CCI x27),LINETHICK2,COLORGREEN;rnDRAWTEXT(C底背離,IF(ISLASTBAR,12,10.1 ),x27◆x27),LINETHICK2,COLORRED;rnDRAWTEXT(ISLASTBAR,15,x27RSI x27),LINETHICK2,COLORRED;rnDRAWTEXT(R底背離,IF(ISLASTBAR,8.5,15),x27◆x27),LINETHICK2,COLORRED;rnDRAWTEXT(ISLASTBAR,20,x27MACD x27),LINETHICK2,COLORMAGENTA;rnDRAWTEXT(M底背離,IF(ISLASTBAR,4.5,20),x27◆x27),LINETHICK2,COLORRED;rnDRAWTEXT(ISLASTBAR,25,x27KDJ x27),LINETHICK2,COLORRED;rnDRAWTEXT(K底背離,IF(ISLASTBAR,1.5,25),x27◆x27),LINETHICK2,COLORRED;rn選股指標(biāo)rnN:=60;rnK值:="KDJ.K";rnDD:=C=LLV(C,N);{60日最低點(diǎn)}rnDDSJ:=BARSLAST(REF(DD,1));{上一低點(diǎn)時間}rnDDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;{股價趨勢}rnKDZB:=REF(K值,DDSJ+1)K值;rnK頂背離:=GDGJ AND KGZB;rnMACD:="MACD.MACD";rnMDZB:=REF(MACD,DDSJ+1)MACD;rnM頂背離:=GDGJ AND MGZB;rnRSI:="RSI.RSI1";rnRDZB:=REF(RSI,DDSJ+1)RSI;rnR頂背離:=GDGJ AND RGZB;rnTYP:=(HIGH + LOW + CLOSE)/3;rnCCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));rnCDZB:=REF(CCI,DDSJ+1)CCI;rnC頂背離:=GDGJ AND CGZB;rnK底背離 OR M底背離 OR R底背離 OR C底背離;選股公式不用改,可以直接通過,質(zhì)保指標(biāo)改一下。
{指標(biāo)背離}
N:=60;
K值:="KDJ.K";
DD:=C=LLV(C,N);{60日最低點(diǎn)}
DDSJ:=BARSLAST(REF(DD,1));{上一低點(diǎn)時間}
DDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;{股價趨勢}
KDZB:=REF(K值,DDSJ+1)<K值;{KDJ.K指標(biāo)趨勢}
K底背離:=DDGJ AND KDZB;GD:=C=HHV(C,N);{60日最高點(diǎn)}
GDSJ:=BARSLAST(REF(GD,1));{上一高點(diǎn)時間}
GDGJ:=REF(CLOSE,GDSJ+1)<CLOSE;{股價趨勢}
KGZB:=REF(K值,GDSJ+1)>K值;
K頂背離:=GDGJ AND KGZB;
MACD:="MACD.MACD";
MDZB:=REF(MACD,DDSJ+1)<MACD;{MACD指標(biāo)趨勢}
M底背離:=DDGJ AND MDZB;MGZB:=REF(MACD,GDSJ+1)>MACD;
M頂背離:=GDGJ AND MGZB;RSI:="RSI.RSI1";
RDZB:=REF(RSI,DDSJ+1)<RSI;{RSI指標(biāo)趨勢}
R底背離:=DDGJ AND RDZB;RGZB:=REF(RSI,GDSJ+1)>RSI;
R頂背離:=GDGJ AND RGZB;TYP:=(HIGH + LOW + CLOSE)/3;
CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
CDZB:=REF(CCI,DDSJ+1)<CCI;{CCI指標(biāo)趨勢}
C底背離:=DDGJ AND CDZB;
CGZB:=REF(CCI,GDSJ+1)>CCI;
C頂背離:=GDGJ AND CGZB;
REFLINE: -5,15,30;
ISLASTBAR:=BARSTATUS=2;
DRAWTEXT(K頂背離,IF(ISLASTBAR,27.5,25),'◆'),LINETHICK2 ;
DRAWTEXT(M頂背離,IF(ISLASTBAR,24.5,20),'◆'),LINETHICK2 ;
DRAWTEXT(R頂背離,IF(ISLASTBAR,20.5,15.1),'◆'),LINETHICK2 ;
DRAWTEXT(C頂背離,IF(ISLASTBAR,16.6,10.1),'◆'),LINETHICK2 ;
DRAWTEXT(ISLASTBAR,10.1 ,'CCI '),LINETHICK2,COLORGREEN;
DRAWTEXT(C底背離,IF(ISLASTBAR,12,10.1 ),'◆'),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,15,'RSI '),LINETHICK2,COLORRED;
DRAWTEXT(R底背離,IF(ISLASTBAR,8.5,15),'◆'),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,20,'MACD '),LINETHICK2,COLORMAGENTA;
DRAWTEXT(M底背離,IF(ISLASTBAR,4.5,20),'◆'),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,25,'KDJ '),LINETHICK2,COLORRED;
DRAWTEXT(K底背離,IF(ISLASTBAR,1.5,25),'◆'),LINETHICK2,COLORRED;
大智慧的指標(biāo)好像不能改到通達(dá)信里面哦
價格型的指標(biāo)沒什么用的。就像macd一樣只是換個角度看歷史價格曲線而已。
這個是浪費(fèi)時間
相關(guān)推薦:
專利轉(zhuǎn)讓稅收怎么算(技術(shù)轉(zhuǎn)讓所得繳稅)
失信被執(zhí)行人名單查(被法院列入失信被執(zhí)行人名單后影響)
虐待兒童怎么處理(虐童觸犯了哪些法律)
兒童意外險是什么(意外險如何買 小孩子要買嗎)
哺乳期上班時間規(guī)定(勞動法哺乳期上班時間)