fo:=open;
fh:=high;
fl:=low;
fc:=close;
<%
vo=ffl.vardata("fo")
vh=ffl.vardata("fh")
vl=ffl.vardata("fl")
vc=ffl.vardata("fc")
last=ubound(vc)
vc(0)=(vh(0)+vl(0)+2*vc(0))/4
for i=1 to last
vo(i)=(vo(i-1)+vc(i-1))/2
if vo(i)>vh(i) then vh(i)=vo(i) else vh(i)=vh(i)
if vo(i)<vl(i) then vl(i)=vo(i) else vl(i)=vl(i)
vc(i)=(2*vc(i)+vh(i)+vl(i))/4
next
ffl.vardata("fo")=vo
ffl.vardata("fh")=vh
ffl.vardata("fl")=vl
ffl.vardata("fc")=vc
%>
kk:=if(fc>=fo and (fc>=ref(fc,1) or ref(fc,1)>=ref(fo,1)),1,if(fc<fo and (fc<ref(fo,1) or ref(fc,1)<ref(fo,1)),-1,0));
stickline(fc>fo,fh,fl,4,0),coloraa;
stickline(fc>fo,fh,fl,3.5,0),color11bb;
stickline(fc>fo,fh,fl,2.5,0),color22cc;
stickline(fc>fo,fh,fl,1.5,0),color33dd;
stickline(fc>fo,fh,fl,1,0),color44ee;
stickline(fc>fo,fh,fl,0.5,0),color55ff;
stickline(fo>fc,fh,fl,4,0),coloraa0000;
stickline(fo>fc,fh,fl,3.5,0),colorbb0000;
stickline(fo>fc,fh,fl,2.5,0),colorcc0000;
stickline(fo>fc,fh,fl,1.5,0),colordd0000;
stickline(fo>fc,fh,fl,1,0),coloree0000;
stickline(fo>fc,fh,fl,0.5,0),colorff0000;
stickline(kk=1 and fc>=fo,fo,fc,8,0),coloraa;
stickline(kk=1 and fc>=fo,fo,fc,7.5,0),color11bb;
stickline(kk=1 and fc>=fo,fo,fc,6.5,0),color22cc;
stickline(kk=1 and fc>=fo,fo,fc,5.5,0),color33dd;
stickline(kk=1 and fc>=fo,fo,fc,4,0),color44ee;
stickline(kk=1 and fc>=fo,fo,fc,3.5,0),color55ff;
stickline(kk=1 and fc<fo,fo,fc,8,0),coloraa;
stickline(kk=1 and fc<fo,fo,fc,7.5,0),color11bb;
stickline(kk=1 and fc<fo,fo,fc,6.5,0),color22cc;
stickline(kk=1 and fc<fo,fo,fc,5.5,0),color33dd;
stickline(kk=1 and fc<fo,fo,fc,4,0),color44ee;
stickline(kk=1 and fc<fo,fo,fc,3.5,0),color55ff;
stickline(kk=-1 and fc>=fo,fo,fc,8,0),coloraa0000;
stickline(kk=-1 and fc>=fo,fo,fc,7.5,0),colorbb0000;
stickline(kk=-1 and fc>=fo,fo,fc,6.5,0),colorcc0000;
stickline(kk=-1 and fc>=fo,fo,fc,5.5,0),colordd0000;
stickline(kk=-1 and fc>=fo,fo,fc,4,0),coloree0000;
stickline(kk=-1 and fc>=fo,fo,fc,3.5,0),colorff0000;
stickline(kk=-1 and fc<fo,fo,fc,8,0),coloraa0000;
stickline(kk=-1 and fc<fo,fo,fc,7.5,0),colorbb0000;
stickline(kk=-1 and fc<fo,fo,fc,6.5,0),colorcc0000;
stickline(kk=-1 and fc<fo,fo,fc,5.5,0),colordd0000;
stickline(kk=-1 and fc<fo,fo,fc,4,0),coloree0000;
stickline(kk=-1 and fc<fo,fo,fc,3.5,0),colorff0000;
stickline(kk=0 and fc>=fo,fo,fc,8,0),coloraa;
stickline(kk=0 and fc>=fo,fo,fc,7.5,0),color11bb;
stickline(kk=0 and fc>=fo,fo,fc,6.5,0),color22cc;
stickline(kk=0 and fc>=fo,fo,fc,5.5,0),color33dd;
stickline(kk=0 and fc>=fo,fo,fc,4,0),color44ee;
stickline(kk=0 and fc>=fo,fo,fc,3.5,0),color55ff;
stickline(kk=0 and fc<fo,fo,fc,8,0),coloraa;
stickline(kk=0 and fc<fo,fo,fc,7.5,0),color11bb;
stickline(kk=0 and fc<fo,fo,fc,6.5,0),color22cc;
stickline(kk=0 and fc<fo,fo,fc,5.5,0),color33dd;
stickline(kk=0 and fc<fo,fo,fc,4,0),color44ee;
stickline(kk=0 and fc<fo,fo,fc,3.5,0),color55ff;
多空趋势线:(ma(close,5)+ma(close,10)+ma(close,15)+ma(close,20))/4,colorff;
partline(多空趋势线>=ref(多空趋势线,1),多空趋势线),linethick3,colorff;
partline(多空趋势线<ref(多空趋势线,1),多空趋势线),linethick3,colorff00;
a1:=barslast(cross(fc,多空趋势线) and 多空趋势线>=ref(多空趋势线,1) or fc>多空趋势线 and 多空趋势线>=ref(多空趋势线,1) and ref(多空趋势线,1)<ref(多空趋势线,2));
a2:=barslast(cross(多空趋势线,fc) and 多空趋势线<ref(多空趋势线,1) or fc<多空趋势线 and 多空趋势线<ref(多空趋势线,1) and ref(多空趋势线,1)>=ref(多空趋势线,2));
drawtext(cross(a2,a1),fl,'▲'),align0,pxdn20,colorff;
drawtext(cross(a2,a1),fl,'买进讯号'),align0,pxdn60,colorff;
drawtext(cross(a1,a2),fh,'▼'),align0,pxup20,colorff0000;
drawtext(cross(a1,a2),fh,'卖出讯号'),align0,pxup60,colorff0000;
explainicon(close,'xnkl'),align0;
explain(close,stkname),colorffff;
explain(ref(kk,1)<>1 and kk=1,'多头加码讯号〔蓝k转红k〕'),colorff;
explain(ref(kk,1)<>-1 and kk=-1,'空头加码讯号〔红k转蓝k〕'),colorff00;
a01:=ma(close,20);
a02:=close>ma(close,5);
a03:=ma(close,5)>ma(close,10);
a04:=close>ma(close,10);
a05:=ma(close,5)>ma(close,20);
a06:=close>ma(close,20);
a07:=ref(a01,1);
a08:=a01>a07;
avx:=if(a02,10,-10)+if(a03,10,-10)+if(a04,10,-10)+if(a05,10,-10)+if(a06,10,-10)+if(a08,10,-10);
dslx:=close/indexc;
dslx1:=ma(dslx,5);
dslx2:=ma(dslx,10);
v1:=ma(vol,5);
v2:=ma(vol,10);
阻力位:=if(close>200,close*1.01,close*1.07);
阻力位1:=if(close<10,close*1.05,阻力位);
止损位:=if(close>200,close*0.99,close*0.93);
止损位1:=if(close<10,close*0.95,止损位);
情况1:=cross(avx,1) and v1>=v2 and dslx>=dslx1;
情况2:=cross(avx,1) and v1<v2 and dslx>=dslx1;
情况3:=cross(avx,1) and v1>v2 and dslx<dslx1;
情况4:=cross(avx,1) and v1<=v2 and dslx<dslx1;
情况5:=cross(1,avx) and v1>=v2 and dslx>=dslx1;
情况6:=cross(1,avx) and v1<v2 and dslx>=dslx1;
情况7:=cross(1,avx) and v1>=v2 and dslx<dslx1;
情况8:=cross(1,avx) and v1<v2 and dslx<dslx1;
情况9:=avx>=1 and ref(avx,1)>0 and v1>=v2 and dslx>=dslx1;
情况10:=avx>=1 and ref(avx,1)>0 and v1<v2 and dslx>=dslx1;
情况11:=avx>=1 and ref(avx,1)>0 and v1>=v2 and dslx<dslx1;
情况12:=avx>=1 and ref(avx,1)>0 and v1<v2 and dslx<dslx1;
情况13:=avx<1 and ref(avx,1)<0 and v1>=v2 and dslx>=dslx1;
情况14:=avx<1 and ref(avx,1)<0 and v1<v2 and dslx>=dslx1;
情况15:=avx<1 and ref(avx,1)<0 and v1>=v2 and dslx<dslx1;
情况16:=avx<1 and ref(avx,1)<0 and v1<v2 and dslx<dslx1;
大盘1:=cross(avx,1) and v1>=v2;
大盘2:=cross(avx,1) and v1<v2;
大盘3:=cross(1,avx) and v1>=v2;
大盘4:=cross(1,avx) and v1<v2;
大盘5:=avx>=1 and ref(avx,1)>0 and v1>=v2;
大盘6:=avx>=1 and ref(avx,1)>0 and v1<v2;
大盘7:=avx<1 and ref(avx,1)<0 and v1>=v2;
大盘8:=avx<1 and ref(avx,1)<0 and v1<v2;
explainicon(情况1 and close<200,'q001'),align0;
explainex(情况1 and close<200,'阻力位:',阻力位1,2,1),colorff;
explainex(情况1 and close<200,'止损位:',止损位1,2,1),colorff;
explainicon(情况2 and close<200,'q002'),align0;
explainex(情况2 and close<200,'阻力位:',阻力位1,2,1),colorff;
explainex(情况2 and close<200,'止损位:',止损位1,2,1),colorff;
explainicon(情况3 and close<200,'q003'),align0;
explainex(情况3 and close<200,'阻力位:',阻力位1,2,1),colorff;
explainex(情况3 and close<200,'止损位:',止损位1,2,1),colorff;
explainicon(情况4 and close<200,'q004'),align0;
explainex(情况4 and close<200,'阻力位:',阻力位1,2,1),colorff;
explainex(情况4 and close<200,'止损位:',止损位1,2,1),colorff;
explainicon(情况5 and close<200,'q005'),align0;
explainex(情况5 and close<200,'阻力位:',阻力位1,2,1),colorff00;
explainex(情况5 and close<200,'止损位:',止损位1,2,1),colorff00;
explainicon(情况6 and close<200,'q006'),align0;
explainex(情况6 and close<200,'阻力位:',阻力位1,2,1),colorff00;
explainex(情况6 and close<200,'止损位:',止损位1,2,1),colorff00;
explainicon(情况7 and close<200,'q007'),align0;
explainex(情况7 and close<200,'阻力位:',阻力位1,2,1),colorff00;
explainex(情况7 and close<200,'止损位:',止损位1,2,1),colorff00;
explainicon(情况8 and close<200,'q008'),align0;
explainex(情况8 and close<200,'阻力位:',阻力位1,2,1),colorff00;
explainex(情况8 and close<200,'止损位:',止损位1,2,1),colorff00;
explainicon(情况9 and close<200,'q009'),align0;
explainex(情况9 and close<200,'阻力位:',阻力位1,2,1),colorffff;
explainex(情况9 and close<200,'止损位:',止损位1,2,1),colorffff;
explainicon(情况10 and close<200,'q010'),align0;
explainex(情况10 and close<200,'阻力位:',阻力位1,2,1),colorffff;
explainex(情况10 and close<200,'止损位:',止损位1,2,1),colorffff;
explainicon(情况11 and close<200,'q011'),align0;
explainex(情况11 and close<200,'阻力位:',阻力位1,2,1),colorffff;
explainex(情况11 and close<200,'止损位:',止损位1,2,1),colorffff;
explainicon(情况12 and close<200,'q012'),align0;
explainex(情况12 and close<200,'阻力位:',阻力位1,2,1),colorffff;
explainex(情况12 and close<200,'止损位:',止损位1,2,1),colorffff;
explainicon(情况13 and close<200,'q013'),align0;
explainex(情况13 and close<200,'阻力位:',阻力位1,2,1);
explainex(情况13 and close<200,'止损位:',止损位1,2,1);
explainicon(情况14 and close<200,'q014'),align0;
explainex(情况14 and close<200,'阻力位:',阻力位1,2,1);
explainex(情况14 and close<200,'止损位:',止损位1,2,1);
explainicon(情况15 and close<200,'q015'),align0;
explainex(情况15 and close<200,'阻力位:',阻力位1,2,1);
explainex(情况15 and close<200,'止损位:',止损位1,2,1);
explainicon(情况16 and close<200,'q016'),align0;
explainex(情况16 and close<200,'阻力位:',阻力位1,2,1);
explainex(情况16 and close<200,'止损位:',止损位1,2,1);
explainicon(情况1 and close>200,'q017'),align0;
explainex(大盘1 and close>200,'阻力位:',阻力位1,2,1),colorff;
explainex(大盘1 and close>200,'止损位:',止损位1,2,1),colorff;
explainicon(大盘2 and close>200,'q018'),align0;
explainex(大盘2 and close>200,'阻力位:',阻力位1,2,1),colorff;
explainex(大盘2 and close>200,'止损位:',止损位1,2,1),colorff;
explainicon(大盘3 and close>200,'q019'),align0;
explainex(情况3 and close>200,'阻力位:',阻力位1,2,1),colorff00;
explainex(情况3 and close>200,'止损位:',止损位1,2,1),colorff00;
explainicon(大盘4 and close>200,'q020'),align0;
explainex(大盘4 and close>200,'阻力位:',阻力位1,2,1),colorff00;
explainex(大盘4 and close>200,'止损位:',止损位1,2,1),colorff00;
explainicon(大盘5 and close>200,'q021'),align0;
explainex(大盘5 and close>200,'阻力位:',阻力位1,2,1),colorffff;
explainex(大盘5 and close>200,'止损位:',止损位1,2,1),colorffff;
explainicon(大盘6 and close>200,'q022'),align0;
explainex(大盘6 and close>200,'阻力位:',阻力位1,2,1),colorffff;
explainex(大盘6 and close>200,'止损位:',止损位1,2,1),colorffff;
explainicon(大盘7 and close>200,'q023'),align0;
explainex(大盘7 and close>200,'阻力位:',阻力位1,2,1);
explainex(大盘7 and close>200,'止损位:',止损位1,2,1);
explainicon(大盘8 and close>200,'q024'),align0;
explainex(大盘8 and close>200,'阻力位:',阻力位1,2,1);
explainex(大盘8 and close>200,'止损位:',止损位1,2,1);
a00:=ma(close,22);
a03:=(ema(high,5)+ema(low,5)+ema(close,5)*2)/4;
a04:=ref(a03,1);
a02:=fo>fc and kk=0 and fc<fo;
explainicon(ref(a02,1)=1 and fc>=fo,'红阴十字k'),align0;
explainicon(ref(a02,1)=1 and fc<fo,'红阴十字k'),align0;
explainicon(close,'tsjc'),align0;
ss:=30;
hhc:=hhv(h,ss);
llc:=llv(l,ss);
partline(barpos>=sysparam(1)-ss,hhc[sysparam(1)]),colorff88cc;
drawnumber(barpos=sysparam(1)-ss,hhc[sysparam(1)],hhc[sysparam(1)],2),colorff88cc,pxup25;
partline(barpos>=sysparam(1)-ss,llc[sysparam(1)]),colorff88cc;
drawnumber(barpos=sysparam(1)-ss,llc[sysparam(1)],llc[sysparam(1)],2),colorff88cc,pxup25;
partline(barpos>=sysparam(1)-ss,(hhc[sysparam(1)]+llc[sysparam(1)])/2),colorff88cc;
drawnumber(barpos=sysparam(1)-ss,(hhc[sysparam(1)]+llc[sysparam(1)])/2,(hhc[sysparam(1)]+llc[sysparam(1)])/2,2),colorff88cc,pxup25;
partline(barpos>=sysparam(1)-ss,(hhc[sysparam(1)]*3+llc[sysparam(1)])/4),colorff88cc,pointdot;
partline(barpos>=sysparam(1)-ss,(hhc[sysparam(1)]+llc[sysparam(1)]*3)/4),colorff88cc,pointdot;
k1:zig(4,7);
k2:=filter(backset(cross(k1,ma(k1,2)),2),1);
k3:=filter(backset(cross(ma(k1,2),k1),2),1);
drawnumber(k2,k1,k1,2),coloryellow;
drawnumber(k3,k1*1.02,k1,2),coloryellow;
上一指标公式:高抛决策主图公式下载 飞狐决策指标 源码
下一指标公式:精确的倒数线主图公式下载 飞狐倒数精确指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文画线主图有波峰波谷数值显示主图公式下载 飞狐波峰数值指标 源码仅供学习研究。