0.小天趋势至上
(小天旗舰)
sj:=date<=1091231;
var1:=splitdata(1)+splitdata(2);
cap:=close;
cap[datacount]:=1;
for i=datacount downto 2 do begin
cap[i-1]:=cap[i]/(1+var1[i]/10);
i:=i-1;
end;
capi:=cap*capital/100;
hs:=vol/capi;
成本:="xt1@cycmax";
成本1:=dma(amount/vol/100,0.8*hs/100);
fillrgn(成本<成本1 and close<100,成本,成本1),colorcc6666;
fillrgn(成本>=成本1 and close<100,成本,成本1),color5022dd;
aa:=ref(high,n)=hhv(high,2*n+1);
aaa:=filter(aa,n);
bb:=backset(aaa,n+1);
cc1:=filter(bb,n);
cc:=cc1 or islastbar;
aa2:=ref(low,n)=llv(low,2*n+1);
aaa2:=filter(aa2,n);
bb2:=backset(aaa2,n+1);
cc22:=filter(bb2,n);
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);
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);
uu:=backset(islastbar,barslast(ld)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld),1)+2);
xx:=ww>ref(ww,1);
www:=backset(xx,ref(barslast(ld),1)+2);
xxx:=www>ref(www,1);
drawline(xxx,low,xx,low,0),pointdot,colorff00;
wwww:=backset(www,ref(barslast(ld),1)+2);
xxxx:=wwww>ref(wwww,1);
sc2:=(ref(low,barslast(vv))-ref(low,barslast(xx)))/(barslast(xx)-barslast(vv));
支撑1:ref(low,barslast(vv))+barslast(vv)*sc2,pointdot,linethick2,colorffff;
sc3:=(ref(low,barslast(xx))-ref(low,barslast(xxx)))/(barslast(xxx)-barslast(xx));
支撑2:ref(low,barslast(xx))+barslast(xx)*sc3,pointdot,linethick2,colorff00;
sc4:=(ref(low,barslast(xxx))-ref(low,barslast(xxxx)))/(barslast(xxxx)-barslast(xxx));
支撑3:ref(low,barslast(xxx))+barslast(xxx)*sc4,pointdot,linethick2,colorffff00;
drawline(xxxx,low,xxx,low,0),pointdot,colorffff00;
drawline(xx,low,vv,low,0),pointdot,colorffff;
ww13:=backset(ww,ref(barslast(hd),1)+2);
ww14:=backset(ww13,ref(barslast(hd),1)+2);
uu2:=backset(islastbar,barslast(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd),1)+2);
xx2:=ww2>ref(ww2,1);
ww3:=backset(ww2,ref(barslast(hd),1)+2);
xx3:=ww3>ref(ww3,1);
ww4:=backset(ww3,ref(barslast(hd),1)+2);
xx4:=ww4>ref(ww4,1);
cs2:=(ref(high,barslast(xx2))-ref(high,barslast(xx3)))/(barslast(xx3)-barslast(xx2));
压力2:ref(high,barslast(xx3))+barslast(xx3)*cs2,colorff00;
cs3:=(ref(high,barslast(vv2))-ref(high,barslast(xx2)))/(barslast(xx2)-barslast(vv2));
压力1:ref(high,barslast(vv2))+barslast(vv2)*cs3,colorff00ff;
cs4:=(ref(high,barslast(xx3))-ref(high,barslast(xx4)))/(barslast(xx4)-barslast(xx3));
压力3:ref(high,barslast(xx3))+barslast(xx3)*cs4,colorff;
drawline(xx2,high,vv2,high,0),colorff00ff;
drawline(xx3,high,xx2,high,0),colorff00;
drawline(xx4,high,xx3,high,0),color5200f1;
partline(hd and ww4,high*1.01),circledot,colorffff;
partline(hd and ww4,high*1.01),crossdot,colorff;
partline(ld and (ww14 or wwww),low*0.98),circledot,colorffff;
partline(ld and (ww14 or vv2 or vv or wwww),low*0.98),crossdot,colorff00;
scsm:=(ref(high,barslast(vv2))-ref(low,barslast(xx)))/(barslast(xx)-barslast(vv2));
趋势生命:ref(low,barslast(vv))+barslast(vv)*scsm,linethick2,colorffffff;
fsl:=(ref(high,barslast(vv2))-ref(low,barslast(vv)))/(barslast(vv2)-barslast(vv));
分水领1:=ref(low,barslast(vv))+barslast(vv)*fsl;
分水领2:=ref(high,barslast(vv2))+barslast(vv2)*fsl;
分水领:if(barslast(vv2)-barslast(vv)>0,分水领1,分水领2),linethick2,colorff0000;
drawnumber(hd and (ww14 or vv2 or vv),high*1.02,high,2),shift1,colorff00ff;
drawnumber(ld and (ww14 or vv2 or vv or wwww),low*0.975,low,2),shift1,colorffff00;
sxk:=支撑1>=支撑2 and 支撑2>=支撑3;
tp:=cross(close,压力1) or cross(close,压力2) or cross(close,压力3);
drawicon(sxk and tp and barslast(vv)>=3,close*1.01,'t03');
周k:=stkindi(stklabel,'kdj.k',0,7);
周d:=stkindi(stklabel,'kdj.d',0,7);
历史流通盘:=capi;
zf:=(high-low)*100/low;
stzf:=(close-open)*100/open;
spzf:=(close-low)*100/low;
stzfb:=stzf/zf;
spzfb:=spzf/zf;
最大震幅:=ref(hhv(zf,5),1);
最小震幅:=ref(llv(zf,5),1);
xzfb:=zf/最大震幅;
dzfb:=zf/最小震幅;
xhsb:=hs/ref(hhv(hs,4),1);
dhsb:=hs/ref(llv(hs,4),1);
dy1:=-5*stzfb>=0.48 and spzfb>0.5 and dzfb>2 and dhsb>2 and close>open;
dy2:=-5*stzfb>=0.8 and dzfb>1.5 and dhsb>1.5 and close>open;
dy3:=-5*stzfb>=0.82 and xzfb>0.9 and dzfb>1.5 and xhsb>0.9 and dhsb>1.5 and close>open;
单阳:=filter((dy1 or dy2 or dy3) and 周k>周d,3);
vv1:=单阳*low;
ts:=(barslast(单阳>0))+1>=1 and (barslast(单阳>0))<=13;
单阳高:=ref(hhv(high,barslast(单阳>0)),1);
单阳攻击:=cross(close,单阳高) and ts;
强势攻击:=if(单阳=1 and 单阳攻击=1,1,0);
单阳低点:=ref(low,barslast(vv));
单阳不破:=ts and low>=单阳低点;
时间:=if(low>=单阳低点,barslast(单阳<0),0);
单阳启稳:=cross(hs,zf) and close>open and ts;
stickline(close>=open,low,high,0.1,0),colorff;
stickline(close>=open,open,close,7,1),colorff;
stickline(close<=open,low,high,0.1,0),colorffff00;
stickline(close<=open,open,close,7,0),colorffff00;
stickline(单阳=1 and 周k<50,close,open,8,0),colorffff;
stickline(单阳=1 and 周k<50,high,low,0,0),colorffff;
stickline(单阳启稳=1,close,open,8,0),colorff00ff;
stickline(单阳启稳=1,high,low,0,0),colorff00ff;
stickline(单阳=1 and 周k>50 and 周k<80,close,open,8,0),colorffff;
stickline(单阳=1 and 周k>50 and 周k<80,high,low,0,0),colorffff;
stickline(close>=open and 单阳攻击=1,close,open,8,0),colorff;
stickline(close>=open and 单阳攻击=1,close,open,4,0),colorb0b0ff;
stickline(close>=open and 单阳攻击=1,close,open,2,0),colorffff;
stickline(close>=open and 单阳攻击=1,high,low,0,0),colorffff;
stickline(单阳=1 and 周k>=80,close,open,8,0),colorff2020;
stickline(单阳=1 and 周k>=80,close,open,4,0),colorff6600;
stickline(单阳=1 and 周k>=80,close,open,2,0),colorffff00;
stickline(单阳=1 and 周k>=80,high,low,0,0),colorffff00;
ztzd:=min(ref(close,1),min(ref(open,1),min(ref(high,1),ref(low,1))));
ztzg:=max(ref(close,1),max(ref(open,1),max(ref(high,1),ref(low,1))));
jtzd:=min(close,min(open,min(high,low)));
jtzg:=max(close,max(open,max(high,low)));
tkx:=ztzd>jtzg;
tks:=ztzg<jtzd;
stickline(tkx,ref(low,1),ref(low,1),10,0),colorff00;
stickline(tkx,high,high,10,0),colorff00;
stickline(tks,ref(high,1),ref(high,1),10,0),colorff00ff;
stickline(tks,low,low,10,0),colorff00ff;
分析家公式网提示:本指标使用未来函数
上一指标公式:神奇的八彩K线指标公式详解 飞狐神奇
下一指标公式:江恩再世2指标公式详解 飞狐江恩
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文0.小天趋势至上指标公式详解 飞狐趋势仅供学习研究。