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

同花顺源码:BS竞价量,波段买卖,高抛低吸抄底配合

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

1、BS竞价量,集合竞价

竞价阶段看竞价量所用,结合成交量和资金流向可以预判一天的走势

IF(PERIODNAME<>"日线")

{
RETURN;
}
JJ:=OPENVOL;
JZ:IF(C>=REF(C,1),JJ,NULL),colorred;
JD:IF(C<REF(C,1),JJ,NULL),colorgreen;
//STICKLINE(C>=REF(C,1),0,JJ,0),colorred;
//STICKLINE(C<REF(C,1),0,JJ,0),colorgreen;
//昨竞价量:IF(1,REF(JJ,1),NULL),colorred,NODRAW;
//今竞价量:IF(1,JJ,NULL),colorred,NODRAW;
//竞价量比:IF(1,JJ/REF(JJ,1),NULL),colorred,NODRAW;
昨竞价量:REF(JJ,1),colorred,NODRAW;
今竞价量:JJ,colorred,NODRAW;
竞价量比:JJ/REF(JJ,1),colorred,NODRAW;



2、波段买卖

这是同花顺公式,有无未来,自己判断,喜欢就拿去用。指标是死的,盘是活的,

DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));
M5:MA(C,5);
M10:MA(C,10);
C:=CROSS(M5,M10);
D:=CROSS(M10,M5);
E:= M5<REF(M5,1)AND M5>M10;
DRAWTEXT(C AND M5>REF(M5,1),M5*0.975,"买入"), colorgreen;
IF(C, M5*0.98,DRAWICON(C,M5,1)) ;
DRAWTEXT(D AND M5<REF(M5,1),M10*1.025,"卖出"),colorred;
IF(D,M10*1.02, DRAWICON(D,M10,2));
DRAWTEXT(FILTER(E,4),M5*1.04,"注意风险"),coloryellow;
IF(E,M5*1.02,DRAWICON(E,M5,2));



3、高抛低吸抄底配合,抄底打配合

顶部线:80;
中部线:50;
底部线:20;
生命指数:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
顶:IF(生命指数>90,80,90);
底:IF(生命指数<10,20,10);
买入时间: IF(CROSS(生命指数,底),15,0);
N1:=3;N2:=7;N3:=21;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
ZB1:=RSI1<底;
建仓:IF(CROSS(RSI1,底) ,10,0),LINETHICK1;
DRAWICON(CROSS(RSI1,底) ,20,1);
DRAWICON(建仓 AND 买入时间,10,1);
ZB2:=(ZB1=0 AND RSI1<=顶);
卖出:IF(ZB2=1 AND REF(ZB2,1)=0 AND 建仓=0,90,100),LINETHICK1;
 
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
A:=SMA(RSV,3,1);
B:=SMA(A,3,1);
E:=3*A-2*B;
IF(A<0) A=0;
IF(A>100) A=100;
IF(B<0) B=0;
IF(B>100) B=100;
K:A;
D:B;
STICKLINE(K>=D,K,D,4,0), colorred;
STICKLINE(K<D,K,D,4,0), colorgreen;
DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR9:=SMA(VAR8,13,8);
生命指数: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
顶:IF(生命指数>90,80,90);
底:IF(生命指数<10,20,10);
买入时间: IF(CROSS(生命指数,底),20,0);
N1:=3;N2:=7;N3:=21;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
ZB1:=RSI1<底;
建仓:IF(CROSS(RSI1,底) ,10,0),LINETHICK1;
DRAWICON(CROSS(RSI1,底) ,20,1);
DRAWICON(建仓 AND 买入时间,10,1);
ZB2:=(ZB1=0 AND RSI1<=顶);
卖出:IF(ZB2=1 AND REF(ZB2,1)=0 AND 建仓=0,90,100),LINETHICK1;
N1:=3;N2:=7;N3:=21;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
STICKLINE(VAR9>-150,0,VAR9,2,0),COLORFF00FF;
底部吸筹指标:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;
STICKLINE(CROSS(底部吸筹指标,-24),100,0,1,0),colormagenta;
先知:= (CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
放量拉升:IF(CROSS(底部吸筹指标,-24),1,0), colormagenta;
短线获利:STICKLINE(REF("KDJ.J",1)<0 AND "KDJ.J">0,60,0,2,0),COLOR0000FF;
VARK1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VARK2:=REVERSE(VARK1);
VARK3:=SMA(VARK1,3,1);
波段王:=SMA(VARK3,3,1);
波段鬼:=SMA(波段王,2.5,1);
趋势线:= 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
RSV9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV9,3,1);
DK1:=K1-REF(K1,1);
STICKLINE( CROSS(趋势线,10),0,73,3,0), COLOR3366FF;
DRAWTEXT(IF(CROSS(趋势线,10),100,0),68,'抄底'),COLOR0055FF ;
DRAWTEXT(IF(CROSS(10,趋势线),1,0), 10,'$准备钱'),coloryellow;
DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,50,'短买'),colorred ;
DRAWTEXT(CROSS(底部吸筹指标,-24),80,'抄底'),COLOR0055FF ;
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
短期底部:=LLV(OPEN,30);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=((3 * K) - (2 * D));
AA10:=MA(CLOSE,10);
AA12:=MA(CLOSE,12);
BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);
BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);
MA13:=MA(CLOSE,13);
VARB:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VARC:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VARD:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VARE:=(((VARB + (2 * VARC)) + (3 * VARD)) / 6);
VARF:=MA(VARE,3);
STICKLINE((CROSS(J,0) AND (VARF <= (0 - 7))),0,88,2,0),colorblue;
DRAWICON((CROSS(J,0) AND (VARF <= (0 - 7))),88,10);
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
VAR6:0;
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),colorred,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),colorred;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),colorgreen;
//( 顶尖财经 股票学院: http://www.58188.com )

上一篇:同花顺源码:超卖XYS,综合(自存),市场筹码分析

下一篇:同花顺源码:主力洗盘进场,寻找庄家,macd背离量柱