m5=0;
m10=0;
m20=0;
m30=0;
m60=0;
a2=ma(c,1);
a5=ma(c,5);
a10=ma(c,10);
a20=ma(c,20);
a30=ma(c,30);
a60=ma(c,60);
if(a5=null)m5=100;
if(a2>=a5)
{
m5=100;
if(a2>=a10)
{
m10=0;
if(a2>=a20)
{
m20=0;
if(a2>=a30)
{
m30=0;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-100;
}
}
if(a2<a30)
{
m30=-70;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-30;
}
}
}
if(a2<a20)
{
m20=-50;
if(a2>=a30)
{
m30=0;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-50;
}
}
if(a2<a30)
{
m30=-20;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-30;
}
}
}
}
if(a2<a10)
{
m10=-50;
if(a2>=a20)
{
m20=10;
if(a2>=a30)
{
m30=0;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-60;
}
}
if(a2<a30)
{
m30=-30;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-30;
}
}
}
if(a2<a20)
{
m20=-10;
if(a2>=a30)
{
m30=0;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-40;
}
}
if(a2<a30)
{
m30=-20;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-20;
}
}
}
}
}
if(a2<a5)
{
m5=0;
if(a2>=a10)
{
m10=50;
if(a2>=a20)
{
m20=20;
if(a2>=a30)
{
m30=10;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-80;
}
}
if(a2<a30)
{
m30=-40;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-30;
}
}
}
if(a2<a20)
{
m20=0;
if(a2>=a30)
{
m30=0;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-50;
}
}
if(a2<a30)
{
m30=-20;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-30;
}
}
}
}
if(a2<a10)
{
m10=0;
if(a2>=a20)
{
m20=50;
if(a2>=a30)
{
m30=0;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-50;
}
}
if(a2<a30)
{
m30=-20;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-30;
}
}
}
if(a2<a20)
{
m20=0;
if(a2>=a30)
{
m30=30;
if(a2>=a60)
{
m60=0;
}
if(a2<a60)
{
m60=-30;
}
}
if(a2<a30)
{
m30=0;
if(a2>=a60)
{
m60=10;
}
if(a2<a60)
{
m60=0;
}
}
}
}
}
if(a2>=a5 and a2>=a10 and a2>=a20 and a2>=a30 and a2<a60)m5=150;
if(a2>=a5 and a2>=a10 and a2<a20 and a2>=a30 and a2<a60)m5=130;
if(a2>=a5 and a2>=a10 and a2>=a20 and a2<a30 and a2<a60)m5=130;
if(a2>=a5 and a2<a10 and a2<a30 and a2<a60)m5=110;
if(a2<a5 and a2>=a10 and a2>=a20 and a2>=a30 and a2<a60)m5=30;
if(a2>=a5 and a2>=a10 and a2>=a20 and a5>=a10 and a2<a30 and a2<a60)m5=130;
if(a2>=a5 and a2>=a10 and a5>=a10 and a2<a20 and a2<a30 and a2<a60)m5=120;
if(a2>=a5 and a2>=a10 and a5<a10 and a2<a20 and a2<a30 and a2<a60)m5=110;
if(a2>=a5 and a2>=a10 and a2>=a20 and a2>=a30 and a2<a60 and a5<a10 and a10<a30)m5=130;
//资金仓位:m5+m10+m20+m30+m60;
//大单净量
r:=((zdmr[-1]+bdmr[-1])-(zdmc[-1]+bdmc[-1]))/shgzg*100;
//相对强弱
lc := ref(close,1);//前一日收盘价;
rsi$1:=sma(max(close-lc,0),3,1)/sma(abs(close-lc),3,1)*100;
rsi$2:=sma(max(close-lc,0),5,1)/sma(abs(close-lc),5,1)*100;
rsi$3:=sma(max(close-lc,0),8,1)/sma(abs(close-lc),8,1)*100;
相对强弱:=0.5*rsi$1+0.31*rsi$2+0.19*rsi$3;
wave$1:=sma(100*(close-llv(low,8))/(hhv(high,8)-llv(low,8)),3,1);
wave$2:=sma(100*(close-llv(low,8))/(hhv(high,8)-llv(low,8)),5,1);
wave$3:=sma(100*(close-llv(low,8))/(hhv(high,8)-llv(low,8)),8,1);
短线波段:=0.5*wave$1+0.31*wave$2+0.19*wave$3;
机会区:20,pointdot,colorred;
风险区:80,pointdot,colorgreen;
风险系数:0.5*相对强弱+0.5*短线波段,coloryellow;
//买入条件;
cd1:=if(风险系数<20 and close>open and r>0,1,0);//波段小于20,股价翻红;
cd2:=if(风险系数<20 and low>=ref(low,1) and close>low and r>0,1,0);//波段小于20,股价未翻红,但未创新低;
cd3:=if(ref(风险系数,1)<20 and 风险系数>ref(风险系数,1),1,0);//前一日波段小于20,今日转向;
signalbuy=(cd1=1 or cd2=1 or cd3=1);
x=(signalbuy and count(signalbuy,3)=1);
drawicon(x,机会区,"buy");
x_1:=close-ref(close,1);
x_2:=100*ema(ema(x_1,5),3)/ema(ema(abs(x_1),5),3);
x_3:=100*ema(ema(x_1,13),8)/ema(ema(abs(x_1),13),8);
x_4:=x_2>x_3;
x_5:=if(x_4,6,0);
x_6:=ema(close,8)-ema(close,13);
x_7:=ema(x_6,5);
x_8:=x_6>x_7;
x_9:=if(x_8,1,0);
x_10:=(ema(close,3)+ema(close,6)+ema(close,12)+ema(close,24))/4;
x_11:=close>x_10;
x_12:=if(x_11,5,0);
x_13:=(close-llv(low,8))/(hhv(high,8)-llv(low,8))*100;
x_14:=sma(x_13,3,1);
x_15:=sma(x_14,3,1);
x_16:=x_14>x_15;
x_17:=if(x_16,2,0);
x_18:=ref(close,1);
x_19:=sma(max(close-x_18,0),5,1)/sma(abs(close-x_18),5,1)*100;
x_20:=sma(max(close-x_18,0),13,1)/sma(abs(close-x_18),13,1)*100;
x_21:=x_19>x_20;
x_22:=if(x_21,3,0);
x_23:=(-(hhv(high,13)-close))/(hhv(high,13)-llv(low,13))*100;
x_24:=sma(x_23,3,1);
x_25:=sma(x_24,3,1);
x_26:=x_24>x_25;
x_27:=if(x_26,4,0);
x_28:=x_8+x_16+x_21+x_26+x_11+x_4-3;
【持股】:x_28>0,nodraw,colormagenta;
【持币】:x_28<0,nodraw,colorgreen;
【变盘】:x_28=0,nodraw,coloryellow;
0,coloryellow;//www.goodgongshi.com
stickline(【持股】,0,x_28,2,0),colormagenta;
stickline(【持币】,0,abs(x_28),2,0),colorgreen;
stickline(【变盘】,0,1,2,0),coloryellow;
drawicon(【持股】 and ref(x_28,1)<=0,-0.8,7);
drawicon(【持币】 and ref(x_28,1)>=0,-0.8,8);
【必买】:【持股】 and ref(x_28,1)<=0 and cross(close,ema(close,5)) and cross(close,ema(close,10)) and cross(close,ema(close,20)) and low>ref(low,1) and macd.macd>0,nodraw,colorred;
stickline(【必买】,-0.5,0,3,0),colorred;
stickline(【必买】,-0.5,-1,3,0),coloryellow;
//主动 :zdmr/vol*100;
//被动 :bdmr/vol*100;
//主卖 :zdmc/vol*100;
//被卖 :bdmc/vol*100;
//主买占 :=zdmr/shgzg*100;
//被买占 :=bdmr/shgzg*100;
//主卖占 :=zdmc/shgzg*100;
//被卖占 :=bdmc/shgzg*100;
//特:(bigbuycount1+waitbuycount1)/vol*100;
//大:(bigbuycount2+waitbuycount2)/vol*100;
//特m:(bigsellcount1+waitsellcount1)/vol*100;
//大m:(bigsellcount2+waitsellcount2)/vol*100;
//特占主:特/((((zdmr+bdmr)+(zdmc+bdmc))/(shgzg)*100)/huanshou*100)*100;
上一指标公式:J3579线均线指标详解 同花顺均线
下一指标公式:趋势顶底概念指标详解 同花顺概念
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文仓位与资金指标详解 同花顺仓位仅供学习研究。