分时主图
{分时主图}
{引用 预测股价 设定预测范围}
最高价1:"预测股价.最高价1#day",precis2,linethick0;
最低价1:"预测股价.最低价1#day",precis2,linethick0;
预测低一:"预测股价.预测低一#day",precis2,linethick0;
预测低一1:"预测股价.预测低一1#day",precis2,linethick0;
预测低二:"预测股价.预测低二#day",precis2,linethick0;
预测低二1:"预测股价.预测低二1#day",precis2,linethick0;
stickline((预测低二<预测低一),预测低二,预测低一,10,0),color0055ff,linethick0;
stickline((预测低一<预测低二),预测低一,预测低二,10,0),color0055ff,linethick0;
drawtext(barstatus=2,预测低一,' 预测低一:'+numtostrn(预测低一,2)+'元' ),colorffffff,linethick2;
drawtext(barstatus=2,预测低二,' 预测低二:'+numtostrn(预测低二,2)+'元' ),colorffffff,linethick2;
drawtext(time=93000,预测低一,' ●低吸区 '),colorffffff,linethick4;
平均价一:"预测股价.平均价一#day",coloryellow,linethick1,layer0;
平均价二:"预测股价.平均价二#day",coloryellow,linethick1,layer0;
stickline((平均价二<平均价一),平均价二,平均价一,10,0),colorblue,linethick2;
stickline((平均价一<平均价二),平均价一,平均价二,10,0),colorblue,linethick2;
drawtext(barstatus=2,平均价一,' 强势高价:'+numtostrn(平均价一,2)+'元' ),colorred,linethick2;
drawtext(barstatus=2,平均价二,' 弱势高价:'+numtostrn(平均价二,2)+'元' ),colorred,linethick2;
drawtext(time=93000,平均价一,' ●高抛区 '),colorffffff,linethick4;
{引用 分时资金}
净流入:="净流入.净流入#tick";
{忘了作者 动态阻力及支撑}
ma30:ema(close,30),linethick0;
强弱:ema(close,900),colorred,linethick1,layer0;
stickline((ma30>强弱),ma30,强弱,1,0),color0000ff;
stickline((ma30<强弱),ma30,强弱,1,0),color00ff00;
h1:=max(dynainfo(3),dynainfo(5));
l1:=min(dynainfo(3),dynainfo(6));
p1:=h1-l1;
阻力:l1+p1*7/8,color00dd00,linethick2,layer0;
支撑:l1+p1*0.5/8,color00dd00,linethick2,layer0;
现价:close,colorffffff,linethick0,layer0;
{支差:现价-支撑,linethick0;
阻差:现价-阻力,linethick0;
支差比:支差/ma30*100,linethick0;
阻差比:阻差/ma30*100,linethick0;}
{显示画面}
{hh:=dynainfo(5);
ll:=dynainfo(6);}
{今天最新价与昨收价差}
今昨差:现价-dynainfo(3),linethick0;
今昨差比:今昨差/dynainfo(3)*100,linethick0;
{今天最高价与昨收价差}
高昨差:dynainfo(5)-dynainfo(3),linethick0;
高昨差比:高昨差/dynainfo(3)*100,linethick0;
stickline(cross(支撑,现价),支撑,阻力,1,0),colorffffff,linethick1,layer0;
drawtext(longcross(支撑,现价,2),支撑*0.998,'低'),colorffffff,linethick4,layer0;
drawtext(longcross(现价,阻力,2),现价*1.001,'高'),colorffffff,linethick4,layer0;
drawtextabs(265,318,' 今日 昨日 昨 收 最新价'),colorffffff,linethick4;
drawtextabs(340,344,'最高价'),colorffffff,linethick4;
drawtextabs(340,370,'最低价'),colorffffff,linethick4;
drawtextabs(400,344,' '+numtostrn(dynainfo(3),2)),colorffffff,linethick4;
{分时横盘公式}
tt:=barscount(c);
cc:=close;
zz:=sum(amount,tt)/sum(vol*100,tt);
zz1:=between(c/zz,1.05,0.95);
均线:if(zz1=0,ma(c,tt),zz),color00ffff,linethick0;
上均:均线 + avedev(c,tt)*2,color00ff00,linethick0;
下均:均线 - avedev(c,tt)*2,colorff6600,linethick0;
时长:=if(hour>=13 and hour<15 ,1,0);
涨幅:=(close/dynainfo(3))>=1.03;
跌幅:=(close/dynainfo(3))<=0.97;
涨跌幅:=涨幅 or 跌幅;
yy:=sma(vol,30,1);
放量:=(yy-llv(llv(yy,1),30))/(hhv(hhv(yy,1),30)-llv(llv(yy,1),30))>0;
横盘:=((hhv(close,tt)-llv(close,tt))/close)<=0.05;
横涨:=涨跌幅=0 and 横盘 and 时长 and 放量 and cross(cc,上均)and dynainfo(22)<dynainfo(23) ;
横跌:=涨跌幅=0 and 横盘 and 时长 and 放量 and cross(下均,cc) ;
pp:= filter(横涨,100) ;
uu:= filter(横跌,50) ;
drawtext(pp,平均价一*1.005,'▲上冲'),colorffffff,linethick4;
drawtext(uu,预测低一*0.995,'▼下破'),colorgreen,linethick4;
vertline( pp,3),colorffffff;
vertline( uu,3),colorffffff;
{变色设计}
partline(c,c>=ref(c,1),rgb(255,250,250),c<=ref(c,1),rgb(0,255,0)),linethick2,layer0;
{一品老师的盘中急杀----一品茶缘编写,1分钟预警指标,附送急涨指标}
js1:=l=llv(l,3) and (l/hhv(h,3)-1)*100<=(0-3);
js2:=l=llv(l,10) and (l/hhv(h,10)-1)*100<=(0-5);
急杀:=js1 or js2;
drawtext(急杀,c,'●急杀'),colorgreen,linethick4;
{一品老师的分时过顶
kp30:=time0<36000;
kpgd:=h=hhv(h,0) and kp30;
gdsj:=barslast(kpgd);
hh:ref(h,gdsj),colorff00ff,pointdot,linethick0;
过顶:if(cross(c,hh),1,0),color00ff00,pointdot,linethick0;
冲高:if(filter(cross(c,hh*1.01),15),1,0),color00ffff,pointdot,linethick0;
drawtext(过顶,hh,'↑'),coloryellow,linethick2;
drawtext(冲高,hh,'▲'),coloryellow,linethick2;}
{前30分钟的股价}
vertline(time=94000,2);
vertline(time=95000,2);
vertline(time=100000,2);
drawtext(time=94000,c,numtostr(c)),colorffffff,linethick2;
drawtext(time=95000,c,numtostr(c)),colorffffff,linethick2;
drawtext(time=100000,c,numtostr(c)),colorffffff,linethick2;
{引用 分时副图 显示涨跌}
macd:"分时副图.macd",precis2,linethick0;
drawrectrel(262,744,686,930,rgb(47,79,79));
drawrectrel(446,744,686,930,rgb(47,79,79));
{drawrectrel(262,680,686,748,rgb(10,10,20));}
{颜色显示涨跌}
ssx0:=现价>dynainfo(3);
ssx1:=现价<dynainfo(3);
ssx2:=现价=dynainfo(3);
if barstatus=2 and ssx0 then begin
drawtextabs(529,344,' '+numtostrn(现价,2)),colorred,linethick4;
end
else
if barstatus=2 and ssx1 then begin
drawtextabs(529,344,' '+numtostrn(现价,2)),colorgreen,linethick4;
end
else
if barstatus=2 and ssx2 then begin
drawtextabs(529,344,' '+numtostrn(现价,2)),coloryellow,linethick4;
end;
上升:((macd>ref(macd,1)) and (macd<0)) or ((macd>ref(macd,1)) and (macd>0)),linethick0;
下跌:((macd<ref(macd,1)) and (macd>0)) or ((macd<ref(macd,1)) and (macd<0)),linethick0;
ssxd0:=上升;
ssxd1:=下跌;
if barstatus=2 and ssxd0 then begin
drawtextabs(550,318,' ▲上升中 '),colorred,linethick4;
drawrectrel(620,810,684,920,rgb(255,0,0));
end
else
if barstatus=2 and ssxd1 then begin
drawtextabs(550,318,' ▼下跌中 '),colorgreen,linethick4;
drawrectrel(620,810,684,920,rgb(0,255,0));
end;
ssxd3:=今昨差>0;
ssxd4:=今昨差<0;
if barstatus=2 and ssxd3 then begin
drawtextabs(430,370,' 涨:'+numtostrn(今昨差,2)),colorred,linethick4;
end
else
if barstatus=2 and ssxd4 then begin
drawtextabs(430,370,' 跌:'+numtostrn(今昨差,2)),colorgreen,linethick4;
end;
ssxd5:=今昨差比>0;
ssxd6:=今昨差比<0;
if barstatus=2 and ssxd5 then begin
drawtextabs(550,370,' '+numtostrn(今昨差比,2)+'%'),colorred,linethick4;
end
else
if barstatus=2 and ssxd6 then begin
drawtextabs(550,370,' '+numtostrn(今昨差比,2)+'%'),colorgreen,linethick4;
end;
ssxd11:=dynainfo(5)>最高价1;
ssxd12:=dynainfo(5)<最高价1;
ssxd13:=dynainfo(5)=最高价1;
if barstatus=2 and ssxd11 then begin
drawtextabs(254,344,' '+numtostrn(dynainfo(5),2)),colorred,linethick4;
drawtextabs(350,344,' '+numtostrn(最高价1,2)),colorgreen,linethick4;
end
else
if barstatus=2 and ssxd12 then begin
drawtextabs(254,344,' '+numtostrn(dynainfo(5),2)),colorgreen,linethick4;
drawtextabs(350,344,' '+numtostrn(最高价1,2)),colorred,linethick4;
end
else
if barstatus=2 and ssxd13 then begin
drawtextabs(254,344,' '+numtostrn(dynainfo(5),2)),coloryellow,linethick4;
drawtextabs(350,344,' '+numtostrn(最高价1,2)),coloryellow,linethick4;
end;
ssxd14:=dynainfo(6)>最低价1;
ssxd15:=dynainfo(6)<最低价1;
ssxd16:=dynainfo(6)=最低价1;
if barstatus=2 and ssxd14 then begin
drawtextabs(254,370,' '+numtostrn(dynainfo(6),2)),colorred,linethick4;
drawtextabs(350,370,' '+numtostrn(最低价1,2)),colorgreen,linethick4;
end
else
if barstatus=2 and ssxd15 then begin
drawtextabs(254,370,' '+numtostrn(dynainfo(6),2)),colorgreen,linethick4;
drawtextabs(350,370,' '+numtostrn(最低价1,2)),colorred,linethick4;
end
else
if barstatus=2 and ssxd16 then begin
drawtextabs(254,370,' '+numtostrn(dynainfo(6),2)),coloryellow,linethick4;
drawtextabs(350,370,' '+numtostrn(最低价1,2)),coloryellow,linethick4;
end;
jlr0:=净流入>0;
jlr1:=净流入<0;
if barstatus=2 and jlr0 then begin
drawtextabs(720,328,' ▲ 净流入:'+numtostrn(净流入,0)+'万元'),colorred,linethick4;
end
else
if barstatus=2 and jlr1 then begin
drawtextabs(720,328,' ▼ 净流入:'+numtostrn(净流入,0)+'万元'),colorgreen,linethick4;
end;
jlr2:=c>ref(c,1) ;{净流入递增中}
jlr3:=c<ref(c,1) ;{净流入递减中}
if barstatus=2 and jlr2 then begin
drawtextabs(720,358,' 递增中'),colorred,linethick4;
end
else
if barstatus=2 and jlr3 then begin
drawtextabs(720,358,' 递减中'),colorgreen,linethick4;
end
jlr4:=c=ref(c,1) and ref(c,1)>ref(c,2);{净流入递增中}
jlr5:=c=ref(c,1) and ref(c,1)<ref(c,2);{净流入递减中}
if barstatus=2 and jlr4 then begin
drawtextabs(720,358,' 递增过程中 现平盘'),colorred,linethick4;
end
else
if barstatus=2 and jlr5 then begin
drawtextabs(720,358,' 递减过程中 现平盘'),colorgreen,linethick4;
end
预测高低二:=预测低二-预测低二1;
预测高低一:=预测低一-预测低一1;
ycgd0:=预测高低二>0 or 预测高低一>0;
ycgd1:=预测高低二<0 or 预测高低一<0;
if barstatus=2 and ycgd0 then begin
drawtextabs(5,328,'▲最高价最低价可能高于昨日'),colorred,linethick4;
drawrectrel(380,748,446,810,rgb(0,255,0));
drawrectrel(263,748,329,810,rgb(255,0,0));
end
else
if barstatus=2 and ycgd1 then begin
drawtextabs(5,328,'▼最高价最低价可能低于昨日'),colorgreen,linethick4;
drawrectrel(380,748,446,810,rgb(255,0,0));
drawrectrel(263,748,329,810,rgb(0,255,0));
end;
上一指标公式:精确打击副图公式下载 大智慧打击源码
下一指标公式:TBS2主图公式下载 大智慧TBS2
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文分时主图公式下载 大智慧源码仅供学习研究。