ma之x主图
量子汤证券投资工作室版权所有:7,linethick0,precision1;
h1:=ref(high,1);
h2:=ref(high,2);
h3:=ref(high,3);
hx1:=refx(high,1);
hx2:=refx(high,2);
hx3:=refx(high,3);
l1:=ref(low,1);
l2:=ref(low,2);
l3:=ref(low,3);
lx1:=refx(low,1);
lx2:=refx(low,2);
lx3:=refx(low,3);
uffx:=high>=max(h1,max(h2,h3)) and high>max(hx1,max(hx2,hx3));
dffx:=low<=min(l1,min(l2,l3)) and low<min(lx1,min(lx2,lx3));
peu:=barslast(uffx);
ped:=barslast(dffx);
top:=sysparam(4);
bot:=sysparam(5);
tb:=barslast(filterx(low=bot,datacount));
tt:=barslast(filterx(high=top,datacount));
a:=if(tb>=0,1,0);
abot1:=if(stktype=0 or stktype=7,floor(bot/10),if(bot>=100,floor(bot),if(bot<10,floor(bot*10),floor(bot*10))));
atop1:=if(stktype=0 or stktype=7,floor(top/10),if(top>=100,floor(top),if(top<10,floor(top*10),floor(top*10))));
abl:=if(stktype=0 or stktype=7,floor(low/10),if(bot>=100,floor(low),if(bot<1,floor(low*10),floor(low*10))));
ath:=if(stktype=0 or stktype=7,floor(high/10),if(bot>=100,floor(high),if(bot<1,floor(high*10),floor(high*10))));
abc:=if(stktype=0 or stktype=7,floor(close/10),if(bot>=100,floor(close),if(bot<1,floor(close*10),floor(close*10))));
agbot:=if(stktype=0 or stktype=7,floor(bot/1),if(bot>=100,floor(bot),if(bot<10,floor(bot*10),floor(bot*10))));
agtop:=if(stktype=0 or stktype=7,floor(top/1),if(top>=100,floor(top),if(top<10,floor(top*10),floor(top*10))));
qh_b:=round((sqrt(agbot)-0.22)/2);
zero_b:=pow(qh_b*2+1,2)-7*qh_b;
angle_b:=(agbot-zero_b)*45/qh_b;
n:=if(angle_b<360 and angle_b>315,mod(angle_b,315),if(angle_b<315 and angle_b>270,mod(angle_b,270),if(angle_b<270 and angle_b>225,mod(angle_b,225),if(angle_b<225 and angle_b>180,mod(angle_b,180),if(angle_b<180 and angle_b>135,mod(angle_b,135),if(angle_b<135 and angle_b>90,mod(angle_b,90),if(angle_b<90 and angle_b>45,mod(angle_b,45),23)))))));
ma1:=ma(low,n*0.5);
ma2:=ma(low,n);
ma3:=ma(low,n*2);
ma4:=ma(low,n*4);
ma5:=ma(low,n*6);
ma6:=ma(low,n*8);
ma7:=ma(low,n*10);
n,linethick0;
fillrgn(ma3>ma4,ma4*1,ma3*1),color9fce11;
fillrgn(ma5>ma6,ma6*1,ma5*1),color9dddee;
fillrgn(ma6>ma7,ma7*1,ma6*1),color9fce66;
if n>=10 then begin
m1:ma1*1;
fillrgn(ma1>ma2,ma2*1,ma1*1),color9fcecc;
end;
m2:ma2*1;
m3:ma3*1;
m4:ma4*1;
m5:ma5*1;
m6:ma6*1;
m7:ma7*1;
stickline(close>open,high,low,0,1),color90;
stickline(close>open,close,open,6,1),color90;
stickline(close<=open,high,low,0,0),color408080;
stickline(close<=open,close,open,6,0),color408000;
drawnumber(tb=n*0.5,ma1,n*0.5,0),color10000;
drawnumber(tb=n,ma2,n,0),color10000;
drawnumber(tb=n*2,ma3,n*2,0),color10000;
drawnumber(tb=n*4,ma4,n*4,0),color10000;
drawnumber(tb=n*6,ma5,n*6,0),color10000;
drawnumber(tb=n*8,ma4,n*8,0),color10000;
drawnumber(tb=n*10,ma5,n*10,0),color10000;
if stktype=0 or stktype=7 then begin
drawnumber(uffx and high<>sysparam(4),high,tb,0),align0,pxup30,color808000;
drawnumber(uffx and high=sysparam(4),high,tb,0),align2,pxup30,color808000;
drawnumber(dffx and low<>sysparam(5),low,tb,0),align0,pxdn5,color808000;
drawnumber(uffx and high<>sysparam(4),high*a,ath,0),align0,pxup55,color80;
drawnumber(uffx and high=sysparam(4),high*a,ath,0),align2,pxup55,color80;
drawnumber(dffx and low<>sysparam(5),low*a,abl,0),align0,pxdn25,color80;
end;
if stktype=1 and datatype<=8 then begin
drawnumber(uffx and high<>sysparam(4),high,tb,0),align0,pxup30,color808000;
drawnumber(uffx and high=sysparam(4),high,tb,0),align2,pxup30,color808000;
drawnumber(dffx and low<>sysparam(5),low,tb,0),align0,pxdn5,color808000;
drawnumber(uffx and high<>sysparam(4),high*a,ath,0),align0,pxup55,color80;
drawnumber(uffx and high=sysparam(4),high*a,ath,0),align2,pxup55,color80;
drawnumber(dffx and low<>sysparam(5),low*a,abl,0),align0,pxdn28,color80;
end;
zsun5:=if(low>=ref(low,ped),5/(close/(ref(low,ped)/1.005)-1),0);
zsun3:=if(low>=ref(low,ped),3/(close/(ref(low,ped)/1.005)-1),0);
zsun1:=if(low>=ref(low,ped),1/(close/(ref(low,ped)/1.005)-1),0);
stop:=if(low>=ref(low,ped),ref(low,ped)/1.005,low/1.005);
drawtext(barpos=sysparam(1),bot*1.02,'5%止损:仓位-价位:'),align1,shift5,pxup127,colorffff;
drawtext(barpos=sysparam(1),bot*1.02,'3%止损:仓位-价位:'),align1,shift5,pxup70,colorff00ff;
drawtext(barpos=sysparam(1),bot*1.02,'1%止损:仓位-价位:'),align1,shift5,pxup18,colorff0000;
drawnumber(barpos=sysparam(1),bot*1.02,floor(zsun5),0),align2,shift8,pxup100,colorffff;
drawnumber(barpos=sysparam(1),bot*1.02,floor(zsun3),0),align2,shift8,pxup45,colorff00ff;
drawnumber(barpos=sysparam(1),bot*1.02,floor(zsun1),0),align2,shift8,pxdn6,colorff0000;
drawnumber(barpos=sysparam(1),bot*1.02,stop,2),align1,shift10,pxup100,colorffff;
drawnumber(barpos=sysparam(1),bot*1.02,stop,2),align1,shift10,pxup45,colorff00ff;
drawnumber(barpos=sysparam(1),bot*1.02,stop,2),align1,shift10,pxdn6,colorff0000;
上一指标公式:FZ南方紫离宫(主图指标)公式下载 飞狐离宫指标 源码
下一指标公式:FZ西北白乾宫(副图指标)公式下载 飞狐FZ指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MA之X主图公式下载 飞狐MA指标 源码仅供学习研究。