求大神将以下指标公式改为选股公式,通达信的,万分感谢!!!!!!!
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,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),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*20)LINETHICK2 COLORRED;
MID:MA(RSI,M)LINETHICK2 COLORGREEN;
UPPER:MID+P*STD(RSI,M)LINETHICK2 COLORYELLOW;
LOWER:MID-P*STD(RSI,M)LINETHICK2 COLORBLUE;
IF(RSI<MID,RSI,DRAWNULL)LINETHICK2 COLORWHITE;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1));
DRAWICON(CROSS(CCI,-100) AND (RSI>MID),1,24);
DRAWTEXT((CROSS(CCI,-100) AND (RSI>MID)),0,'CCI买');
MOBV:=OBV-MA(OBV,M1);
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);
公式是改过了也经通达信测试通过。因其中参数(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);
追问
大哥,很多地方不对呢,你确定你改的是通达信的?
是不是您使用的通达信版本太低有些函数不支持啊,的确通达信通过的,如图:
求大神将以下指标公式改为选股公式,通达信的,谢谢
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);RS...
请高手帮忙把这个通达信里的指标公式改成选股公式,万分感谢啊!_百度...
这个公式很准,但有未来函数。选股公式如下: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是标准的未来函数,也就是信号会发生漂移。因此这个公式只能用来做参考,且莫用做股...
请大师帮我将通达信附图指标公式改为选股公式
朋友,以下是你要的选股公式:A1:=EMA(C,12)-EMA(C,25);A2:=EMA(A1,6);获利回吐:=(A2>=0)*A2,COLORWHITE,LINETHICK0;大黑马:=(A2<0)*A2,COLORD4FF7F,LINETHICK0;坚绝做空:=(A1<0)*A1,COLORB00058,LINETHICK0;买入持股:=(A1>=0)*A1,COLORRED,LINETHICK0;VAR8:=VOL>2*MA(VOL,...
如何把以下指标公式改为通达信条件选股公式并进行预警?谢谢
此公式可以直接在通达信软件中用来预警或选股。BB1:= LOW<AMOUNT\/VOL*0.9;CC1:= (CLOSE-REF(CLOSE,1))\/REF(CLOSE,1)*100>1.2;DD1:= LOW<MA(CLOSE,5)*0.921;EE1:= VOL<MA(VOL,5)*1.5;FF1:= BB1 AND CC1 AND DD1 AND EE1;买3:= FILTER(FF1,3);长期底部:= LLV(HIGH,30...
求助 通达信指标改选股公式
A1:=REF(V,1);A2:=DVOL;A3:=A2\/A1;LNX:=A3-REF(A3,1);E1:=REF(C,1);E2:=DCLOSE;E3:=(E2-E1)\/E1*100;QMX:=E3-REF(E3,1);XG:CROSS(LNX,500) AND CROSS(QMX,10);
将通达信指标公式改写为选股公式
L1:=LLV(L,10);爆发点:=(DCLOSE-REF(C,1))\/REF(C,1)*100;XG:CROSS(爆发点,20) OR CROSS(爆发点,18);上面就是修改后的选股公式,希望能帮助到你。另外,这个指标确实不错。不过我注意到公式里面有一个函数:DCLOSE,这是一个不定周期函数,是隐性未来函数。用他信号就会漂移。不像CLOSE盘...
求通达信公式改为选股,感谢
T1R:=XMA(XMA(XMA(EMA(CLOSE,1),2),2),2);TR1:=EMA((T1R-REF(T1R,1))\/REF(T1R,1),1)*1000,COLORFF00FF,NODRAW;净:=XMA(TR1,11);流:=EMA(净,11);主力动向:=EMA(净+流,1)-XMA(净-流,2);MA1:=XMA(主力动向,11);MA3:=EMA(MA1,2);XG1:CROSS(MA1,0);XG2:CROSS(MA1...
请高手把通达信指标写出选股公式
VAR4:=MA((CLOSE-LLV(LOW,20))\/(HHV(HIGH,20)-LLV(LOW,20))*100,3);VAR5:=(MA(AMOUNT,5)\/MA(VOL,5)\/100-MA(AMOUNT,120)\/MA(VOL,120)\/100)\/(MA(AMOUNT,5)\/MA(VOL,5)\/100);D1:=CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2)...
请把下面公式编写成通达信选股公式,要求选出四量第一天全红,谢谢
MID:=(3*CLOSE+LOW+OPEN+HIGH)\/6;牛线:= (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF...
通达信指标改为选股公式(筹码方面)
锁定筹码:=EMA((HSL-ZXL)\/ZXL*XS,13);浮动筹码:=EMA((ZDL-HSL)\/HSL*XS,13);力量对比:=锁定筹码-浮动筹码,COLORSTICK;XG:力量对比>150;{力量对比大于150的个股} A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)\/EMA(EMA(ABS(A7),6),6);买进:=(LLV(A8,2)=LLV(A8,7) AND COUNT...