期貨秘笈■黃金程式■當沖1乒■
drawgbk(close>0,colorrgb(3,353,888),colorrgb(3,353,888),3);
tm:=if(hour=13 and minute=45,close,0);
vertline(tm),linedot,colorffffff;
昨日收盤:ref(close,barslast(tm)),linethick0,colorffff;
h1:=if(ref(tm,1),high,0);
今日開高:ref(h1,barslast(h1)),pointdot,colorff;
h2:=ref(ref(h1,barslast(h1)),1);
l1:=if(ref(tm,1),low,0);
今日開低:ref(l1,barslast(l1)),pointdot,colorff00;
l2:=ref(ref(l1,barslast(l1)),1);
隱藏01主線:ema(ema(close,3),6),linethick0,color10000;
隱藏02主線:ema(ema(close,3),6),linethick0,color10000;
隱藏03主線:ema(ema(close,3),6),linethick0,color10000;
隱藏04主線:ema(ema(close,3),6),linethick0,color10000;
隱藏05主線:ema(ema(close,3),6),linethick0,color10000;
隱藏06主線:ema(ema(close,3),6),linethick0,color10000;
空a值線:ma(high+3.2,7),linethick0;
多b值線:ma(low,3),linethick0;
hl值:=llv(空a值線+2.5,3);
ll值:=llv(多b值線-2.5,2);
ch值:=cross(close,hl值);
cl值:=-cross(ll值,close);
tf值:=if(ch值,ch值,if(cross(ll值,close),cl值,0));
ud值:=ref(tf值,barslast(tf值));
多空線:=if(ud值>0,ll值,hl值);
partline(1,多空線),linethick1,colorffffff;
partline(ud值=1 and ref(ud值,1)=1,ll值),linethick1,colorffffff;
partline(ud值=-1 and ref(ud值,1)=-1,hl值),linethick1,colorffffff;
多空:=(20*多空線+19*ref(多空線,1)+18*ref(多空線,2)+17*ref(多空線,3)+16*ref(多空線,4)+15*ref(多空線,5)+14*ref(多空線,6)+13*ref(多空線,7)+12*ref(多空線,8)+11*ref(多空線,9)+10*ref(多空線,10)+9*ref(多空線,11)+8*ref(多空線,12)+7*ref(多空線,13)+6*ref(多空線,14)+5*ref(多空線,15)+4*ref(多空線,16)+3*ref(多空線,17)+2*ref(多空線,18)+ref(多空線,20))/210;
多空棒線:多空,linethick8,colorffffff;
stickline(if(多空<多空線,多空<=1.015*多空線,多空<=1.00001*多空線),多空,多空線,8,1),linethick5,colorff;
stickline(多空>1.00002*多空線,多空,多空線,8,1),linethick5,colorff00;
黃金k棒:zig(close,0.6),linethick0,colorffffff;
stickline(isup and 黃金k棒>=ref(黃金k棒,1),high,low,0,0),color10000;
stickline(isup and 黃金k棒>=ref(黃金k棒,1),close,open,7,0),color10000;
stickline(isdown and 黃金k棒>=ref(黃金k棒,1),high,low,0,1),color10000;
stickline(isdown and 黃金k棒>=ref(黃金k棒,1),close,open,7,1),color10000;
stickline(isup and 黃金k棒<ref(黃金k棒,1),high,low,0,1),color10000;
stickline(isup and 黃金k棒<ref(黃金k棒,1),close,open,7,1),color10000;
stickline(isdown and 黃金k棒<ref(黃金k棒,1),high,low,0,0),color10000;
stickline(isdown and 黃金k棒<ref(黃金k棒,1),close,open,7,0),color10000;
stickline(isequal and 黃金k棒>=ref(黃金k棒,1),high,low,0,1),color10000;
stickline(isequal and 黃金k棒>=ref(黃金k棒,1),close,open,7,1),color10000;
stickline(isequal and 黃金k棒<ref(黃金k棒,1),high,low,0,1),color10000;
stickline(isequal and 黃金k棒<ref(黃金k棒,1),close,open,7,1),color10000;
aa:=ref(high,0.5)=hhv(high,1*30*0.5+1);
aaa:=filter(aa,0.5);
bb:=backset(aaa,0.5+1);
cc1:=filter(bb,0.5);
cc:=cc1 or islastbar;
aa2:=ref(low,0.5)=llv(low,3*30*0.5+1);
aaa2:=filter(aa2,0.5);
bb2:=backset(aaa2,0.5+1);
cc22:=filter(bb2,0.5);
cc2:=cc22 and not(cc1);
ea:=backset(cc,ref(barslast(cc2),1)+1);
eb:=ea>ref(ea,1);
ee:=backset(eb,2);
ff1:=ee>ref(ee,1);
ee2:=backset(ff1 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);
ff2:=ee2>ref(ee2,1);
ee3:=backset(ff2 and count(cc,ref(barslast(cc2),1)+2)=0,ref(barslast(cc2),1)+2);
ff3:=ee3>ref(ee3,1);
js:=if(cc,count(cc2,ref(barslast(cc),1)+1),0);
g1:=if(js=1 and cc,barslast(ff1),0);
ga:=if(cc and ref(low,barslast(ff1))>=ref(low,barslast(ff2)),barslast(ff2),barslast(ff1));
g2:=if(js=2 and cc,ga,0);
g3:=if(js>=3 and cc,if(cc and ref(low,ga)>=ref(low,barslast(ff3)),barslast(ff3),ga),0);
gg:=g1+g2+g3;
ja:=backset(cc,gg);
jb:=ja>ref(ja,1);
jj:=backset(jb,2);
ld低多:=jj>ref(jj,1);
ld1:=ld低多 or islastbar;
hea:=backset(ld1,ref(barslast(cc),1)+1);
heb:=hea>ref(hea,1);
hee:=backset(heb,2);
hff1:=hee>ref(hee,1);
hee2:=backset(hff1 and count(ld1,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);
hff2:=hee2>ref(hee2,1);
hee3:=backset(hff2 and count(ld1,ref(barslast(cc),1)+2)=0,ref(barslast(cc),1)+2);
hff3:=hee3>ref(hee3,1);
hjs:=if(ld1,count(cc1,ref(barslast(ld1),1)+1),0);
hg1:=if(hjs=1 and ld1,barslast(hff1),0);
hga:=if(ld1 and ref(high,barslast(hff1))<=ref(high,barslast(hff2)),barslast(hff2),barslast(hff1));
hg2:=if(hjs=2 and ld1,hga,0);
hg3:=if(hjs>=3 and ld1,if(ld1 and ref(high,hga)<=ref(high,barslast(hff3)),barslast(hff3),hga),0);
hgg:=hg1+hg2+hg3;
hja:=backset(ld1,hgg);
hjb:=hja>ref(hja,1);
hjj:=backset(hjb,2);
hd高空:=hjj>ref(hjj,1);
hd高空點:=if(ref(hd高空,0)=1,1,0);
ld低多點:=if(ref(ld低多,0)=1,1,0);
x1:=backset(islastbar,barslast(ld低多點)+1);
x2:=x1>ref(x1,1);
y1:=backset(islastbar,barslast(hd高空點)+1);
y2:=y1>ref(y1,1);
z1:=if(barslast(x2)<barslast(y2),x2,y2);
z2:=if(barslast(x2)<barslast(y2),low,high);
drawline(z1,z2,islastbar,close,0),colorff00ff;
hd高空劃:=if(ref(hd高空,0)=1,1,0);
ld低多劃:=if(ref(ld低多,0)=1,1,0);
uu:=backset(islastbar,barslast(ld低多劃)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld低多劃),1)+2);
xx:=ww>ref(ww,1);
uu2:=backset(islastbar,barslast(hd高空劃)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd高空劃),1)+2);
xx2:=ww2>ref(ww2,1);
前1高:ref(high,barslast(vv2)),linedash,linethick2,colorff00;
前1低:ref(low,barslast(vv)),linedash,linethick2,colorff;
drawnumber(islastbar,前1高,前1高,0),shift4,colorff00;
drawnumber(islastbar,前1低,前1低,0),shift4,colorff;
drawtext(hd高空點,high,'一[a1策]▼空'),pxup45,colorff00;
drawtext(ld低多點,low,'一[a1策]▲多'),pxdn15,colorff;
drawicon(hd高空點,high,2),pxup38;
drawicon(ld低多點,low,1),pxdn7;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文期貨秘笈■黃金程式■當沖1乒■期货公式下载 飞狐秘笈公式指标 源码仅供学习研究。