唉呀妈呀 发表于 2013-5-9 20:24

哪位老师帮忙改个选股公式(有未来)谢谢!

VARA:=BARSCOUNT(CLOSE)*3.142/180;
A2: SIN(VARA*8)*100,LINETHICK2;
A3: COS(VARA*8)*100,LINETHICK2;
X1: 0;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR8:=EMA(VAR6,8);
注意: STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,5,0);
转强: STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,5,0),COLORYELLOW;
买点: STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,10,0);
DRAWICON(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,30),-140,4);
DRAWTEXT(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,30),-40,'买点'),COLORFFFFFF;
持股: STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,5,0),COLORRED;
观望: STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,10,0);
持币: STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,5,1),COLORFFFF00;
VAR9:=TROUGHBARS(3,15,1)<10;
VAR10:=PEAKBARS(3,15,1)<10;
VAR11:=IF(VAR9=1,50,0);
VAR12:=IF(VAR10=1,50,0);
底部:= IF(VAR11=50,50,0);
头部:= IF(VAR12=50,100,0);
A:IF( 底部>REF(底部,1),50,0);
AA:IF(头部>REF(头部,1),50,0);
DRAWTEXT(A=50,100,'买' ),COLORRED,LINETHICK2;
DRAWTEXT(AA=50,100,'卖'),COLOR00FF00,LINETHICK2;
注意底部:0,COLORFFFFFF;
低位转强:0,COLORYELLOW;
坚决持股:0,COLORRED;
谨慎观望:0,COLOR400080;
果断持币:0,COLORFFFF00;

唉呀妈呀 发表于 2013-5-9 20:44

{:soso_e100:}

速战快乐赚钱 发表于 2018-11-13 09:44

天天向上, 努力学习。

股龙先生 发表于 2013-5-9 20:51

{:soso_e185:}

股龙先生 发表于 2013-5-9 20:55

谢谢分享。

自在沃龙 发表于 2013-5-9 21:39

谢谢分享

随波逐浪 发表于 2013-5-9 22:15

VARA:=BARSCOUNT(CLOSE)*3.142/180;
A2: SIN(VARA*8)*100,LINETHICK2;
A3: COS(VARA*8)*100,LINETHICK2;
X1: 0;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR8:=EMA(VAR6,8);
注意: STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,5,0);
转强: STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,5,0),COLORYELLOW;
买点: STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,10,0);
DRAWICON(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,30),-140,4);
DRAWTEXT(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,30),-40,'买点'),COLORFFFFFF;
持股: STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,5,0),COLORRED;
观望: STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,10,0);
持币: STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,5,1),COLORFFFF00;
VAR9:=TROUGHBARS(3,15,1)<10;
VAR10:=PEAKBARS(3,15,1)<10;
VAR11:=IF(VAR9=1,50,0);
VAR12:=IF(VAR10=1,50,0);
底部:= IF(VAR11=50,50,0);
头部:= IF(VAR12=50,100,0);
A:=IF( 底部>REF(底部,1),50,0);
A=50;

请注意最后两行,就是修改的地方。你试试吧

唉呀妈呀 发表于 2013-5-9 22:22

谢谢老师帮忙,我试试

唉呀妈呀 发表于 2013-5-9 22:29

对不起,条件选股公式江恩选股条件不能超过1个

是什么意思?

飒妮 发表于 2013-5-9 22:52

:):):)

随波逐浪 发表于 2013-5-9 23:15

我自己试了一下,有问题,等弄好再回复你

唉呀妈呀 发表于 2013-5-10 09:36

好的,{:soso_e100:}谢谢

字典 发表于 2013-5-10 10:22

我自己试了一下,有问题,等弄好再回复你

随波逐浪 发表于 2013-5-10 16:52

X1:=0;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR8:=EMA(VAR6,8);
VAR9:=TROUGHBARS(3,15,1)<10;
VAR9=1 AND VAR9=REF(VAR9,1);


这公式终于搞好了,由于此指标要见底回升后才出“A=50”买的信号,所以等公式选出时,已经是几天后,不过也提高了一定的安全性,选出的个股数量有点多,如果你能配合量柱进一步决策还是有一定作用。

唉呀妈呀 发表于 2013-5-10 20:40

可以了,多谢老师!辛苦啦!

心平 发表于 2013-5-10 20:52

进退有据,速战急归,一柱一线,快乐赚钱!
页: [1] 2
查看完整版本: 哪位老师帮忙改个选股公式(有未来)谢谢!