请高手帮做两个选股公式? 第一个是出现试买为选股,第二个为买入时选股?源码如下?

VARE:=MA(100*(CLOSE-LLV(CLOSE,55))/(HHV(HIGH,55)-LLV(LOW,55)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,L-0.15,'←试买'),LINETHICK1,COLORFF00FF;

VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,L-0.15,'←买) COLORWHITE;
第一个为试买 选股, 第二个为买入时选股?

试买 选股:

VARE:=MA(100*(CLOSE-LLV(CLOSE,55))/(HHV(HIGH,55)-LLV(LOW,55)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
XG:VAR11 AND COUNT(VAR11,30)=1;

买入时选股:

VARE:=MA(100*(CLOSE-LLV(CLOSE,55))/(HHV(HIGH,55)-LLV(LOW,55)),5)-20;
VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
XG:VAR1C AND COUNT(VAR1C,30)=1;

(已测试)
温馨提示:内容为网友见解,仅供参考
第1个回答  2013-09-10
试买:VAR11 AND COUNT(VAR11,30)=1;
买:VAR1C AND COUNT(VAR1C,30)=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;BOLL10:=MA(C,10);LOWER:=BOLL10-2*STD(CLOSE,20);MA1:=MA(CLOSE,5);TYP:=(HIGH+LOW+CLOSE)\/3;CCI14:=(TYP-MA(TYP,14))\/(0.015*AVEDEV(TYP,14));META抄...

80分请高手改写选股公式
K:=SMA(R,3,1);D:=SMA(K,3,1);J:=3*K-2*D;M:=MA(R,40);S:=STD(R,40);高:=M+2*S;中:=M;低:=M-2*S;CROSS(J,中) AND K>D

请大师将下面通达信附图指标公式改为出现“买”的条件选股公式
C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1);XG:CROSS(C1,C2) AND C1<40;(已测试)

请高手把这条公式分别出现加仓和买入做为两条选股公式谢谢
MA30:=MA(C,30);五日乖离率:=(C-MA05)\/MA05*100;BB05:=ATAN((MA05\/REF(MA05,1)-1)*100)*180\/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))\/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);三拾日乖离率:=(C-MA30)\/MA30*100;加仓:FILTER(COUNT...

请教,选股公式源码如何在分析软件中用?
第七讲从源码中提取选股公式 要点:从后往前找,删除没用条,去掉修饰符,个别加等号。例一:找出买点VAR1:=(((HHV(HIGH,36) - CLOSE) \/ (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR2:=SMA(VAR1,5,1);VAR3:=SMA(VAR2,8,1);H1:EMA(CLOSE,8),LINETHICK1;H2:EMA(H1,20),LINETHICK1;VAR4:=...

请问手帮我做个选股公式,就是出现买字为选股.谢谢。
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);买...

请高手老师编辑选股公式,把这个源码里的红箭头选出来,源码如下:
朋友,以下是你要的选股公式:G2:=EMA(C,5);G3:=EMA(C,10);G4:=EMA(C,20);G5:=EMA(C,30);G6:=(G2+G3+G4+G5)\/4;G7:=(G6-REF(G6,15))\/REF(G6,15)*100;G8:=(G6-REF(G6,15))\/REF(G6,15)*100;G9:=EMA(G7,8);遍地黄金:=G2*1.5,COLORYELLOW;洗筹:=...

请老师帮我改为选股公式,谢谢
VARA2:=LLV(LOW,10);VARA3:=HHV(HIGH,25);动力线:=EMA((CLOSE-VARA2)\/(VARA3-VARA2)*4,4);XXG:CROSS(动力线,1.25);

请高手将以下二个公式改为条件选股公式 ,多谢!!!
CLOSE,1);大资金活动:IF(VAR20 AND COUNT(VAR20,30)=1,18,0);趋势线:=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);买入时间:CROSS(趋势线,10);{以上是两个选股} ...

请高手老师改两个选股公式,第二个只要出钱袋子信号就好,谢谢!
买股+见底+买进>=1;=== {第二个只要出钱袋子信号} VAR3:=(2*CLOSE+HIGH+LOW)\/3;{可将3该为4,信号少点} VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点} E:=(VAR4-REF(VAR4,1))\/REF(VAR4,1)*100;F:=MA(E,3)+0.03;G:=MA(E,1);钱袋:CROSS(G,F)...

相似回答