求通达信改成选股公式

查看 45|回复 2
作者:wcf5622476   
DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);
KK:=IF(C>=O AND (C>=REF(C,1) OR REF(C,1)>=REF(O,1)),1,IF(C=O;
红K2:=KK=1 AND C=O;
红K:=红K1 OR 红K2 OR 红K3;
DIFF:=(EMA(C,26)-EMA(C,52));
DEA:=EMA(DIFF,52);
MACD:=(2*(DIFF-DEA));
DIF:=(EMA(C,26)-EMA(C,52));
ESS:=EMA(C,26);
EGG:=EMA(C,52);
西楚霸王:=(((((((((52-1)*(26+1))*EGG)*1)-((((52+1)*(26-1))*ESS)*1))+(((26+1)*(52+1))*DIF))*1)/((2*52)-(2*26)))*1),COLORYELLOW;
霸王线多头:=西楚霸王>=REF(西楚霸王,1);
RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
买入:=CROSS(K,D);
霸王举鼎:=红K AND 霸王线多头 AND 买入;

霸王, 多头

aixinsq   

C>=O AND (C>=REF(C,1) OR REF(C,1)>=REF(O,1)) AND (C>=O OR REF(C,1)>=REF(O,1)) AND (EMA(C,26)-EMA(C,52))>0 AND EMA(C,26)>=REF(EMA(C,26),1) AND CROSS(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5), SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5),3))
C>=O AND (C>=REF(C,1) OR REF(C,1)>=REF(O,1)) 对应红K条件部分;
(EMA(C,26)-EMA(C,52))>0 AND EMA(C,26)>=REF(EMA(C,26),1) 对应霸王线多头条件部分;
CROSS(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5), SMA(SMA((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,5),3)) 对应买入条件部分。
aixinsq   

其实选股你创建一个指标,在通达信软件里用综合选股,找到对应条件触发后,就可以了。不用这么麻烦的
您需要登录后才可以回帖 登录 | 立即注册

返回顶部