老师把这个公式改成通达信选股公式选出当天出现买入信号的股票

N1:=5;N2:=10;
LC:=REF(CLOSE,1);
A0:=(2*C+H+L)/4;
均线:=MA(A0,3)>REF(MA(A0,3),1);
安全线:2,COLORRED,POINTDOT,LINETHICK4;
A1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;
K:MA(3*SMA(A1,6,1)-2*SMA(SMA(A1,5,1),5,1),3),LINETHICK1,COLORF00FF0;
D:MA(K,3),COLORFF0000,LINETHICK1;
J:3*K-2*D,LINETHICK1,COLORF00FF0;
DRAWBAND(K,RGB(155,50,50),D,RGB(0,100,50));
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
底线:0,COLORFF00FF;
顶线:10,COLORFF0000;
STICKLINE(UP,0,0.2,3,0),COLOR0000FF;
STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;
STICKLINE(BT,0,3,2,0),COLOR000088;
STICKLINE(BT,0,3,1,0),COLOR0000CC;
STICKLINE(BT,0,3,0.22,0),COLOR0000FF;
DRAWTEXT(BT,3,'短牛'),COLOR0000FF;
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
STICKLINE(TJ1,0,2,3,0),COLOR880088;
STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;
STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;
STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;
DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
STICKLINE(TJ2,0,1,5,0),COLOR008888;
STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;
STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;
STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;
DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF;
ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);
STICKLINE(ST,10,9,5,0),COLOR008800;
STICKLINE(ST,10,9,2,0),COLOR00AA00;
STICKLINE(ST,10,9,1,0),COLOR00CC00;
STICKLINE(ST,10,9,0.2,0),COLOR00FF00;
DRAWTEXT(ST,9,'卖'),COLOR00FF00;
DIFF:EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:EMA(DIFF,9),COLORFFFF00;
A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA);
DRAWTEXT(底背离,-0.6,'底背离'),COLORWHITE;
A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(顶背离,11,'顶背离'),COLORWHITE;

VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0);
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
短牛:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
中牛:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
大牛:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
选三牛之一:短牛+中牛+大牛>0;追问

老师这个指标的买点会漂移或者消失掉吗?

追答

会的。因为用到“DRAWLINE”令人讨厌的函数。没有赋值时仅只是一个划线函数,一旦赋值,就变成未来函数了。使用时,务请小心,配合其他指标综合判断,有一定的参考价值。

温馨提示:内容为网友见解,仅供参考
第1个回答  2011-05-15
这类的问题最好署上个名吧!

请老师把这个公式该为通达信选股公式,要求选出'买“信号的股票;谢谢了...
VAR3:=(CLOSE-MA(CLOSE,6))\/MA(CLOSE,6)*100;VAR4:=(CLOSE-MA(CLOSE,24))\/MA(CLOSE,24)*100;VAR5:=(CLOSE-MA(CLOSE,32))\/MA(CLOSE,32)*100;VAR6:=(VAR3+VAR4+VAR5)\/3;VAR7:=EMA(VAR6,5);指标:=EMA(EMA(VAR3,5),5)*3;VAR8:=IF(VAR6<=-20,10,0);VAR9:=HHV(VA...

请老师帮把这个公式改成通达信选股公式
DXR:=(((ADX + REF(ADX,5)) \/ 2) + RSI5);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) \/ (HHV(HIGH,10) - LLV(LOW,10)));NEWVOL:=(RSI5 - WR10);最佳买入:=(AV + NEWVOL);AA:CROSS(最佳买入,0);--- “最佳买入时机”公式:RSV:=(((CLOSE - LLV(LOW,9)) \/ (HHV(...

将通达信公式修改成通达信的选股公式
均线:=IF(BETWEEN(C\/(SUM(AMOUNT,0)\/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)\/SUM(VOL*100,0)));均线H:=(均线*1.007 );放量:=SUM(VOL,6)>REF(MA(VOL,30),1)*10;横盘:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))\/CLOSE)<1;横涨:=横...

...编写选股公式?选出 出现“绝买”买入信号的股票?
当前公式 : “绝买”买入 (指标画线公式)错误句 :DRAWTEXT(唐鸭头,0.8 , \\1),COLORRED 详细信息 : 未知字符串 \\1 错误起始位置 : 627 ; 长度: 2

请求好人高手把这个公式做成通达信选股预警公式,主力筹码集中度线金叉主...
主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))\/(HHV(HIGH,34)-LLV(LOW,34)),3);指数趋势:=EMA(100*(INDEXC-LLV(INDEXL,34))\/(HHV(INDEXH,34)-LLV(INDEXL,34)),3);强弱分界:=80;主力筹码集中度:=WINNER(C)*100;散筹筹码集中度:=(WINNER(C*1.1)-WINNER(C*0.9))*100;选股:CROSS(...

请老师将趋势顶底指标公式改成通达信选股公式,选出如下图所示的股票...
底:=10,COLORCC6633,LINETHICK2;A:=MA(-100*(HHV(HIGH,34)-CLOSE)\/(HHV(HIGH,34)-LLV(LOW,34)),19);B:=-100*(HHV(HIGH,14)-CLOSE)\/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)\/(HHV(HIGH,34)-LLV(LOW,34)),4);长期线:=A+100,COLOR9900...

劳驾把此公式改为通达信K 上穿D预警 VAR1:=(2*CLOSE+HIGH+LOW)\/4; VA...
这个是指标公式,放在指标公式里边,用来查看指标情况。VAR1:=(2*CLOSE+HIGH+LOW)\/4;VAR2:=EXPMA(EXPMA(EXPMA(VAR1,4),4),4);J:=(VAR2-REF(VAR2,1))\/REF(VAR2,1)*100, COLORSTICK;D:=MA(J,3);K:=MA(J,1);AA:=CROSS(K,D);XX:DRAWICON(CROSS(K,D),K,3);这个是选股公式...

...三角出现的时候 也就是 买入信号出现时的选股公式
趋势J1:=3*K-2*D;趋势J2:=EMA(K,3);WH:=DRAWLINE(D>=HHV(D,21),D,D<=LLV(D,21),D,1);三角出现:CROSS(趋势J1,WH) AND CROSS(趋势J2,WH);--- 注意:WH句具有一定的未来性

通达信选股公式
麻烦把以下公式修改成只选出当天庄家大于昨天庄家的选股公式,如7月18日002274那样的,我编写成庄家>REF(庄家,1);时间固定为7.18日 但还是选不出002274选股公式M:=55; N:=34; M1:=10;散户:=100*(HHV(HIGH,M)-CLOSE)\/(HHV(HIGH,M)-LLV(LOW,M)); RSV:=(CLOSE-LLV(LOW,N))\/(HHV(HIGH,N)-LLV(...

请把下列公式改为选股公式(通达信)
N1:=18;N2:=50;N3:=32;CPX:=(MA(C,8)*N1\/100+MA(C,30)*N2\/100+MA(C,60)*N3\/100);NOTEXTWS:=CPX>REF(CPX,1) AND MA(C,30)>REF(MA(C,30),1) AND C>CPX AND C>MA(C,30);NOTEXTWX:=CPX<=REF(CPX,1) AND MA(C,30)<=REF(MA(C,30),1) AND C<CPX AND C<MA...

相似回答