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

同花顺源码:分时抓涨停,刀哥第一组合,抄底配合

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

分时抓涨停:

DRAWGBK(C>0, RGB(50,60,250),RGB(17,21,89),0,'11',0);

H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8,colorgreen;
支撑:=L1+P1*0.5/8,colorred;
中线:=(支撑+阻力)/2,colorwhite,POINTDOT;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3),LINETHICK2,colorlimagenta;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买入:STICKLINE(趋势线<11,趋势线,11,5,0),coloryellow;
AA:=(趋势线<11) AND FILTER((趋势线<=11),15) AND C<中线;
BB0:=REF(趋势线,1)<11 AND CROSS(趋势线,11) AND C<中线;
BB1:=REF(趋势线,1)<11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
BB2:=REF(趋势线,1)<6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
BB3:=REF(趋势线,1)<3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
BB4:=REF(趋势线,1)<1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
BB5:=REF(趋势线,1)<0 AND CROSS(趋势线,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
下单买入:STICKLINE(BB=1 AND C<中线,11,50,5,0),colorred;
DRAWICON(BB=1 AND C<中线,55,1);
DRAWTEXT(BB0,60,'★买'),colorred;
DRAWTEXT(AA,16,'准备买入'),coloryellow;
准备卖出:STICKLINE(趋势线>89,趋势线,89,5,0),colorwhite;
CC:=(趋势线>89) AND FILTER((趋势线>89),15) AND C>中线;
DD0:=REF(趋势线,1)>89 AND CROSS(89,趋势线) AND C>中线;
DD1:=REF(趋势线,1)>89 AND REF(趋势线,1)<94 AND CROSS(89,趋势线);
DD2:=REF(趋势线,1)>94 AND REF(趋势线,1)<97 AND CROSS(94,趋势线);
DD3:=REF(趋势线,1)>97 AND REF(趋势线,1)>99 AND CROSS(97,趋势线);
DD4:=REF(趋势线,1)>99 AND REF(趋势线,1)<100 AND CROSS(99,趋势线);
DD5:=REF(趋势线,1)>100 AND CROSS(100,趋势线);
DD:=DD1=1 OR DD2=1 OR DD3=1 OR DD4=1 OR DD5=1;
下单卖出:STICKLINE(DD=1 AND C>中线,89,50,5,0),colorgreen;
DRAWICON(DD=1 AND C>中线,45,2);
DRAWTEXT(DD0,40,'★卖'),colorgreen;
DRAWTEXT (CC,84,'准备卖出'),colorwhite;
顶:89,colorgreen;
底:11,colorred;
中:50,POINTDOT,colorwhite;
DRAWTEXT(ISLASTBAR,顶,'顶'),colorgreen;
DRAWTEXT(ISLASTBAR,底,'底'),colorred;
DRAWTEXT(ISLASTBAR,中,'中'),colorwhite;




刀哥第一组合:

Var1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
机构做空能量线: SMA(Var1,2,1);
Var2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
机构做多能量线: SMA(Var2,5,1)-8;
风险区: M;
清仓线: M1;
分界线: M2;
加仓线: M3;
安全区: M4;
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);
底线:0,COLOR00FFFF;
主力吸货:VAR7,COLOR0000FF;
吸筹1:STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF;
吸筹2:STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF;
吸筹3:STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF;
吸筹4:STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF;
吸筹5:STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF;
吸筹6:STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF;
吸筹7:STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF;
风险:CEILING(SMA(VAR9,13,8)),LINETHICK2,colorgreen;
涨跌:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*
SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,colorred;
STICKLINE(1,20,20,100,0),colorgray;
STICKLINE(1,50,50,100,0),colorred;
STICKLINE(1,80,80,100,0),colorgray;
STICKLINE(1,100,100,100,0),colorgray;
STICKLINE(1,0,0,100,0),colorgray;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,4,1);
D:SMA(K,3,1);J:3*K-2*D;
N2:=8;
临界点:(HHV(HIGH,N2)-LLV(LOW,N2))*(3*D-2*K)/100+LLV(LOW,N2),NODRAW;
KD差:K-D,NODRAW;
叉价:(3*REF(KDJ.D,1)-2*REF(KDJ.K,1))*(HHV(HIGH,9)-LLV(LOW,9))/100+LLV(LOW,9),NODRAW;
DRAWICON(CROSS(J,K),K,1);
DRAWICON(CROSS(K,J),D,2);
金叉天:BARSLAST(KDJ.K<KDJ.D),NODRAW;死叉天:BARSLAST(KDJ.K>KDJ.D),NODRAW;
A1:=BARSLAST(REF(CROSS(K,D),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
DRAWTEXT(底背离,K*0.6,'底背');
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(K,A2+1)>K AND CROSS(D,K);
DRAWTEXT(顶背离,K*1.3,'顶背');
Var1:=(CLOSE*2+HIGH+LOW)/4;
SK: EMA(Var1,13)-EMA(Var1,21);
SD: EMA(SK,2);
多方能量: 2*(SK-SD)*3.8;
空方能量: (-2)*(SK-SD)*3.8;
强弱分界: 0;
 



抄底配合,体验版

生命指数: 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,0.3,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);

VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;

VARO3:=SMA(SMA(VARO2,3,1),3,1);

VARO4:=EMA(VARO3,5);

VARO5:=LLV(LOW,26);

VARO6:=HHV(HIGH,34);

VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;

STICKLINE(CROSS(VARO4,10) AND VARO4>10,25,0,1,0),colorblue;

建仓区: IF((VARO7<10),0,20),LINETHICK1 ,colorred;

P_per:=(C/(SUM(C,5)/5)-1)*100;

V_per:=(V/(SUM(V,5)/5)-1)*100;

M_per:=V_per-P_per;

RMA:SUM(M_per,10)/10,colorred;

XSV:(RMA*10-REF(M_per,10)+REF(M_per,10-1))/10,colorgreen;

STICKLINE(XSV>0,XSV,0,0),colorred;

STICKLINE(XSV<0,0,XSV,0),colorgreen;

CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;

上一篇:同花顺源码:绝底操盘,资金流高抛低吸抄底组合,抄底高抛低吸

下一篇:同花顺源码:超级黑马图,仓位资金抄底MY,主力雷达先锋版