通达信活跃股排序

[复制链接]
查看81 | 回复0 | 2022-7-8 12:20:08 | 显示全部楼层 |阅读模式

N:=8;N1:=5;
 VAR42:=SUM(IF(C>REF(C,1),100*VOL/CAPITAL,IF(C<REF(C,1),(-100)*VOL/CAPITAL,0)),0);
 VAR43:=MA(VAR42,5);
 VAR44:=MA(VAR42,10);
 VAR45:=MA(VAR42,21);
 VAR46:=2300000000*VOL/INDEXV/CAPITAL;
 VAR47:=MA(VAR46,5);
 VAR48:=MA(VAR46,34);
 VAR49:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
 VAR4A:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
 VAR4B:=100*REF(CLOSE,1)*(1+2*VAR4A-VAR49);
 VAR4C:=EMA(EMA(VAR4B,6)-EMA(VAR4B,13),5);
 VAR4D:=EMA(EMA(VAR4B,6)-EMA(VAR4B,13),15);
 VAR4E:=MA(CLOSE,10);
 VAR4F:=HHV(VAR4E,3)=HHV(VAR4E,5);
 VAR410:=VAR4C>=0.97*VAR4D AND EMA(VAR4B,6)-EMA(VAR4B,13)>0;
 VAR411:=VAR43>0.97*VAR44 AND VAR42>=VAR45;
 VAR412:=IF(VAR411=1 AND VAR410=1 AND VAR4F=1,1,0);
 VAR413:=VAR412*(VAR46+VAR47>=2*VAR48 AND VAR47>=VAR48);
 VAR414:=IF(VAR413>0,VAR46+VAR47-2*VAR48,0);
 
起步排序1:MA(1/WINNER(CLOSE)*100,N)/10000;
 {STICKLINE(起步排序1>0.5,0,起步排序1,1,1),COLORRED};
 VAR1:=MA(HHV(HIGH,485),17);
 VAR2:=MA(HHV(HIGH,222),17);
 VAR3:=MA(HHV(HIGH,96),17);
 VAR4:=MA(LLV(LOW,485),17);
 VAR5:=MA(LLV(LOW,222),17);
 VAR6:=MA(LLV(LOW,96),17);
 VAR7:=MA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,17);
 VAR8:=MA((VAR4*1.25+VAR5*1.23+VAR6*1.2 +VAR1*0.55 +VAR2*0.55 +VAR3*0.65 )/6,17);
 VAR9:=MA((VAR4*1.3 +VAR5*1.3 +VAR6*1.3 +VAR1*0.68 +VAR2*0.68 +VAR3*0.68 )/6,17);

 VARA:=MA((VAR7*3+VAR8*2+VAR9)/6*1.738,17);
 VARC:=LOW;
 VARD:=REF(LOW,1);
 VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),N,1)*100;
 VARF:=MA(IF(CLOSE*1.35<=VARA,VARE*10,VARE/10),N);
 VAR10:=LLV(LOW,30);
 VAR11:=HHV(VARF,30);
 买点排序:MA(IF(LOW<=VAR10,(VARF+VAR11*2)/2,0),N);
 HLP:=WINNER(CLOSE);
 {以今天收盘价计算的获利盘比例}
 CJ:=VOL/CAPITAL;
 {今日换手率}
 CM:=CJ/HLP;
 {今日换手率/以今天收盘价计算的获利盘比例,意义是在当前
 比例获利盘的前提下,换手是在增大还是减小}
 底部排序:IF(HLP<N/100,CM,0);
 {在获利盘小于N/100时的换手是在增大还是减小}
 {涉及本指标准确度的主要有:WINNER函数本身,股本数据的准确性等。}
 VAR21:=(HHV(C,N1)-LLV(C,N1))/LLV(C,N1)*100;
 VAR22:=V/CAPITAL*100;
 VAR23:=MA(VAR22,N1);
 VAR24:=COUNT(VAR22<1,N1);
 VAR25:=VAR21<15 AND VAR23<3 AND VAR24>N1-2;
 能量排序:IF(COUNT(VAR25,15)>=1,1,0)*(V/CAPITAL*100);
 VAR31:=AMOUNT/VOL/100;
 VAR32:=(VAR31-REF(VAR31,1))/REF(VAR31,1);
 VAR33:=100*VOL/CAPITAL;
 VAR34:=VAR32/VAR33;
 VAR35:=SUM(VAR34,10);
 VAR36:=(VAR35-REF(VAR35,10))/REF(VAR35,10);
 VAR37:=VOL/(HIGH-LOW);
 VAR38:=VAR37>REF(VAR37,1);
 VAR39:=REF(VAR37,1)>REF(VAR37,2);
 波动排序:IF(WINNER(CLOSE)<5/100 AND VAR33>0.1 AND VAR38 AND
 VAR39,VAR36,0);
 {DRAWTEXT(波动排序>0,0.5,'回0,买入信号才成立' ),COLORMAGENTA};
 {低价股:C<=9.99,COLORRED;
 中价股:C>=10 AND C<=19.99;
 高价股:C>=20 AND C<=29.99;
 狂价股: C>=30 AND C<=39.99;
 暴价股: C>=40};
 

2110455297.jpg

2110455297.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则