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

同花顺源码:大胆博主图+集合多种底部+组合赚钱法

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

大胆博主图:

 A:=(3*C+L+O+H)/6;

X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;
IF(MA(C,3),MA(C,3),DRAWNULL);
IF(MA(C,9),MA(C,9),DRAWNULL);
IF(MA(C,23.5),MA(C,23.5),DRAWNULL);
MA5:=MA(C,5);
MA10:=MA(C,10);
MA30:=MA(C,30);
FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);
DRAWTEXT(FB,L-0.58,'★红牛'),colorred;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),coloryellow;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF;
DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏 '),COLOR00FFFF;
DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),coloryellow;
MAA10:=MA(C,10);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),coloryellow;
STICKLINE(买,OPEN,CLOSE,2,0),coloryellow;
 



集合多种底部:

根据rsi改编,集合了多种底部,可以试试

VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(VAR3*10,3);
VAR5:=LLV(LOW,13);
VAR6:=HHV(VAR4,13);
VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;
VAR8:=IF(VAR7>50,50,VAR7);
VAR3A:=3;
VAR2A:=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);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
STICKLINE(VAR8>-120,0,VAR8,3,1),colorgray;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:3*K-2*D;
STICKLINE(VAR8>1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),0,VAR8,3,0),colorred;
超买:80,COLORFFFF00;
风险:90,COLORFF0000;
超卖:20,COLOR208FFF;
0,colorwhite;
分界:50,colorlired;
100,colorwhite;
LC1:=REF(CLOSE,1);
RSI1强弱线:SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100,coloryellow;
底共振:RSI1强弱线<20 AND J<0 ,NODRAW,COLOR00C9FF;
STICKLINE(底共振,-10,10,3,0),COLOR0055AA;
STICKLINE(底共振,-10,10,2.8,0),COLOR0066BB;
STICKLINE(底共振,-10,10,2.5,0),COLOR0077CC;
STICKLINE(底共振,-10,10,2.2,0),COLOR0088DD;
STICKLINE(底共振,-10,10,1.7,0),COLOR0099EE;
STICKLINE(底共振,-10,10,1.2,0),COLOR00AAFF;
STICKLINE(底共振,-10,10,0.7,0),COLOR00CCFF;
STICKLINE(底共振,-10,10,0.2,0),COLOR00FFFF;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
KK:=BARSLAST(乖离<-10),NODRAW;
VV:=乖离<-10 AND REF(KK,1)<10 AND  REF(KK,1)>0 AND COUNT(CROSS(MA(C,10),MA(C,5)),6)=0;
DRAWTEXT(VV>0,97,'乖90');
STICKLINE(VV>0,0,4,3,0),COLOR0099FF;
BIAS10 :=(CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*100;
B:=COUNT(BIAS10<-1,30)>10 AND COUNT(BIAS10>0,30)>1   ;
A:=REF(BIAS10,1)<-10 AND CROSS(BIAS10,-9) AND B>0 AND REF(O,1)>REF(C,1) AND L>LLV(L,5)AND (REF(C,1)-REF(C,2))/REF(C,2)*100>-8;
K2:=A>0  AND REF(O,1)>REF(C,1) ;
//分析家公式网 www.70822.com
DRAWTEXT(K2>0,75,'乖10');
STICKLINE(K2>0,4,8,3,0),colorred;
DGF:=REF(C,3)/REF(C,2)>1.07 AND REF(C,1)>REF(C,2) AND REF(C,1)>REF(L,2) AND REF(C,1)<REF(H,2)
AND REF(C,1)/REF(C,2)<1.03 AND REF(C,0)>=REF(H,1) AND REF(V,2)>REF(V,3) AND REF(V,2)>REF(V,1);
DRAWTEXT(DGF>0,88,'考虑'),colorred;
ZLC:=REF(CLOSE,1);
ZRSI1:=SMA(MAX(CLOSE-ZLC,0),6,1)/SMA(ABS(CLOSE-ZLC),6,1)*100;
Z5:=(C-REF(C,1))/REF(C,1)*100<-8;
Y:=BARSLAST(Z5=1)<=7;
RSID:ZRSI1>20 AND REF(ZRSI1,1)<18 AND REF(ZRSI1,2)<18 AND J>15 AND COUNT(J<0,10)>=1 AND HHV(H,30)<HHV(H,60) AND COUNT(CROSS(MA(C,60),MA(C,5)),13)=0;
DRAWTEXT(RSID>0,68,'RD'),colorred;
BIAS50 :=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100;
BIAS5 :=(CLOSE-MA(CLOSE,10))/MA(CLOSE,5)*100;
B2:=COUNT(BIAS10<-1,30)>10 AND COUNT(BIAS10>0,30)>1   ;
ASZ:=REF(BIAS10,1)<-10 AND CROSS(BIAS10,-9) AND B2>0 AND REF(O,1)>REF(C,1) AND (REF(C,1)-REF(C,2))/REF(C,2)*100>-8  AND L>LLV(L,5)   ;
C1:=COUNT(ASZ,40)>=2;
DRAWTEXT(ASZ>0,90,'关注'),colorblack;
VAR0 := 1;
ss:= 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),Color8912ee;
VAR1 := REF(C,1) * VAR0;
RSI7 := ((SMA(MAX(C - VAR1,0),7,1)) / (SMA(ABS(C - VAR1),7,1))) * 100,NODRAW;
RSIf :=((SMA(MAX(C - VAR1,0),14,1)) / (SMA(ABS(C - VAR1),14,1))) * 100,NODRAW;
RSI34 := ((SMA(MAX(C - VAR1,0),34,1)) / (SMA(ABS(C - VAR1),34,1))) * 100,NODRAW;
RS34E8 := EMA(RSI34,8),LINETHICK2,NODRAW;
认识 := RSIf - RSI7;
RSI4 := ((SMA(MAX(C - VAR1,0),4,1)) / (SMA(ABS(C - VAR1),4,1))) * 100,Colorc1cdc1;
cha34 := RS34E8 - REF(EMA(RSI34,8),1),NODRAW;
RS04 :RSIf - RSI4,colorgreen;
差到 :(RS34E8 - REF(EMA(RSI34,8),1)) * 10,colorblack;
Echa : EMA(差到,8),colorlicyan;
距离 :=差到-Echa,NODRAW ;
RSCcha1 :=REF(差到,0) - (REF(差到,0 + 1)),NODRAW;
STICKLINE(CROSS(差到,RS04)>0 AND CROSS(Echa,RS04)>0,Echa+10,Echa,1,0),colorred;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.02) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER(VAR4AA>90,10),RSI4+2,'买入'),colorred;
AA1:=(AMOUNT/V)*100;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
介入:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF;
DRAWTEXT(介入,RSI4,'介入'),COLOR0099FF;




