当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺警跌买卖回升向导,C动力,买卖强弱指标

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

警跌买卖回升向导(同花顺公式 副图 源码 测试图)未来函数

LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
最佳买入:=(AV + NEWVOL);
买入选股:IF(CROSS(最佳买入,0),4,0),STICK,COLOR00FFFF,LINETHICK2;
VARA1:=SMA(买入选股,3,1);
VARA2:=SMA(VARA1,3,1),COLOR0000FF;
VARA3:=SMA(VARA2,3,1),COLOR00FFFF;
建仓买点:IF(CROSS(VARA2,VARA3) AND (VARA2<40),5,0* 10000),COLOR0000FF,LINETHICK1;
STICKLINE(建仓买点,0,1.5,6,0),COLORFF80FF;
STICKLINE(建仓买点,0.5,2.8,2,0),COLOR3000FF;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
最佳买入时机: IF(CROSS(J,3),1,0),STICK,COLORFFFF00;
STICKLINE(最佳买入时机,0,1,3,0),COLOR009999;
STICKLINE(最佳买入时机,0,1,2,0),COLOR00DDDD;
STICKLINE(最佳买入时机,0,1,1,0),COLOR00FFFF;
机构建仓: IF(最佳买入<5,-0.5,0),STICK,COLOR00FF00,LINETHICK1;
机构建仓日:STICKLINE(机构建仓,0,-1,4,1),COLOR00FF00,LINETHICK5;
BIAS1:=(C-MA(C,6))/MA(C,6)*100,COLORFFDDCC;
BIAS2:(C-MA(C,13))/MA(C,13)*100,COLORFFFFFF,LINETHICK1;
BIAS3:=(C-MA(C,26))/MA(C,26)*100,COLORFFFFFF,LINETHICK1;
乖离:(BIAS1+2*BIAS2+3*BIAS3)/6,COLOR00FFFF;
乖离超限:MA(乖离,3),COLORFF80FF;
STICKLINE(CROSS(乖离,乖离超限) AND 乖离超限<-9,-4,0,1,1),COLORFFFFFF;
STICKLINE(CROSS(乖离超限,乖离) AND 乖离>10,6,0,3,0),COLORFF88FF;
DRAWBAND(MA(乖离,1),RGB(240,120,40),MA(乖离超限,1),RGB(256,200,20));
警跌:IF(BIAS2<REF(BIAS2,1),BIAS2,DRAWNULL),COLORFF6128,LINETHICK3;
回升:IF(BIAS2>REF(BIAS2,1),BIAS2,DRAWNULL),COLOR00FFFF,LINETHICK3;
R:SMA(MAX(CLOSE- REF(C,1),0),6,1)/SMA(ABS(CLOSE- REF(C,1)),6,1)*100,COLORFFCCFF,NODRAW;
R2:SMA(MAX(CLOSE- REF(C,1),0),13,1)/SMA(ABS(CLOSE- REF(C,1)),13,1)*100,COLOR00CCFF,NODRAW;
WWWCHNMONEYCOM:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
STICKLINE(CROSS(R2,R) AND R2>78,2,0,3,-1),COLOR30FFFF;
CC:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD:=L<MA(C,5)*0.921;
EE:=V<MA(V,5)*1.5;
老鼠仓:=(L<(AMOUNT/V)*0.9) AND CC AND DD AND EE,LINETHICK0,COLOR0099FF;
DRAWTEXT(老鼠仓,-5,'老鼠仓'),COLORFFFFFF;
选底:TROUGHBARS(3,15,1)<4,NODRAW;
DRAWTEXT(FILTER(选底=1,3),-2,'底部'),COLOR00FF00;
头部:=IF((PEAKBARS(3,15,1)<10)=1,2,0);
快逃:=IF(头部>REF(头部,1),H,0),colorwhite,NODRAW;
DRAWTEXT(快逃=H,6,'头部'),COLOR0000FF,LINETHICK1;
STICKLINE(CROSS(乖离,BIAS1) AND BIAS2>15,乖离,0,1,0),COLOR3300FF;
DRAWICON(CROSS(乖离,BIAS1*0.382),-1,1),colorgreen;




C动力:

涨势出买,量力而为;下跌出买,三思而行!跌势企稳,轻仓介入;买前出抄,喜事连连!

a1:=EMA(100*WINNER(CLOSE),5);//获利盘比例//

