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

同花顺源码精选:BL策略,四指金叉,我的系统

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

1、BL策略 压力支撑

MID :  MA(CLOSE,NN),POINTDOT,coloryellow;
U上: MID + PP/10*STD(CLOSE,NN),POINTDOT,colormagenta;
L下: MID - PP/10*STD(CLOSE,NN),POINTDOT,colorgray;
带宽:(U上-L下)/MID*100,coloryellow,NODRAW;
M5:=MA(CLOSE,5), colorwhite;
C2:=REF(C,1);
非ST涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
涨停:=非ST涨停;
STICKLINE(涨停,OPEN,CLOSE,6,0),coloryellow;
STICKLINE(涨停,H,L,0,0),coloryellow;
非ST跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
跌停:=非ST跌停;
STICKLINE(跌停,OPEN,CLOSE,8,0),colorwhite;
STICKLINE(跌停,H,L,10,0),colorwhite;
半涨1:=IF((C-C2)*100/C2>=(5-0.01*100/C2),1,0);
半涨2:=IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);
JRS:=半涨1 AND 半涨2 AND FINANCE(33)>0;
STICKLINE(JRS,OPEN,CLOSE,6,0),colormagenta;
STICKLINE(JRS,H,L,0,0),colorred;
NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);
DRAWTEXT(非ST涨停,HIGH*1.04,NUMBER),colorwhite;
N:=2;M:=30;
最高30价:=MA(HIGH,M) * (1 + 13 / 100),LINETHICK1,colorgray ;
VAR22:=IF(((YEAR) >= (2039)) AND ((MONTH) > 3),0,1);
短压:((MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4 + ((1.88) * (STD((MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4,9))) * (VAR22)),colorwhite;
急涨:((MA(短压,12)) * (1.06)) * (VAR22),LINETHICK1,colorcyan ;
VAR55:=(EMA(H,10)) * (1 + 5 / (100));
VAR6:=C * V;
撑:EMA(((EMA(VAR6,3)) / (EMA(V,3)) + (EMA(VAR6,6)) / (EMA(V,6)) + (EMA(VAR6,12)) / (EMA(V,12)) + (EMA(VAR6,24)) / (EMA(V,24))) / 4,13),LINETHICK2,colorgreen;
VAR8:=(1.06) * (撑);
VAR9:=(L / ((H + REF(C,1) + O) / 3)) * C+0.01;
DRAWTEXT(((CROSS(VAR9,VAR8)) AND (C > (VAR55))) AND C/REF(C,1)>1.099 AND 急涨>REF(急涨,1) AND (C+0.01 >= (急涨)  AND 最高30价>急涨),L*0.92,'牛'),coloryellow;
涨停牛:=CROSS(VAR9,VAR8) AND C > VAR55 AND C/REF(C,1)>1.099 AND (C+0.01) >= (急涨) AND 急涨>REF(急涨,1) AND 最高30价>急涨,DRAWNULL;
DRAWTEXT(REF(短压*1.005,1)>REF(急涨,1) AND REF(H,1)>REF(短压,1) AND  CROSS(短压,C) AND 急涨>REF(急涨,1),H*1.03,'顶'),coloryellow;
现价:C,linethick0,NODRAW;
N1:=50;
M1:=10;
M2:=10;
RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1),coloryellow,NODRAW;
J:(3*K-2*D),colormagenta,NODRAW;
强势:带宽>14 AND 短压>MID AND U上>短压 AND 撑>REF(撑,1) AND CROSS(现价,U上) AND 短压>REF(短压,1) AND U上>REF(U上,1) AND L下<REF(L下,1),nodraw;
DRAWTEXT(强势,L*0.97,'强'),colormagenta;
 

2、四指金叉,关注四指全红

MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
马线:=MA(牛线,6);
STICKLINE(C>牛线,2.5,4,8,1),colorred,LINETHICK;
STICKLINE(C<马线,2.5,4,8,1),colorgreen,LINETHICK2;
STICKLINE(牛线>=C AND C>=马线,2.5,4,8,1),colorgreen,LINETHICK;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
STICKLINE(C>=A,0.5,2,8,1),colorred,LINETHICK2;
STICKLINE(C<=B,0.5,2,8,1),colorgreen,LINETHICK2;
STICKLINE(A>=C AND C>=B,0.5,2,8,1),colorgreen,LINETHICK2;
R:=0;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
STICKLINE(C>E,-1.5,0,8,1),colorred,LINETHICK2;
STICKLINE(C<F,-1.5,0,8,1),colorgreen,LINETHICK2;
STICKLINE(E>=C AND C>=F,-1.5,0,8,1),colorgreen,LINETHICK2;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
STICKLINE(C>J,-3.5,-2,8,1),colorred,LINETHICK2;
STICKLINE(C<K,-3.5,-2,8,1),colorgreen,LINETHICK2;
STICKLINE(J>=C AND C>=K,-3.5,-2,8,1),colorgreen,LINETHICK2;
//////////////( 股民学院: http://www.58188.com )
ma5:=MA(C,5);
ma13:=MA(C,13);
ma21:=MA(C,21);
ma34:=MA(C,34);
ma55:=MA(C,55);
ma89:=MA(C,89);
ma144:=MA(C,144);
ma233:=MA(C,233);
tmp1:=IF(C>ma5,1,0);
tmp2:=IF(C>ma13,1,0);
tmp3:=IF(C>ma21,1,0);
tmp4:=IF(C>ma34,1,0);
tmp5:=IF(C>ma55,1,0);
tmp6:=IF(C>ma89,1,0);
tmp7:=IF(C>ma144,1,0);
tmp8:=IF(C>ma233,1,0);
强弱钝化线:tmp1+tmp2+tmp3+tmp4+tmp5+tmp6+tmp7+tmp8+-3.8,coloryellow,LINETHICK2;
VAR1:=(6*CLOSE+HIGH+LOW)/4;
VAR2:=EMA(EMA(EMA(VAR1,3),3),3);
J:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100;
P:MA(J,1),coloryellow;
Q:MA(J,3),colorblack;
//JC判断:MA(J,1)-MA(J,3),coloryellow;



3、我的系统

VAR200:=((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100)*10;

VAR300:SMA(SMA(VAR200,3,1),3,1)/28.57,coloryellow;
VAR400:=EMA(VAR300,5);
操盘:3*VAR300-2*VAR400,colorred,Linethick1;
A1:=CROSS(操盘,VAR300) AND VAR300<21 AND C>O;
STICKLINE(A1,30,0,4,0),colorred;
//STICKLINE(A1,30,0,3,0),COLOR990099;
//STICKLINE(A1,30,0,2,0),COLORBB00BB;
//STICKLINE(A1,30,0,1,0),COLORDD00DD;
//STICKLINE(A1,30,0,0.3,0),colorred;
DRAWTEXT(A1,20,'买'),colorred;
多方趋势:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,271))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);
天线:=78.89;
//STICKLINE(CROSS(天线,多方趋势),90,95,6,0),COLOR00FF00;
Var1:=REF(CLOSE,2);
会员专用:SMA(MAX(CLOSE-Var1,0),7,1)/SMA(ABS(CLOSE-Var1),7,1)*100,COLORFFAA66;
Var2:=REF(CLOSE,1);
Var3:=SMA(MAX(CLOSE-Var2,0),7,1)/SMA(ABS(CLOSE-Var2),7,1)*100;
极品逃亡:=IF(会员专用<REF(会员专用,1) AND 会员专用>79,会员专用,0);
STICKLINE(极品逃亡,30,0,4,0),colorgreen;
DRAWTEXT(极品逃亡,20,'跑'),colorgreen;
DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1) AND C<REF(O,1)  AND C/O>=1.01,10,'初底现');
DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),10,'底'),colorblue;

上一篇:同花顺精选下载组合公式18个

下一篇:同花顺源码精选:RSI升级修改版,买卖波段提示,主力进场建仓