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

同花顺源码:牛逼趋势线,庄家出现,竞价打板

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

牛逼趋势线:

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,30)*5+C,20);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWICON(BU,L-0.3,1);
DRAWICON(SEL,H+0.3,2);
STICKLINE(买线>=卖线 AND CLOSE>OPEN,LOW,HIGH,0,1),colorred;
STICKLINE(买线>=卖线 AND CLOSE<OPEN,LOW,HIGH,0,1),colorred;
STICKLINE(买线>=卖线 AND CLOSE>OPEN,CLOSE,OPEN,3,1),colorred;
STICKLINE(买线>=卖线 AND CLOSE<OPEN,CLOSE,OPEN,3,0),colorred;
STICKLINE(买线<卖线 AND CLOSE<OPEN,LOW,HIGH,0,1),COLORFFFF00;
STICKLINE(买线<卖线 AND CLOSE>OPEN,LOW,HIGH,0,1),COLORFFFF00;
STICKLINE(买线<卖线 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLORFFFF00;
STICKLINE(买线<卖线 AND CLOSE>OPEN,CLOSE,OPEN,3,1),COLORFFFF00;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF
(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF
(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF
(HHJSJDA,20)+
REF(HHJSJDA,19))/210,coloryellow;
HHJSJDC:MA(HHJSJDB,5),colorred;




庄家出现:

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;
J1:=REVERSE(J);
AA:=REF(MA(C,1),10)>REF(MA(C,60),10);
买点:CROSS(J,J1) AND AA;
STICKLINE(买点,0,30,6,0),colorblue;
STICKLINE(买点,30,60,4,0),colorwhite;
STICKLINE(买点,60,80,2,0),coloryellow;
DRAWTEXT(买点,70,'庄家出现'),colorred;
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);
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),colorred,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),colorred;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),colorgreen,NODRAW;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),colorgreen;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;
VAR12:=SMA(ABS(VAR1-H),13,1)/SMA(MAX(VAR1-H,0),10,1);
VAR13:=EMA(VAR12,10);
VAR14:=HHV(H,33);
VAR15:=EMA(IF(H>=VAR14,VAR13,0),3);
冲顶:IF(VAR15>REF(VAR15,1),VAR15,0),COLORFF00FF,NODRAW;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0),COLORFF00FF;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0 ),COLOR550055;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.6,0 ),COLOR770077;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.1,0 ),COLOR990099;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,1.5,0 ),COLORBB00BB;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.9,0 ),COLORDD00DD;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.3,0 ),COLORFF00FF;
主力出场:IF(VAR15<REF(VAR15,1),VAR15,0),coloryellow,NODRAW;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,3,0 ),coloryellow;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,3,0),COLOR005555;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,2.6,0),COLOR007777;
STICKLINE(VAR15<REF(VAR5,1),0,VAR15,2.1,0),COLOR009999;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,1.5,0),COLOR00BBBB;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,0.9,0),COLOR00DDDD;
STICKLINE(VAR15<REF(VAR15,1),0,VAR15,0.3,0),COLOR00FFFF;
A1:=REF(CLOSE,2);
A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;
波段介入点:IF(A2<19,19,0),colorwhite ;
 



竞价打板:

涨停买入 也可以直接竞价进入 挂涨停价( 顶尖财经 股票学院: http://www.58188.com )

//计算年月日
BA1:=TOSTRING(YEAR,0)+'年';
BA2:=TOSTRING(MONTH,0)+'月';
BA3:=TOSTRING(DAY,0)+'日';
IF(WEEKDAY==1)
BA4:= '一';
ELSE IF(WEEKDAY==2)
BA4:=  '二';
ELSE IF(WEEKDAY==3)
BA4:=  '三';
ELSE IF(WEEKDAY==4)
BA4:=  '四';
ELSE IF(WEEKDAY==5)
BA4:=  '五';
ELSE
BA4:=  '周末';
AA:=BA1+BA2+BA3;
//开盘涨幅:=(0-REF(C,1))/REF(C,1);
DRAWTEXT_FIX(1,0.001,0.001,0,AA+'星期'+TOSTRING(BA4,0)),coloryellow;
DRAWTEXT_FIX(1,0.14,0.001,0,'分时趋势线:'),coloryellow;
DRAWTEXT_FIX(1,0.001,0.12,0,'一直分时线之下 逢高卖掉  一直分时线之上 分时线时低吸'),colormagenta;
DRAWTEXT_FIX(1,0.001,0.24,0,'没有提示卖点 说明弱势 没有冲高'),coloryellow;
IF (MARKETTYPE==17 OR MARKETTYPE==33 )
{
主力资金="该指标只用于A股。";
}
V1:=(NEW*2+REF(H,1)+REF(L,1))/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
//主力撤: IF(V4<=0,V4,0),colorgreen;
//主力进: IF(V4>=0,V4,0);
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
//大盘资金进场:IF(VB>=0,VB,0),coloryellow;
//大盘资金撤走:IF(VB<=0,VB,0),colorred;
V11:=3*SMA((NEW-LLV(NEW,55))/(HHV(NEW,55)-LLV(NEW,55))*100,5,1)-2*SMA(SMA((NEW-LLV(NEW,55))/(HHV(NEW,55)-LLV(NEW,55))*100,5,1),3,1);
趋势线: EMA(V11,3),colorliblue,Linethick3;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金: STICKLINE(趋势线<=13,0,20,1,0),coloryellow;
AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
DRAWTEXT (AA,30,'↙准备'+TOSTRING(NEW,2)),coloryellow;
买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,1,0),colorred;
BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;
DRAWTEXT (BB,60,'买'+TOSTRING(NEW,2)),colorred;
见顶清仓: STICKLINE(趋势线>=92 AND V12,0,50,1,0),colorgreen;
CC:=(趋势线>=92 AND V12) AND FILTER((趋势线>=92 AND V12),10);
DRAWTEXT (CC,60,'卖'+TOSTRING(NEW,2)),colorgreen;
 

上一篇:同花顺源码:主力资金吃吐,主散坑,底部吸筹

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