趋势向上副图指标及选股源码
2014-9-13 21:45:26点击:
趋势向上副图指标源码
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;
T:=20;N:=2;M:=30;
DIRECTION:=CLOSE-REF(CLOSE,T);
VOLATILITY:=SUM(ABS(CLOSE-REF(CLOSE,1)),T);
ER:=SUM(ABS(DIRECTION/VOLATILITY),1);
FASTC:=2/(N+1);
SLOWC:=2/(M+1);
SMOWC:=ER*(FASTC-SLOWC)+SLOWC;
SMOOTH:=ER*(FASTC-SLOWC)+SLOWC;
SE:=SMOOTH*SMOOTH;
YY:=REF(CLOSE,1)+SE*(CLOSE-REF(CLOSE,1));
AA:=IF(SUM(1,0)=T+1,YY,0);
BB:=BARSLAST(AA>0);
CC:=REF(CLOSE,BB);
AMA1:=REF(CC,1)+SE*(CLOSE-REF(CC,1)),COLOR00FF00;
AMA2:DMA(CLOSE,SE),COLOR00FF00,LINETHICK2;
BUY:=CROSS(AMA1,AMA2) AND AMA2>REF(AMA2,1);
SELL:=CROSS(AMA2,AMA1);
持股:AMA1>AMA2,NODRAW,COLORRED;
持币:AMA1<=AMA2,NODRAW,COLORGREEN;
趋势向上:IF(AMA2>REF(AMA2,1),AMA2,DRAWNULL),COLORRED,LINETHICK2;
趋势向上 条件选股 预警 指标源码
T:=20;N:=2;M:=30;
DIRECTION:=CLOSE-REF(CLOSE,T);
VOLATILITY:=SUM(ABS(CLOSE-REF(CLOSE,1)),T);
ER:=SUM(ABS(DIRECTION/VOLATILITY),1);
FASTC:=2/(N+1);
SLOWC:=2/(M+1);
SMOWC:=ER*(FASTC-SLOWC)+SLOWC;
SMOOTH:=ER*(FASTC-SLOWC)+SLOWC;
SE:=SMOOTH*SMOOTH;
YY:=REF(CLOSE,1)+SE*(CLOSE-REF(CLOSE,1));
AAA:=IF(SUM(1,0)=T+1,YY,0);
BB:=BARSLAST(AAA>0);
CC:=REF(CLOSE,BB);
AMA1:=REF(CC,1)+SE*(CLOSE-REF(CC,1));
AMA2:=DMA(CLOSE,SE),COLORFFAA00,LINETHICK2;
AA:=CROSS(AMA1,AMA2) AND AMA2>REF(AMA2,1);
BBB:=CROSS(AMA2,AMA1);
持股:=AMA1>AMA2;
持币:=AMA1<=AMA2;
一字涨停:=C/REF(C,1)>1.0975 AND H=O;
流通盘:=CAPITAL/1000000<4.67 AND C<21.10;
停牌:=(DYNAINFO(4)=0);股价:=C>=4.58 AND C<18.98;
MM:=NOT(停牌); D22:=IF(NAMELIKE('S'),0,1);
D33:=IF(NAMELIKE('*'),0,1);
去ST:=D22 AND D33;
过滤:= 股价 AND MM AND 去ST AND IF(CODELIKE('300'),0,1)
AND NOT(一字涨停) AND 流通盘 AND DYNAINFO(23)<>DYNAINFO(22);
涨停板:=(C-REF(C,1))/REF(C,1)*100>=8.48 AND C>O;
RN:=45; W:=1;
只有一个:=COUNT(涨停板,RN)>=W;
有涨板:=EXIST(只有一个,45)>=1;
放量连扳:=COUNT(EVERY(C/REF(C,1)>1.08,3),60)=1
AND COUNT(V/REF(V,1)>3,60)>=1;
RT:=60; WT:=1;
连扳:=COUNT(放量连扳,RT)>=WT;
有连扳:=EXIST(连扳,60)=1;
AAV:=有涨板 OR 有连扳;
TJS:=50;
累计十天换手:=SUM(VOL/CAPITAL*100,10)>TJS;
P:=90;
D:=15;
单峰密集:=SCR(P)<D;
昨天跌幅大于:=REF(C,1)/REF(C,2)<0.97 AND C/REF(C,1)<>1.02;
RH:=30; WH:=1;
昨天跌幅:=COUNT(昨天跌幅大于,RH)>=WH;
有跌幅:=EXIST(昨天跌幅,13)=1;
条件:=累计十天换手 OR 单峰密集 AND AAV AND 有跌幅;
倾角大于:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>45;
趋势向上:=(AMA2>REF(AMA2,1)) AND 持股;
RV:=28; WV:=1;
有一个:=COUNT(趋势向上,RV)>=WV;
有向上:=EXIST(有一个,28)=1;
趋势上:有向上 AND 过滤 AND 条件 AND 累计十天换手 AND 倾角大于
AND 单峰密集 AND 有跌幅 AND C/REF(C,1)>1.00 AND C>0;
- 上一篇:老树开花——强势回调买入 2014/9/13
- 下一篇:也许低位源码 副图源码 选股 2014/9/12