m:=55;
n:=34;
zero:0,nodraw;
lc:=ref(close,1);
rsi:=((sma(max((close - lc),0),3,1) / sma(abs((close - lc)),3,1)) * 100);
ff:=ema(close,3);
ma15:=ema(close,21);
//drawtext(cross(85,rsi),75,'▼'),colorgreen;
var1:=if(year>=2038 and month>=1,0,1);
var2:=ref(low,1)*var1;
var3:=sma(abs(low-var2),3,1)/sma(max(low-var2,0),3,1)*100*var1;
var4:=ema(if(close*1.3,var3*10,var3/10),3)*var1;
var5:=llv(low,30)*var1;
var6:=hhv(var4,30)*var1;
var7:=if(ma(close,58),1,0)*var1;
var8:=ema(if(low<=var5,(var4+var6*2)/2,0),3)/618*var7*var1;
吸筹:if(var8>100,100,var8)*var1,colorred;
庄家吸筹:stickline(吸筹>-150,0,吸筹,6,0),colorred;
散户: 100*(hhv(high,m)-close)/(hhv(high,m)-llv(low,m)),colorcyan;
rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
庄家:ema(j,6),coloryellow,linethick2;
主力持仓=庄家;
庄增=庄家>0,nodraw;
庄减=庄家<0,nodraw;
inc=count(庄家>ref(庄家,1),pastdays);
庄连增:=inc==pastdays,nodraw;
acc=count(吸筹<ref(吸筹,1),pastdays);
吸筹降:=acc==pastdays,nodraw;
抄底:庄连增 and 吸筹 >= lowv and 吸筹<=highv and 吸筹降,nodraw;
金叉买点:=cross(庄家,散户),nodraw;
死叉卖点:=cross(散户,庄家),nodraw;
drawicon(死叉卖点,散户,'sell');
drawtext(死叉卖点,主力持仓*(2-poscoef),'顶');
//stickline(金叉买点,0,散户,6,0),colorred;
drawicon(金叉买点,ref(庄家,1),'buy');
drawicon(抄底,庄家*0.9,'buy');
drawtext(金叉买点,主力持仓*poscoef*0.75,'金'),coloryellow;
stickline(金叉买点,0,散户,2,0),colorred;
drawtext(抄底 and ref(抄底,1)<>1,庄家*0.6,'底');
抄底期:=count(抄底,pastdays)>0,nodraw;
金叉买点期:=count(金叉买点,pastdays)>0,nodraw;
散庄差比=(散户-庄家)/庄家;
//金叉将临:(散户>=庄家) and (庄家>ref(庄家,1)) and 散庄差比<diffratio,nodraw;
金叉将临:=(散户>=庄家) and (庄家>ref(庄家,1)) and (散户<ref(散户,1)) and 散庄差比<diffratio,nodraw;
stickline(金叉将临,0,庄家-6,4,0),colorcyan;
最佳买点: 金叉买点>0 or 金叉将临>0,nodraw;
最佳买点期: count(最佳买点,pastdays),nodraw;
stickline(金叉买点,0,庄家-6,6,0),colorred;
主力增仓:=庄家>ref(庄家,1),nodraw;
主力减仓:=庄家<ref(庄家,1),nodraw;
连续增仓:=count(主力增仓,2)==2,colorcyan,nodraw;
连续减仓:=count(主力减仓,2)==2,colorgreen,nodraw;
增仓天数:=count(主力增仓,maxdays),colorcyan,nodraw;
增仓天数比:=增仓天数 >= maxdays*incr,nodraw;
主力增仓放量:=主力增仓 and ( vol/ref(vol,1) > volincr),nodraw;
主力增仓价升:=主力增仓 and c > (1+priceincra)*ref(close,1),nodraw;
主力减仓放量:=主力减仓 and( vol/ref(vol,1) > volincr),nodraw;
主力减仓价跌:=主力减仓 and c <(1-priceincra)*ref(close,1),nodraw;
强升:=(主力增仓>0 and 连续增仓>0 and close > (1+priceincra)*ref(close,1)) or 主力增仓放量 or 主力增仓价升,nodraw;
暴跌:=(主力减仓>0 and 连续减仓>0 and close < (1-priceincra)*ref(close,1)) or 主力减仓放量 or 主力减仓价跌 ,nodraw;
首增=主力增仓>0 and ref(主力减仓,1)>0;
首减=主力减仓>0 and ref(主力增仓,1)>0;
drawicon(首增,主力持仓,'buy'); //
drawicon(首减,主力持仓,'sell');
drawicon((连续增仓>0 and 主力增仓>0) ,主力持仓,'buy');
drawicon((连续减仓>0 and 主力减仓>0),主力持仓,'sell');
drawicon(强升>0 and 主力增仓>0,主力持仓,'buy');
启动上涨:=首增>0 and count(ref(主力减仓,1),keepdays)==keepdays,nodraw;
启动上涨期:=count(启动上涨,pastdays)>0,nodraw;
见顶:=首减>0 and count(ref(主力增仓,1),keepdays)==keepdays,nodraw;
drawtext(启动上涨,主力持仓*poscoef*0.9,'启'),coloryellow;
drawtext(见顶,主力持仓*(2-poscoef),'顶'),colorwhite;
drawicon( (暴跌>0 and 主力减仓>0),主力持仓,'sell');
drawtext((主力增仓>0 and 强升 and(ref(强升,1)<1)) and 启动上涨<1,主力持仓*poscoef,'强'),colorcyan;
drawtext( (暴跌>0 and 主力减仓>0 and (ref(暴跌,1)<1) ), 主力持仓*poscoef,'弱'),colorwhite ;
stickline(启动上涨,0,庄家,2,0),colorff33ff;
stickline(抄底,0,庄家,2,0),coloryellow;
stickline(见顶,0,庄家,2,0),colorgreen;
n:=9;m1:=3;m2:=3;
rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;
k:sma(rsv,m1,1),coloryellow,linethick1;
d:sma(k,m2,1),colorcyan,linethick1;
j:3*k-2*d,colormagenta,linethick1;
支撑线=(1-9/100)*ma(c,10);
kdj金叉:cross(j,k)and(h>=支撑线),nodraw;
买入期=count(kdj金叉,pastdays)>0,nodraw;
stickline(kdj金叉,0,庄家,1,0),coloryellow;
drawicon(kdj金叉,主力持仓,'buy');
drawtext(kdj金叉,主力持仓*poscoef*0.6,'k金'),colormagenta;//kdj金叉
dif:=ema(close,9)-ema(close,150),nodraw;
dea:=ema(dif,12),nodraw;
macd=2*(dif-dea);
dik=4*dif-3*dea;
ded=ema(dik,1);
macd金叉:cross(dif,dea),nodraw;
drawicon(macd金叉,主力持仓,'buy');
drawtext(macd金叉,主力持仓*poscoef*0.6,'-m金'),colorred;//macd金叉
stickline(macd金叉,0,庄家-10,2,0),colormagenta;
上一指标公式:SJ双线相交法详解 同花顺相交
下一指标公式:MACD顶背离+金叉死叉详解 同花顺MACD金叉死叉
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文跟庄高手详解 同花顺高手仅供学习研究。