组合赚钱法:

主升浪要选者零轴上方的股,即要出红柱,大方向上涨的股先确定!
 
短线斜率指标  金叉为短线开涨,死叉短线开跌,要卖出!(顶尖财经 股票学院: www.58188.com)
多空指标,当多方金叉股价拉升了!空方死叉股价大跌了!
你能看出中粮科技已经要主升浪线上即将金叉要变红柱了,因为短线斜率已经金叉开始涨了。主升浪如果在金叉将开启新一轮上涨!
 
 
 
主力散户多空线
 
主力:=(CLOSE*2+HIGH+LOW+O)/4;
散户:=EMA(主力,11)-EMA(主力,22);
量比:=EMA(散户,5);
多方主力:2*(散户-量比)*5,LINETHICK1;
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);SD:=EMA(SK,5);
空方主力:(-2*(SK-SD))*3.8,LINETHICK1;
中轴:0,colorblue;
STKNAME,coloryellow;
VAR1:=EMA(CLOSE,5)-EMA(CLOSE,10);
VAR2:=EMA(VAR1,22);
VAR3:=2*(VAR1-VAR2);
STICKLINE(VAR3<REF(VAR3,1) AND VAR3>0,0,VAR3,8,1),colorcyan;
STICKLINE(VAR3>=REF(VAR3,1)AND VAR3>0,0,VAR3,8,0),colorred;
STICKLINE(VAR3>REF(VAR3,1)AND VAR3<0,0,VAR3,8,0),colormagenta;
STICKLINE(VAR3<=REF(VAR3,1)AND VAR3<0,0,VAR3,8,1),colorgreen;
 
 
 
短线抓牛股
 
N:=5;M1:=3;M2:=3;
ZG:=MA(HIGH,5);
ZD:=MA(LOW,5);
YG:=MA(HIGH,5);
YD:=MA(LOW,12);
ZJ:=MA(CLOSE,5);
YJ:=MA(CLOSE,12);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
涨:SMA(RSV,M1,1),LINETHICK2;
心:SMA(涨,M2,1),LINETHICK2;
跌:3*心-2*涨,LINETHICK2;
MID:=MA(涨,10);
CMSS:=1.03*SQRT(MA(POW((涨-MID),2),10));
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*400;
DEA:=EMA(DIFF,9),COLORFFFF00;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
控盘:=SMA(RSV,M1,1),LINETHICK1;;
STICKLINE(控盘<0,控盘,0,3,0),colorFFAA00;
STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3,0),colorred;
STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3,1),colorgreen;
BT2:=CROSS(涨,跌) AND 涨<-10;
买:IF((CROSS(涨,跌) AND 涨<-10),1,0),LINETHICK1,COLORC87800;
 
 
 
主升浪
 
N1:=9;N2:=5;
MTM:=C-REF(C,1);
主力:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
空方:MA(主力,N2);
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*400;
DEA:=EMA(DIFF,9),COLORFFFF00;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
控盘:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
STICKLINE(控盘<0,控盘,0,3,0),COLORFFAA00;
STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3,0),colorred;
STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3,1),colorgreen;
BT2:=CROSS(主力,空方) AND 主力<-10;
买:IF((CROSS(主力,空方) AND 主力<-10),1,0),LINETHICK1,COLORC87800;
STKNAME,coloryellow;
VAR1:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
VAR2:=EMA(VAR1,22);
VAR3:=2*(VAR1-VAR2);
主力获利:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colormagenta,LINETHICK1;

上一篇:同花顺公式下载:KDJ低位了然躺底赚

下一篇:同花顺源码:操盘顶底+小冯神器爆发点+爆发点