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

同花顺源码:简单均线趋势,筹码增减,主力净流

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

1、简单均线趋势 适合上升趋势

适合上涨趋势,配合60日均线一起用效果较好。这是我做的第一个指标,做的不是很好,请见谅。

EMA1:EMA(CLOSE/2+OPEN/2,A1);
EMA2:EMA(CLOSE/2+OPEN/2,A2);
DRAWICON(CROSS(EMA1,EMA2),LOW,1);
DRAWICON(CROSS(EMA2,EMA1),HIGH,2);
STICKLINE(EMA1>EMA2,EMA1,EMA2,0,0),Color0000ff;
STICKLINE(EMA1>EMA2,EMA1,EMA2,3,0),Color000099;
STICKLINE(EMA1>EMA2,EMA1,EMA2,2,0),Color0000bb;
STICKLINE(EMA1>EMA2,EMA1,EMA2,1,0),Color0000dd;
STICKLINE(EMA1>EMA2,EMA1,EMA2,0.3,0),Color0000ff;
STICKLINE(EMA1<EMA2,EMA1,EMA2,0,0),Color00ff00;
STICKLINE(EMA1<EMA2,EMA1,EMA2,3,0),Color009900;
STICKLINE(EMA1<EMA2,EMA1,EMA2,2,0),Color00bb00;
STICKLINE(EMA1<EMA2,EMA1,EMA2,1,0),Color00dd00;
STICKLINE(EMA1<EMA2,EMA1,EMA2,0.3,0),Color00ff00;


2、筹码增减

基本用法:低位红线(机构筹码集中度)上穿绿线(散户筹码集中度),同期蓝线(主力筹码)上穿绿线是更好的机会。( 顶尖 财经 股票学院: http://www.58188.com )

 // [筹码增减

VAR1:=1;
VAR55:=LLV(LOW,8);
VAR66:=HHV(HIGH,8);
VAR77:=(VAR66-VAR55)/10;
VAR88:=SMA((CLOSE-VAR55)/VAR77,20,1);
VARA:=3*VAR88-2*SMA(VAR88,15,1);
散户筹码集中度: (10-VARA)*VAR1*6,colorgreen,LINETHICK2;
机构筹码集中度:EMA(WINNER(C)*70,3),LINETHICK2,colorred;
主力筹码: 10*WINNER(CLOSE*0.9)*8, COLORffff00;
十天主力筹码:EMA(主力筹码,10),LINETHICK2,coloryellow;
VAR100:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(10);
增减力度:VAR100*6,colorwhite,LINETHICK2;
70,colorgreen  ;
0,coloryellow  ;
X4:=EMA(C,6);
斜率6:=(X4-REF(X4,1))/REF(X4,1)*100,LINETHICK0;
X5:=EMA(C,12);
斜率12:=(X5-REF(X5,1))/REF(X5,1)*100,LINETHICK0;
X6:=EMA(C,18);
斜率18:=(X6-REF(X6,1))/REF(X6,1)*100,LINETHICK0;
 


3、主力净流

额:AMOUNT/100000000,NODRAW;

VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE>OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/100000000,NODRAW;
流出亿:IF(CLOSE<OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,NODRAW;
差亿:流入亿+流出亿,colorred;
净:=EMA(EMA(差亿,2),2);
净1:=EMA(净,2);
流:=EMA(净1,7);
净流:=3*EMA(净1+流,2);
STICKLINE(净流<0,0,净流,4,0),COLORFF6600;
STICKLINE(净流<0,0,净流,3,0),COLORFF9900;
STICKLINE(净流<0,0,净流,1.5,0),COLORFFCC00;
STICKLINE(净流<0,0,净流,0.5,0),colorcyan;
STICKLINE(净流<0,0,净流,4,0),COLOR000099;
STICKLINE(净流<0,0,净流,3,0),COLOR0000CC;
STICKLINE(净流<0,0,净流,1.5,0),COLOR0000FF;
STICKLINE(净流<0,0,净流,0.5,0),COLORCC66FF;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,4,0),COLOR009900;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,3,0),COLOR00BB00;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,2,0),COLOR00DD00;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,1,0),COLOR00FF00;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,4,0),COLOR000099;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,3,0),COLOR0000BB;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,1.5,0),COLOR0000DD;
STICKLINE(净流>REF(净流,1)AND 净流>0,0,净流,0.5,0),COLOR0000FF;
DRAWTEXT(CROSS(净流,0),0,'买'),COLORFF00FF;
 

上一篇:同花顺源码:时间信号系统,天赐良机,主力逍遥吸货控盘资金

下一篇:同花顺源码:高抛低吸带,资金监控,建仓逃顶