文件:红色百年博弈.alg
名称: 红色百年博弈 类别:技术指标
说明: {股票公式www.goodgongshi.com}
公式组: 百年公测
drawgbk(1,colorrgb(0,0,30),colorrgb(0,0,120),1);
n:=1020531;
m:=1090531;
上市日期年:ref(year,barscount(close)-1),linethick0,colorffffff;
月:ref(month,barscount(close)-1),linethick0,colorff99ff;
日:ref(day,barscount(close)-1),linethick0,colorff99ff;
drawtext(sysparam(2)=barpos,close,'证券代码:'+stklabel),align4,colorff99ff;
drawtext(barpos=sysparam(2),high,' 所属板块:'+blkname+' 发行价'+numtostr(finance(51),2)+'元'+' 发行量'+numtostr(finance(52),2)+'万股'+'\n'+'总股本'+numtostr(finance(1),0)+'万股'+' 流通a股'+numtostr(finance(7),0)+'万股'+' 净资产'+numtostr(finance(35),2)+'亿元'+' 每股收益'+numtostr(finance(33),2)+'元'+' 每股未分配'+numtostr(finance(32),2)+'元'+' 市盈率'+numtostr(dynainfo(39),2)+'%'+' 投资收益'+numtostr(finance(24),2)+'元'+' 股东总数'+numtostr(finance(50),0)+'户'),align4,colorff99ff;
drawtext(barscount(close)=sysparam(1),close,' 红色百年独有资金坑技术'),align4,colorffff;
drawtext(barscount(close)=sysparam(1),close,' 红色百年股票群74011259'),align3,colorffff;
drawtext(barscount(close)=sysparam(1),close,' 百年孤独;红蜻蜓牛年首发'),align5,colorffffff;
多方:=7*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*30,4,1)-3*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*30,4,1),3,1)-sma(sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*30,4,1),3,1),2,1);
drawtext(cross(78.89,多方),high*1.05,'逃'),colorff00;
stickline(open>=close,close,open,8,0),coloraaaaaa;
stickline(open>=close,close,open,6,0),colorbbbbbb;
stickline(open>=close,close,open,2.4,0),colorcccccc;
stickline(open>=close,close,open,1.1,0),colordddddd;
stickline(open>=close,close,low,0.5,0),colorcccccc;
stickline(open>=close,open,high,0.5,0),colorcccccc;
stickline(close>open,close,open,8,0),color6666cc;
stickline(close>open,close,open,6,0),color7777dd;
stickline(close>open,close,open,2.4,0),color8888ee;
stickline(close>open,close,open,1.1,0),color9999ff;
stickline(close>open,open,low,0.5,0),color1199ff;
stickline(close>open,close,high,0.5,0),color1199ff;
s3:=if(date<=1090531,1,0);
awe1:=3*sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*1,5,1)-2*sma((close-llv(low,55))/(hhv(high,55)-llv(low,55))*1,5,1);
awe2:=(ema(awe1,5)-ref(ema(awe1,5),1))/ref(ema(awe1,5),1)*1;
awe3:=(if(date>=n,if(date<=m,1,0),0))*(s3);
awe5:=(hhv(high,60)-close)/(hhv(high,60)-llv(low,60))*1;
drawtext(cross(awe1,ema(awe1,5)) and ema(awe1,5)<awe5*awe3,low*0.9,'(黑马)'),colorffff;{股票公式www.goodgongshi.com}
m55:ma(close,55),pointdot,linethick4,colorffff;
a01:=(close-llv(low,3))/(hhv(high,3)-llv(low,3));
a11:=sma(a01,2,1);
a21:=sma(a11,2,1);
a31:=3*a11-2*a21;
a41:=2*a31-0.5;
命:close*(1-(a41-a21)/15),linethick2,colorffffff;
弱:if(ma(close,4)>sma(low,21,2)*1.01,sma(low,21,2)*1.01,sma(low,21,2)*1.01),linethick3,colorff0000;
强:partline(sma(low,21,2)*1.01>=ref(sma(low,21,2)*1.01,1),sma(low,21,2)*1.01),linethick3,colorff00ff;
阻:peak(1,5,1)*s3,color8000ff;
支:trough(2,5,1),colorffb97a;
var3:=llv(high,240);
var4:=100*(close-var3)/var3;
var5:=(close-llv(low,528))/(hhv(high,528)-llv(low,528))*100;
var6:=(close-llv(close,530))/(hhv(close,530)-llv(close,530))*100;
var7:=if(date>=n,if(date<=m,1,0),0);
var8:=(sma(max(close-ref(close,1),0),34,1))/(sma(abs(close-ref(close,1)),7,1))*100;
var9:=(sma(max(close-ref(close,1),0),13,1))/(sma(abs(close-ref(close,1)),13,1))*100;
var10:=(if(troughbars(3,16,1)=0 and high>low+0.04,4,0))*var7;
var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);
var12:=zig(3,6)<ref(zig(3,6),1) and ref(zig(3,6),1)>=ref(zig(3,6),2) and ref(zig(3,6),2)>=ref(zig(3,6),3);
var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),2) and ref(zig(3,22),2)<=ref(zig(3,22),3);
var14:=zig(3,22)<ref(zig(3,22),1) and ref(zig(3,22),1)>=ref(zig(3,22),2) and ref(zig(3,22),2)>=ref(zig(3,22),3);
var15:=zig(3,51)>ref(zig(3,51),1) and ref(zig(3,51),1)<=ref(zig(3,51),2) and ref(zig(3,51),2)<=ref(zig(3,51),3);
var16:=zig(3,51)<ref(zig(3,51),1) and ref(zig(3,51),1)>=ref(zig(3,51),2) and ref(zig(3,51),2)>=ref(zig(3,51),3);
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);
var18:=zig(3,72)<ref(zig(3,72),1) and ref(zig(3,72),1)>=ref(zig(3,72),2) and ref(zig(3,72),2)>=ref(zig(3,72),3);
var19:=ema(close,2)-ema(close,150);
买1:=var10;
买2:=var11+var13+var15+var17*var7;
卖1:=var12+var14+var16+var18*var7;
b:=partline(买1>0 or 买2>0,low*0.99);
drawicon(买1>0 or 买2>0,low*0.96,1),colorff;
慧:=if(卖1>0,high*1.01,0);
孤:=if(卖1>0,high*1.01,0);
drawicon(卖1>0,high*1.02,2);
var100:=100-90*(hhv(high,20)-close)/(hhv(high,20)-llv(low,20));
var200:=100-90*(hhv(high,20)-close)/(hhv(high,20)-llv(low,20));
var300:=100-ma(100*(hhv(high,5)-close)/(hhv(high,5)-llv(low,5)),34);
电话:=if(cross(var200,ma(var300,5)),low*0.98,0);
var20:=ema(amount/vol/100,3);
var21:=ema(var20,88);
var22:=ema(var20,88)*0.85;
vara:=var22*0.87;
varb:=(low<vara and close>ref(close,1))*1.02;
drawicon(filter(varb,6),low*0.96,1);
重:(close+0.618*ref(close,1)+0.382*ref(close,2)+0.236*ref(close,3)+0.146*ref(close,4))/2.382*s3,linethick1,color1;
gao:=hhv(close,60)-llv(close,60);
rsi:=(sma(max(重-ref(重,1),0),5,1))/(sma(abs(重-ref(重,1)),5,1));
平衡:=ema(slope(close,22)*20+close,55);
红多:partline(重>=平衡,平衡),linethick3,colorff;
绿空:partline(重<平衡,平衡),linethick3,colorff00;
sat:=if(amount/close/(hhv(amount,20)/hhv(close,20))*100>100,100,amount/close/(hhv(amount,20)/hhv(close,20))*100);
压1:=ma(ref(hhv(close,30),1),2);
支1:=ma(ref(llv(close,30),1),2);
aa1:=amount/vol;
bb1:=low<aa1*0.9;
cc1:=(close-ref(close,1))/ref(close,1)*100>1.2;
dd1:=low<ma(close,5)*0.921;
ee1:=vol<ma(vol,5)*1.5;
ff1:=bb1 and cc1 and dd1 and ee1;
drawtext(ff1,low*0.9,'★老鼠仓'),color4080ff;
lc:=ref(close,1);
rsq:=(sma(max(close-lc,0),3,1))/(sma(abs(close-lc),3,1))*100;
ff:=ema(close,3);
ma15:=ema(close,21);
ma16:=if(date>=n,if(date<=m,1,0),0);
drawtext(cross(ff,ma15*ma16),low*0.9,'★底背离'),colorff00ff;
drawtext(cross(88,rsq),支*0.96,'★顶背离'),colorff00;
v2:=llv(low,27);
v3:=hhv(high,34);
v4:=ema((close-v2)/(v3-v2)*4,4)*25;
注意买:=if(v4<10,80,100);
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;
超跌:=if(j<0,10,0);
bddd:=llv(j,2)=llv(j,8);
买入:=if(cross(j,ref(j+0.01,1)) and bddd and j<20,30,0);
drawtext(买入 and 注意买=100 and 超跌=0,low*0.92,'★短'),colore9c2a6;
vr3:=(2*close+high+low)/4;
vr4:=llv(low,34);
vr5:=hhv(high,34);
gg:=high*1.02;
sst:=if(date>=n,if(date<=m,1,0),0);
散户:=ema((vr3-vr4)/(vr5-vr4)*100,13)*sst;
新庄:=ema(0.667*ref(散户,1)+0.333*散户,2);
drawtext(cross(散户,30) and 新庄<散户 and islastbar,gg,'★注意调整 '),colorff00;
drawtext(cross(散户,65) and 新庄<散户 and islastbar,gg,'★注意止盈 '),colorff;
drawtext(cross(散户,75) and 新庄<散户 and islastbar,gg,'★小心被套 '),colorf0f000;
逢低吸呐:=cross(散户,新庄) and 散户<40;
逢高减磅:=cross(新庄,散户) and 新庄>5;
drawtext(逢低吸呐 and islastbar,low*0.95,'★低吸'),colorffffff;
drawtext(逢高减磅 and islastbar,gg,'★逢高减磅'),colorff;
pp:=(high+low+close)/3;
pp1:=2*pp-low;
wx:=ma(close,0);
c1:=ref(close,1);
c2:=hhv(c1,2);
c3:=llv(c1,1);
et:=hhv(c1,2);
et1:=ref(et,1);
xb:=llv(c1,1);
xb1:=ref(xb,1);
mm:=barslast(close<xb and c1>=xb1);
m11:=ref(mm,1);
n9:=barslast(close>et and c1<=et1);
n1:=ref(n9,1);
m21:=(barslast(mm-n9>0 and m11<=n1))+1;
n2:=(barslast(n9-mm>0 and n1<=m11))+1;
et2:=hhv(et,m21);
xb2:=llv(xb,n2);
a:=if(mm-n9>0 and m11<=n1,1,if(n9-mm>0 and n1<=m11,0,2));
h1:=if(mm-n9>0,close,et2);
h2:=if(a=1,close,c2);
h3:=if(mm-n9<0,close,xb2);
h4:=if(a=1,close,xb2);
h5:=if(mm-n9>0 or a=1,close,h3);
h6:=ref(h5,1);
h7:=ref(h5,2);
h8:=h5>h6;
h9:=h4=ref(h4,1) and ref(h4,1)<ref(h4,2) and h5>ref(h5,2);
h10:=h2=ref(h2,1) and h4=ref(h4,1) and h5=ref(h5,2);
w:=h8 or h9 or h10;
t9:=h5<h6 and h5<ref(h5,2);
t10:=h4=ref(h4,1) and h5<ref(h5,2);
t11:=h3>ref(h3,1) and h5<ref(h5,1);
t12:=h5=ref(h5,1) and h3=h4;
t13:=h2=ref(h2,1) and h2=h5;
tw:=t9 or t10 or t11 or t12 or t13;
pk:=amount*(open+close+high+low)/4;
pk1:=if(vol>0,pk/amount,(open+close+high+low)/4);
bbp:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
ss:=w and bbp<96.5;
ts:=islastbar=1;
drawtext(ss and ts,low*0.89,'★明日看涨'),colorff;
drawtext(tw and ts and bbp>1,high*1.12,'明日看跌'),colorff00;
kk3:=ref(close,1);
kk4:=(sma(max(close-kk3,0),6,1))/(sma(abs(close-kk3),6,1))*100;
drawtext(cross(84,kk4),high*1.08,'逃'),colorffff;
kk5:=ref((low+open+close+high)/4,1);
kk6:=(sma(abs(low-kk5),13,1))/(sma(max(low-kk5,0),10,1));
kk7:=ema(kk6,10);
kk8:=llv(low,33)*sst;
kk9:=ema(if(low<=kk8,kk7,0),5);
主力进场:=filter(kk9>ref(kk9,1),5);
drawtext(filter(kk9>ref(kk9,1),5) and islastbar,low*0.86,'主力进场'),colorff;
drawtext(filter(kk5>ref(kk5,1),5) and islastbar,low*1.08,'主力出场'),color70db93;
ee3:=peakbars(3,15,1)<10;
ee5:=if(ee3=1,2,0);
顶:=if(ee5=2,2,0);
顶a:=if(顶>ref(顶,1),50,0);
drawtext(顶a=50,high*1.03,'逃'),colorff;
vkt0:=if(date>=n,if(date<=m,1,0),0);
vkt1:=peakbars(3,15,1)<10;
vkt2:=if(vkt1=1,2,0);
ktd:=if(vkt2=2,2,0);
ktda:=ktd>ref(ktd,1)*vkt0;
drawtext(ktda,high*1.04,'●黄金出逃点'),colorffff;
asd:=barscount(close);
ah:=hhv(high,200);
al:=llv(low,200);
b0:=(ah-al)/40;
b1:=high+b0;
b2:=low-b0;
drawtext((asd+0)/34=floor((asd+0)/34),支*0.93,'时间窗'),colorffffff;
上一指标公式:背离MACD公式 飞狐背离指标 源码
下一指标公式:江恩短线超强板公式 飞狐江恩指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文红色百年博弈公式 飞狐博弈指标 源码仅供学习研究。