a11:=EMA(100*WINNER(CLOSE),10);//获利盘比例//

b1:=15;

C1:=80;

d1:=0;

e1:=HHV(a1,10);

SC1:=CROSS(a11,a1);SC2:=CROSS(C1,a1);JC1:=CROSS(a1,a11);JC22:=CROSS(a1,b1);

//动力差

zs:=REF(CLOSE,1);

zk:=REF(OPEN,1);

zg:=REF(HIGH,1);

zd:=REF(LOW,1);

Ll:=MA(CLOSE-zs+OPEN-zk+HIGH-zg+LOW-zd+CLOSE-OPEN,20),coloryellow;

L0l:=SMA(CLOSE-zs+OPEN-zk+HIGH-zg+LOW-zd+CLOSE-OPEN,20,2),colorred;

L1l:L0l/CLOSE*10,colorred;

zq:HHV(L1l,10),colorlired;

zq1:LLV(L1l,5),colorwhite;

DRAWTEXT(FILTER(CROSS(L1l,0) AND a1>10 AND REF(L1l,3)<0 AND zq>REF(zq,1),5),d1+0.3,"冲"),coloryellow;

DRAWTEXT(FILTER(JC22 AND L1l>0,8),d1-0.2,"飙"),colorred;

STICKLINE(L1l<0,L1l,0,1,1),colorliblue;

STICKLINE(L1l>0,L1l,0,1,1),colorred;

止跌:IF(L1l=zq AND L1l<0 AND zq>REF(zq,1),(0-L1l)*2,0),coloryellow;

STICKLINE(止跌>0 AND a1>a11,止跌,0,1,1),colormagenta;

TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;

CCI1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

DRAWTEXT(FILTER(止跌>0 AND a1>a11 AND CCI1<100,5),d1+0.3,"稳"),colormagenta;

DRAWTEXT(FILTER(止跌>0 AND a1<a11,9),d1+0.1,"预"),colorlired;

//持仓//

资金趋势:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),coloryellow,LINETHICK2;

VAR1:=HHV(HIGH,9)-LLV(LOW,9);

VAR2:=HHV(HIGH,9)-CLOSE;

VAR3:=CLOSE-LLV(LOW,9);

VAR4:=((VAR2)/(VAR1))*(100)-70;

VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);

VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);

VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);

VAR8:=LLV(LOW,34);

VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);

VAR10:=IF((VAR9>100),VAR9-100,0);

VAR11:=HHV(HIGH,34);

B11:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8)*4;

机构持仓:=EMA(B11,13),colorred;

z1:=(b11-机构持仓)*5;

DRAWTEXT(FILTER(CROSS(20,z1),5),d1-0.2,"废"),colorgreen;

DRAWTEXT(FILTER(止跌>0 AND a1>a11 AND CCI1<100 AND z1>0,5),d1-0.2,"启"),colormagenta;

//超买卖

//参数设置!//

TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;

CCI1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

ca:=100,colorred;

cb:=-100,colorgreen;

cc:=0;

E1:=CROSS(cA,CCI1);

sg1:=e1 AND z1<REF(z1,1);//卖1震荡下降趋势用cci死叉//

//卖股!//

DRAWICON(FILTER(sg1 AND z1<250,2),d1-0.1,2);

DRAWTEXT(FILTER(sg1 AND z1<250 AND z1>111,2),d1-0.2,"警"),colorwhite;

DRAWTEXT(FILTER(sg1 AND z1<111,2 ),d1+0.3,"刹"),colorwhite;

DRAWTEXT(FILTER(zq1<REF(zq1,1) AND zq1>0 AND z1>0 AND zq<REF(zq,10) AND REF(zq,10)>REF(zq,15),5),zq+0.5,"减仓"),colorgreen;

DRAWTEXT(FILTER(zq1<REF(zq1,1) AND zq1>0 AND z1<0 AND zq<REF(zq,10) AND REF(zq,10)>REF(zq,15),5),zq+0.3,"报废"),colorgreen;




买卖强弱(顶尖股票学院: http://58188.com):

 TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;

CCI1:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
ca:100,colorred;
cb:-100,colorgreen;
cc:=0;

上一篇:同花顺小杨趋势出击线,沐阳金堆指标

下一篇:同花顺底部确定,均线配合抄底,趋势指标自用