同花顺大机构暗藏选股公式源码

2011-02-17 09:07:00来源:本站整理浏览:191

\红先锋2选股\

ar1=MONEY/VOL;
A=SMA(Var1,5,1)-SMA(Var1,55,1);
B=SMA((A-SMA(A,5,1)),5,1);
风险系数:=B;
aa:=MA(CLOSE,5);
前非红:=IF(REF(CLOSE,1)<REF(aa,1) OR REF(A,1)<REF(A,2) OR REF(B,1)<REF(B,2),1,2);
当红:=IF(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),1,2);
LOWV1:=LLV(LOW,8);
HIGHV1:=HHV(HIGH,8);
RSV1:=EMA((CLOSE-LOWV1)/(HIGHV1-LOWV1)*100,3);
K11:=EMA(RSV1,3);
D11:=MA(K11,2);
LOWV2:=LLV(LOW,21);
HIGHV2:=HHV(HIGH,21);
RSV2:=EMA((CLOSE-LOWV2)/(HIGHV2-LOWV2)*100,3);
K22:=EMA(RSV2,3);
D22:=MA(K22,2);
V5:=MA(V,5);
V18:=MA(V,18);
IF(V>V5 AND V>V18)
    Ll:=6.5;
ELSE Ll:=0;
IF(D11>REF(D11,1))
    dx:=2.1;
ELSE dx:=0;
IF(D11<25)
     dz:=7.6;
ELSE IF(D11<28)
     dz:=6.1;   
ELSE IF(D11<31)
     dz:=4.6;
ELSE IF(D11<35)
     dz:=3.1;     
ELSE IF(D11<40)
     dz:=1.6;
IF(D22<25)
     dz2:=7.6;
ELSE IF(D22<28)
     dz2:=6.1;   
ELSE IF(D22<31)
     dz2:=4.6;
ELSE IF(D22<35)
     dz2:=3.1;     
ELSE IF(D22<40)
     dz2:=1.6;
zz:=Ll+dx+dz+dz2;
SELECT  前非红=1 AND 当红=1 AND zz>16  AND C>O*0.985 AND C>REF(C,1)*0.98 AND C<REF(C,1)*1.072 AND C<REF(C,3)*1.15 ;


趋势雷达3选股
N   1   20  13
M   1   20   5
Var2:=(HIGH+LOW+CLOSE*2)/4;
Var3:=EMA(Var2,21);
Var4:=STD(Var2,21);
Var5:=((Var2-Var3)/Var4*100+200)/4;
Var6:=(EMA(Var5,5)-25)*1.56;
AK:= EMA(Var6,2)*1.22;
AD1:= EMA(AK,2);
a1=CLOSE>MA(CLOSE,n);
a2=CLOSE<MA(CLOSE,m);
a3=CLOSE>MA(CLOSE,m) AND CLOSE<MA(CLOSE,n);
SELECT(AK>AD1 AND ak[1]>ad1[1] AND a1!=0 AND a1[1]==0);


 

资金趋势选股

个股净差BBD:=BIGBUYCOUNT1+BIGBUYCOUNT2+BIGBUYCOUNT3-BIGSELLCOUNT1-BIGSELLCOUNT2- BIGSELLCOUNT3;
DIFF : EMA(个股净差BBD,6) - EMA(个股净差BBD,13);
SELECT DIFF[2]<DIFF[1] AND DIFF[1]<DIFF;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式