//#@fname=抄底逃顶趋势决策
//#@comment=
//#@control=check#1 趋势线
//#|check#2 决策密码
//#@functype=
//#@style=:line516,成交价格,1,0,1,4,920515;
//#@availperiod=2147430400
//#@param=n1=1.0000000001,0.0000000001,1.0000000001,1;n2=0.0000000001,0.0000000001,1.0000000001,1;
//#@isdrawcurve=1
//#@fdesc=抄底逃顶趋势决策
//#@defaultperiod=16384
//#@coord=m
//#@ordinate=0,0.000000;0,0.000000;1,20487.000000;0,0.000000;0,0.000000;0;0,0.000000
//#@@funcspec@=source
lc:=ref(close,1);
rsi1:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
ar:=sum(high-open,26)/sum(open-low,26)*100;
varb:=sma(max(close-lc,0),7,1)/sma(abs(close-lc),7,1)*100;
varc:=sma(max(close-lc,0),13,1)/sma(abs(close-lc),13,1)*100;
vard:=barscount(close);
主力:=ema( (close-ma(close,7))/ma(close,7)*480,2)*5;
散户:=ema( (close-ma(close,11))/ma(close,11)*480,7)*5;
dplc:=ref(indexc,1);
dprsi1:=sma(max(indexc-dplc,0),6,1)/sma(abs(indexc-dplc),6,1)*100;
dpar:=sum(indexh-indexo,26)/sum(indexo-indexl,26)*100;
dpvarb:=sma(max(indexc-dplc,0),7,1)/sma(abs(indexc-dplc),7,1)*100;
dpvarc:=sma(max(indexc-dplc,0),13,1)/sma(abs(indexc-dplc),13,1)*100;
dpvard:=barscount(indexc);
dpzl:=ema( (indexc-ma(indexc,7))/ma(indexc,7)*480,2)*5;
dpsh:=ema( (indexc-ma(indexc,11))/ma(indexc,11)*480,7)*5;
drawtext(cross(85,rsi1),high*1.02,'顶'),colorgreen;
drawtext(cross(85,dprsi1),high*1.02,'系统风险'),coloryellow;
de1:=cross(rsi1,25) and (cross(dprsi1,25) or dpzl>dpsh);
drawtext(de1,low*0.98,'底'),colorred;
if((n1<1 and n2<1) or(n1>0 and n2>0))
{
if(close>open)
return "阳";
else if(close<open)
return "阴";
else if(close==open and open>=close[1])
return "阳";
else if(close==open and open<=close[1])
return "阴";
money;
k线换手;
}
else if((n1<1 and n2>0))
{
var1=money/vol;
a=sma(var1,5,1)-sma(var1,55,1);
b=sma((a-sma(a,5,1)),5,1);
风险系数:b;
if(close>ma(close,5) and a>ref(a,1) and b>ref(b,1))
return ("colorred");
if(close<ma(close,5) and a>ref(a,1) and b>ref(b,1))
return ("colorwhite");
if(a<ref(a,3) and b<ref(b,3) and close>=ma(close,20))
return ("colorwhite");
if(a<ref(a,3) and b<ref(b,3) and close<ma(close,20))
return ("colorgreen");
if(a>ref(a,1) and b<ref(b,1))
return ("colorwhite");
if(a<ref(a,1) and b>ref(b,1))
return ("colorwhite");
}
else if(n1>0 and n2<1)
{
大单净差bbd:=bigbuycount1+waitbuycount1-bigsellcount1-waitsellcount1;
dd:=大单净差bbd;
diff:=ema(大单净差bbd,2) - ema(大单净差bbd,4),coloryellow;
diff2:=ema(大单净差bbd,6) - ema(大单净差bbd,12),coloryellow;
m34:=ma(c,34);
m5:=ma(c,5);
r5:=count(大单净差bbd>0,5);
r6:=count(大单净差bbd>0,6);
a1:=if(c<ref(c,2)*1.0200,1,0);
a2:=if(c<ref(c,2)*1.0050,1,0);
a3:=if(c<ref(c,2)*0.0985,1,0);
a4:=if(c<ref(c,2)*0.0970,1,0);
a5:=if(diff>0,2,0);
a6:=if(diff2>0,2,0);
a7:=if(c>m34,2,0);
a8:=if(c>m5,2,0);
a9:=if(r5>3,2,0);
a10:=if(r6>3,1,0);
az:=a1+a2+a3+a4+a5+a6+a7+a8+a9+a10;
if(c<m5)
green:=c<m5;
else if(az>2.5)
red:=az>2.5;
else green:=az<2.5;
enterlong:=(ref(green,1)=1 and red=1 ) and count(ref(green,1)=1 and red=1,barslast(ref(red,1)=1 and green=1))=1;
exitlong:=ref(red,1)=1 and green=1 and count(ref(red,1)=1 and green=1,barslast(ref(green,1)=1 and red=1))=1;
verline(enterlong,1),colorred;
verline(exitlong,1),colorgreen;
if(c<m5)
return ("colorgreen");
if(az>2.5)
return ("colorred");
if(az<2.5)
return ("colorgreen");
}
shgzg;
money;
high;
low;
上一指标公式:大单净量日线副图搭配趋势线使用更完美指标公式详解 同花顺日线搭配
下一指标公式:黄金波段指标公式详解 同花顺波段
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文抄底逃顶趋势决策主图指标公式详解 同花顺源码决策仅供学习研究。