好公式网用指标公式为投资注入科技力量!
您的位置:好公式网飞狐公式K线显示止损价公式 飞狐止损指标 源码

K线显示止损价公式 飞狐止损指标 源码

  • 指标公式类型:飞狐公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-07-23 21:43:26
  • 指标公式标签:止损
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:K线显示止损价公式 飞狐止损指标 源码

{k线显示止损价}
收盘:=c;
止损5:ref(h*0.95,1),linethick,color3399ff;
止损10:ref(h*0.90,1),linethick,color3399ff;
止赢:ref(close*1.10,1),linethick,color3399ff;
{用最高价计算,上面分别为5% 10%的止损,最后收盘价计算10%为止赢。可以附加在任意一条公式中。}
{随光标动}
drawtext(sysparam(1)=barpos ,止赢,'--涨停'),coloryellow;
drawtext(sysparam(1)=barpos ,止损5,'--止损5%'),colormagenta;
drawtext(sysparam(1)=barpos ,止损10,'--止损10%'),colormagenta;
drawtext(sysparam(1)=barpos ,收盘价,'-----收盘价'),color3399ff;
a1:=ref(high,3)=hhv(high,2*3+1);
b1:=filter(a1,3);
c1:=backset(b1,3+1);
d1:=filter(c1,3);
a2:=ref(low,3)=llv(low,2*3+1);
b2:=filter(a2,3);
c2:=backset(b2,3+1);
d2:=filter(c2,3);
e1:=(ref(llv(low,2*3),1)+ref(hhv(high,2*3),1))/2;
e2:=(high+low)/2;
h1:=d1 and not(d2 and e1>=e2) or barstatus=2 or barscount(close)=1;
h2:=d1 and not(d2 and e1>=e2);
l1:=d2 and not(d1 and e1=e2);
x1:=ref(barslast(h1),1)+1;
f1:=backset(h1 and count(l1,x1)>0,llvbars(if(l1,low,10000),x1));
g1:=f1>ref(f1,1);
i1:=backset(g1,2);
ld:=i1>ref(i1,1);
l2:=ld or barstatus=2 or barscount(close)=1;
x2:=ref(barslast(l2),1)+1;
f2:=backset(l2 and count(h2,x2)>0,hhvbars(if(h2,high,0),x2));
g2:=f2>ref(f2,1);
i2:=backset(g2,2);
hd:=i2>ref(i2,1);
j1:=backset(barstatus=2,min(barslast(hd),barslast(ld))+1);
j2:=j1>ref(j1,1);
a3:=high;
b3:=ref(high,ref(barslast(hd),1)+1)>ref(high,ref(barslast(hd),1)+2+ref(barslast(hd),ref(barslast(hd),1)+2));
d3:=a3 and b3 and hd;
e3:=backset(d3,ref(barslast(hd),1)+2);
hh:=e3>ref(e3,1);
a4:=low>ref(low,ref(barslast(ld),1)+1);
b4:=ref(low,ref(barslast(ld),1)+1);
d4:=a4 and b4 and ld;
e4:=backset(d4,ref(barslast(ld),1)+2);
ll:=e4>ref(e4,1);
drawicon(hh,high,5),align1;
drawicon(ll,low,4),align1;
h3:=hh or barstatus=2 or barscount(close)=1;
x3:=ref(barslast(h3),1)+1;
f3:=backset(h3 and count(ll,x3)>0,llvbars(if(ll,low,pow(10,20)),x3));
g3:=f3>ref(f3,1);
i3:=backset(g3,2);
lz:=i3>ref(i3,1);
l4:=lz or barstatus=2 or barscount(close)=1;
x4:=ref(barslast(l4),1)+1;
f4:=backset(l4 and count(hh,x4)>0,hhvbars(if(hh,high,-pow(10,20)),x4));
g4:=f4>ref(f4,1);
i4:=backset(g4,2);
hz:=i4>ref(i4,1);
k1:=backset(barstatus=2,min(barslast(hz),barslast(lz))+1);
k2:=k1>ref(k1,1);
uu:=backset(barstatus=2,barslast(ld)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld),1)+2);
xx:=ww>ref(ww,1);
drawline(xx,low,vv,low,1),linethick2,colorff00ff;
uu2:=backset(barstatus=2,barslast(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd),1)+2);
xx2:=ww2>ref(ww2,1);
drawline(xx2,high,vv2,high,1),linethick2,colorff00ff;
前一低:ref(low,barslast(vv)),pointdot,linethick1,color99ff66;
前二低:ref(low,barslast(xx)),pointdot,linethick1,colorff66ff;
前一高:ref(high,barslast(vv2)),pointdot,linethick1,color99ff66;
前二高:ref(high,barslast(xx2)),pointdot,linethick1,colorff66ff;
{-------------------板块时间-----------------}
variable:
wday[7]:='星期六';
wday[1]:='星期日';
wday[2]:='星期一';
wday[3]:='星期二';
wday[4]:='星期三';
wday[5]:='星期四';
wday[6]:='星期五';
fy:=year;
fm:=month;
fd:=day;
lfy:=lyear;
lfm:=lmonth;
lfd:=lday;
wd:=weekday;
p:=sysparam(1);
str1:='今天是:'+numtostr(fy[p],0)+'年'+numtostr(fm[p],0)+'月'+numtostr(fd[p],0)+'日(农历:'+numtostr(lfy[p],0)+'年'+numtostr(lfm[p],0)+'月'+numtostr(lfd[p],0)+'日) '+wday[wd[p]+1]+'';
drawtext((sysparam(2)=barpos),high,str1),pxup40,align5,colorred;
drawtext((sysparam(2)=barpos),close,'版块:'+ blkname+'\n'+' '),align5,coloryellow;

ks:=((close-ma(close,17))/(ma(close,17)))*((-100));
rks:=ref(ks,1);
mls:=((rks)/(ks)>=1.23) and (rks>=8) and ((close)/(ref(close,1))>=1.02);
反弹:stickline((mls=1),(low)*(0.95),(low)*(0.98),6,1),linethick2,colorff00ff; var2:=(3*close+low+open+high)/6;
var3:=(20*var2+19*ref(var2,1)+18*ref(var2,2)+17*ref(var2,3)+16*ref(var2,4)+15*ref(var2,5)+14*ref(var2,6)+13*ref(var2,7)+
12*ref(var2,8)+11*ref(var2,9)+10*ref(var2,10)+9*ref(var2,11)+8*ref(var2,12)+7*ref(var2,13)+6*ref(var2,14)+5*ref(var2,15)
+4*ref(var2,16)+3*ref(var2,17)+2*ref(var2,18)+ref(var2,20))/210;
var4:=ma(var3,13);
var5:=ema(ma(close,3),34);
var6:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
var7:=ma(var6,5);
var8:=ma(var6,10);
{stickline(if(var3<var5,var3<=1.015*var4,var3<=1.005*var4),var3,var4,10,1),color006600 ;
stickline(var3>1.005*var4,var3,var4,10,1),colorff00ff{003366};
drawtext(filter(ma(var6,10)<var7,1),var8,'↑'),colorred;
drawtext(filter(ma(var6,10)>=var6,1),var8,'↓'),color00ff00;}
『多空安全线』: var5,circledot,colorwhite;
〖关注点〗: stickline(count(var3>1.005*var4 and var3<=ref(var3,1),2)=2 or
count(if(var3<var5,var3<=1.015*var4,var3<=1.005*var4) and var3>=ref(var3,1),2)=2,var3,var4,10,0),coloryellow;
stickline(c>=o,c,o,7,0),colorred;
stickline(c>=o,c,o,4,0),color7070ff{b0b0ff};
stickline(c>=o,c,o,2,0),coloryellow;
stickline(c>=o,h,l,0,0),coloryellow;
stickline(c<=o,c,o,7,0),colorff2020;
stickline(c<=o,c,o,4,0),colorff6600;
stickline(c<=o,c,o,2,0),{colorcyan;}colorffcc66;
stickline(c<=o,h,l,0,0),{colorcyan}colorffcc66;
drawtext(ref(cross(var3,var4),2) and var3>1.005*var4,var4,'★买入点'),colorwhite;
drawtext(cross(var6,var7) and var7<var8,var3*0.95,'▲多空争夺'),coloryellow;
drawtext(cross(var7,var6) and var7>var8,var3*1.05,'▼洗盘'),colorwhite;
var9:=1/winner(close);
vara:=ma(close,13);
varb:=100-abs((close-vara)/vara*100);
varc:=llv(low,75);
vard:=hhv(high,75);
vare:=(vard-varc)/100;
varf:=sma((close-varc)/vare,20,1);
var10:=sma((open-varc)/vare,20,1);
var11:=3*varf-2*sma(varf,15,1);
var12:=3*var10-2*sma(var10,15,1);
var13:=100-var12;
var14:=100-var11;
var15:=ma(winner(close*0.95)*100,3);
var16:=100-if(var9>5,if(var9<100,var9,varb-10),0);
var17:=var15>varb;
var18:=ref(low,1)*0.9;
var19:=low*0.9;
var1a:=(var19*vol+var18*(capital-vol))/capital;
var1b:=ema(var1a,30);
var1c:=close-ref(close,1);
var1d:=max(var1c,0);
var1e:=abs(var1c);
var1f:=sma(var1d,7,1)/sma(var1e,7,1)*100;
var20:=sma(var1d,13,1)/sma(var1e,13,1)*100;
var21:=barscount(close);
var22:=sma(max(var1c,0),6,1)/sma(abs(var1c),6,1)*100;
var23:=(-200)*(hhv(high,60)-close)/(hhv(high,60)-llv(low,60))+100;
var24:=(close-llv(low,15))/(hhv(high,15)-llv(low,15))*100;
var25:=sma((sma(var24,4,1)-50)*2,3,1);
var26:=(indexc-llv(indexl,14))/(hhv(indexh,14)-llv(indexl,14))*100;
var27:=sma(var26,4,1);
var28:=sma(var27,3,1);
var29:=(hhv(high,30)-close)/close*100;
var2a:=var22<=25 and var23<-95 and var29>20 and var25<-30 and var28<30 and var1b-close>=-0.25 and var1f<22 and var20<28
and var21>50;
drawtext(cross(var2a,0.5) and count(var2a=1,10)=1,var4,'♂发射资金(超短线操作)'),colorred;
drawtext(cross(var17,0.5) and count(var17=1,10)=1,var3,'激烈交锋'),colorwhite;
var326:=if(close>ref(close, 1),88,0);
var327:=if(close/ref(close, 1)>1.050 and high/close<1.010 and var326>0, 91, 0);
stickline(var327>90,l*0.99,l*0.95,4,0),coloryellow;
drawtext(var327>90,low*0.95,'追涨'),coloryellow;

{var3:=(close-llv(close,124))/(hhv(close,124)-llv(close,124))*100;
var4:=llv(high,240);
var5:=100*(close-var4)/var4;
var6:=ref(llv(close,480),1);
var7:=ref(hhv(close,480),1);
var8:=100*(close-var6)/(var7-var6);
var9:=var5<=0 and var8<=0 and var3=0;
vara:=abs((close-llv(low,265))/llv(low,265))*100;
varb:=vara=0 or vara<0.5 or cross(vara,0.002);
varc:=ma((barslast(low=llv(low,13)))*(if(close>open,vol,1)),3);
vard:=varc=0 or varc<0.38 or cross(varc,0.333);
vare:=ma((barslast(high=hhv(high,13)))*(if(close>open,vol,1)),3);
varf:=hhvbars(high,13)*0.622 and "cci"<-195;
var10:=ref("cci"(10),1)>-180;
var11:=cross("kdj.j"(9,3,3),0);
var12:=var11<15;
var13:="rsi.rsi1"(6,12,24);
var14:=var13<13;
var15:=llv(high,240);
var16:=100*(close-var15)/var15;
var17:=var16<-0.15 or var16<0;
var18:=var3=0;
var19:=ref(close,1);
var1a:=(sma(max(close-var19,0),6,1))/(sma(abs(close-var19),6,1))*100;
var1b:=if(var1a<19,6,0);
var1c:=(close-llv(low,87))/(hhv(high,87)-llv(low,87))*100;
var1d:=var1c=0;
var1e:=(hhv(high,9)-close)/(hhv(high,9)-llv(low,9))*100;
var1f:=sma(var1e,3,1);
var20:=sma(var1f,3,1);
var21:=var1f>91 and var20>88;
var22:=ref(close,1);
var23:=(sma(max(close-var22,0),6,1))/(sma(abs(close-var22),6,1))*100;
var24:=(sma(max(close-var22,0),14,1))/(sma(abs(close-var22),14,1))*100;
var25:=(sma(max(close-var22,0),22,1))/(sma(abs(close-var22),22,1))*100;
var26:=ma(close,26);
var27:=var26+2.489*std(close,26);
var28:=var26-2.489*std(close,2);
var29:=(close<var28+0.05 and var23<10 and var24<16 and var25<24 and var21)*30;
var2a:=varb and var17 and var18 and var1b and var1d*50;
var2b:=var29 and var2a*80;
var31:=(2*close+high+4*low)/7;
var32:=ema(var31,3)*0.85;
var33:=ema(100*(close-llv(low,100))/(hhv(high,100)-llv(low,100)),18)/4;
var34:=if(var33>23.16,var33,0);
var35:=var33<10;
var36:=var33<2;
var37:=var35 or var6;}
长期趋势:zig(3,19),color808080;
短期趋势:zig(3,6.5),colorffff;
年线:ema(close,250),linethick0,colorffffff;
半年线:ema(close,120),linethick0,color80;
ma9:ema(close,9),linethick0,colorff0000;
ma11:ema(close,11),linethick0,colorff00;
ma13:ema(close,13),colorffff00;
ma16:ema(close,16),linethick0,colorffffff;
ma72:ema(close,72),linethick0,colorff;
分界线:ma(close,20),linethick0,color408000;
{var38:=cross(ma9,ma11);
var39:=ma9>ma72;
vara1:=ema(100*(close-llv(low,100))/(hhv(high,100)-llv(low,100)),7);
varb1:=(var9 and varb and vard and varf and var12 and var10 and var14)*100;
varc1:=varb>0;
drawtext(cross(zig(3,14),ref(zig(3,14),1)),low*1.001,'●见底'),colorffff;
drawtext(varc1,close+0.011,'●地雷'),colorffffff;
drawtext(cross(ref(zig(3,13),1),zig(3,13)),high*1,'★'),colorff;
var1:=(open+low+high+close)/4;
stickline(1,var1,var1,6,0),colorff00ff;}
{拐点:=ma(close,3);
拐点1:=ma(close,3);
gd1:=ref((count(拐点<=ref(拐点,1),5))=5,1) and 拐点>ref(拐点,1);
gd2:=ref((count(拐点1<=ref(拐点1,1),5))=5,1) and 拐点1>ref(拐点1,1);
drawicon(gd1,0.98*close,1);
drawicon(gd2,0.98*close,8);
var31:=hhvbars(zig(3,19)>ref(zig(3,19),1) and ref(zig(3,19),1)<ref(zig(3,19),2),0);
转折时间:var31+1,pointdot,linethick0,colorff00ff;
时间窗:=0;
stickline(var31=2,low*0.95,low*0.98,8,0),colorff;
drawtext(var31=2,low*0.95,'3天'),colorffff;
stickline(var31=4,high*1.05,high*1.02,8,0),color9966ff;
drawtext(var31=4,high*1.06,'5天'),colorffff;
stickline(var31=7,low*0.95,low*0.98,8,0),colorffff;
drawtext(var31=7,low*0.95,'8天'),colorffff;
stickline(var31=12,high*1.05,high*1.02,8,0),colorff33ff;
drawtext(var31=12,high*1.06,'13天'),colorffff;
stickline(var31=20,low*0.95,low*0.98,8,0),color66ff;
drawtext(var31=20,low*0.95,'21天'),colorffff;
stickline(var31=33,high*1.05,high*1.02,8,0),colorffff00;
drawtext(var31=33,high*1.06,'34天'),colorffff;
stickline(var31=54,low*0.95,low*0.98,8,0),color6600;
drawtext(var31=54,low*0.95,'55天'),colorffff;
stickline(var31=88,high*1.05,high*1.02,8,0),colorff00;
drawtext(var31=88,high*1.06,'89天'),colorffff;
stickline(var31=143,low*0.95,low*0.98,8,0),colorccffff;
drawtext(var31=143,low*0.95,'144天'),colorffff;
stickline(var31=232,high*1.05,high*1.02,8,0),colorff0033;
drawtext(var31=232,high*1.06,'233天'),colorffff;
stickline(var31=376,low*0.95,low*0.98,8,0),colorff9966;
drawtext(var31=376,low*0.95,'377天'),colorffff;
x1:=(close+low+high)/3;
x2:=ema(x1,6);
x3:=ema(x2,5);
gr1:=barslast(between("bias.bias2"(6,13,24),0,5));
gr2:=ema(x1,13)>ema(x1,21) and ema(x1,21)>ema(x1,34) and ema(x1,13)>ref(ema(x1,13),1);
gr3:=count("bias.bias2"(6,13,24)>10 and high=hhv(high,gr1),gr1);
gr4:=high=hhv(high,gr1);
gr5:="macd.macd"(12,26,9)<ref("macd.macd"(12,26,9),1);
gr6:=gr2 and gr3 and gr4;
gr7:=gr2 and gr3 and gr4 and gr5;
gr8:=gr6 and gr7;
lc:=ref(close,1);
rsi6:=(sma(max(close-lc,0),6,1))/(sma(abs(close-lc),6,1))*100;
bias5:=(close-ma(close,13))/ma(close,13)*100;
换手:=100*vol/capital;
bb13:=(atan(ema(x1,13)-ref(ema(x1,13),1)))*3.1416*10;
ema8:=ema(close,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),ema8,'∠45上升'),colorffffff;
a1:=barslast(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
b1:=ref(close,a1+1)>close and ref("macd.diff"(12,26,9),a1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));
drawtext(filter(b1>0,5),low-0.01,'m 底背'),colorff00;
a2:=barslast(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
b2:=ref(close,a2+1)>close and ref("kdj.k"(9,3,3),a2+1)<"kdj.k"(9,3,3) and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
drawtext(filter(b2>0,5),low-0.25,'k 底背'),colorffff;
a3:=barslast(ref(cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24)),1));
b3:=ref(close,a3+1)>close and ref("rsi.rsi1"(6,12,24),a3+1)<"rsi.rsi1"(6,12,24) and cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
drawtext(filter(b3>0,5),low-0.4,'r 底背'),colorffff00;
c1:=barslast(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
d1:=ref(close,c1+1)<close and ref("macd.diff"(12,26,9),c1+1)>"macd.diff"(12,26,9) and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9));
drawtext(filter(d1>0,5),high+0.01,'m 顶背'),colorff;
c2:=barslast(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
d2:=ref(close,c2+1)<close and ref("kdj.k"(9,3,3),c2+1)>"kdj.k"(9,3,3) and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
drawtext(filter(d2>0,5),high+0.25,'k 顶背'),color66ff;
c3:=barslast(ref(cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24)),1));
d3:=ref(close,c3+1)<close and ref("rsi.rsi1"(6,12,24),c3+1)>"rsi.rsi1"(6,12,24) and cross("rsi.rsi2"(6,12,24),"rsi.rsi1"(6,12,24));
drawtext(filter(d3>0,5),high+0.4,'r 顶背'),colorff00ff;
e1:=barscount(close);
ah:=hhv(high,200);
al:=llv(low,200);
b0:=(ah-al)/40;
kb1:=high+b0;
kb2:=low-b0;
stickline((e1+0)/34=floor((e1+0)/34),kb2,kb2-3*b0,2,0),linethick3,colorffffff;
drawtext((e1+0)/34=floor((e1+0)/34),kb2-2*b0,'时间窗'),colorffffff;
a:=barscount(close);
ah:=hhv(high,200);
al:=llv(low,200);
b0:=(ah-al)/40;
qs:=zig(3,19);
ss:=hhvbars(ref(qs,1)<ref(qs,2),0);
explain(ss=1 or cross(zig(3,19),ref(zig(3,19),1)),'操作时段分析:操作盲区'),colorffff;
explain(ss>=2 and ss<20 and ref(qs,1)<qs,'操作时段分析:短线投机'),colorff;
explain(ss>=20 and ss<88 and ref(qs,1)<qs,'操作时段分析:中线波段'),colorff33ff;
explain(ss>=88 and ref(qs,1)<qs,'操作时段分析:长线投资'),color66ff;
xd:=hhvbars(qs>ref(qs,1),0);
explain(xd=2 or xd=1,'操作时段分析:操作盲区'),colorffff;
explain(xd>=3 and xd<21 and ref(qs,1)>qs,'操作时段分析:短期回调'),colorffff;
explain(xd>=21 and xd<89 and ref(qs,1)>qs,'操作时段分析:中期杀跌'),colorffff00;
explain(xd>=89 and ref(qs,1)>qs,'操作时段分析:长期盘跌'),colorff00;
tc:=if(cross(ref(zig(3,19),1),zig(3,19)),1,0);
explain(cross(zig(3,19),ref(zig(3,19),1)),'价格拐点分析:相对底部'),colorffff;
explainex(ss>0 and tc<>1 and ss<>2 and ss<>4 and ss<>7 and ss<>12 and ss<>20 and ss<>33 and ss<>54 and ss<>88 and ss<>143 and ss<>232,'时间拐点分析:上涨天数 ',ss+1,0,0),colorccffff;
explainex(ss=2,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff;
explainex(ss=4,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff00;
explainex(ss=7,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff;
explainex(ss=12,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff00;
explainex(ss=20,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff;
explainex(ss=33,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff00;
explainex(ss=54,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff;
explainex(ss=88,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff00;
explainex(ss=143,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff;
explainex(ss=232,'时间拐点分析:时间之窗 ',ss+1,0,0),colorff00;
explain(cross(ref(zig(3,19),1),zig(3,19)),'价格拐点分析:相对顶部'),colorffff;
explainex(xd>0 and tc<>1 and xd<>3 and xd<>5 and xd<>8 and xd<>13 and xd<>21 and xd<>34 and xd<>55 and xd<>89 and xd<>144 and xd<>233,'时间拐点分析:下跌天数 ',xd,0,0),colorccffff;
explainex(xd=3,'时间拐点分析:时间之窗 ',xd,0,0),colorff;
explainex(xd=5,'时间拐点分析:时间之窗 ',xd,0,0),colorff00;
explainex(xd=8,'时间拐点分析:时间之窗 ',xd,0,0),colorff;
explainex(xd=13,'时间拐点分析:时间之窗 ',xd,0,0),colorff00;
explainex(xd=21,'时间拐点分析:时间之窗 ',xd,0,0),colorff;
explainex(xd=34,'时间拐点分析:时间之窗 ',xd,0,0),colorff00;
explainex(xd=55,'时间拐点分析:时间之窗 ',xd,0,0),colorff;
explainex(xd=89,'时间拐点分析:时间之窗 ',xd,0,0),colorff00;
explainex(xd=144,'时间拐点分析:时间之窗 ',xd,0,0),colorff;
explainex(xd=233,'时间拐点分析:时间之窗 ',xd,0,0),colorff00;}
zslife:=(ema(indexc,60)+ema(indexc,90))/2;
zsbl:=indexc/zslife;
gglife:=(ema(close,60)+ema(close,90))/2;
zstb:=zsbl*gglife;
explainex(zstb<close,'强于大盘系数%:',(close-zstb)/zstb*100,2,0),colorff;
explainex(zstb>=close,'弱于大盘系数%:',(abs(close-zstb))/zstb*100,2,0),colorffff00;
explainex(close>0,'主力成本:',sum(amount,13)/sum(vol,13)/100,2,0),colorffff00;
explain(vol=hhv(vol,0),'量能统计:历史天量'),colorff00ff;
zy:=(ref(high,1)-ref(low,1))*8/10+close;
explainex(close>0,'明日止赢:',zy,2,0),colorff;
zs:=close-(ref(high,1)-ref(low,1))*8/20;
explainex(close>0,'明日止损:',zs,2,0),colorff00;
现价:close,pointdot,linethick2,colorffffff;
现量:vol,linethick0,colorff00;
var1:=backset(ref(high,2)=hhv(high,5),3);
var2:=cross(var1,0.9);
var3:=backset(ref(low,2)=llv(low,5),3);
var4:=cross(var3,0.9);
stickline(var2,high,high*1.01,5,0),colore40e;
stickline(var4,low,low*0.99,5,0),colore40e;
var5:=if(var2,high,if(var4,low,0));
polyline(var5,var5),linethick0,colorffffff;
var6:=backset(ref(high,2)=hhv(high,5) and low<ref(low,1) and high<ref(high,1),3);
var7:=backset(ref(high,2)=hhv(high,5) and low>ref(low,1) and high>ref(high,1),3);
var8:=backset(ref(high,2)=hhv(high,5) and high<ref(high,1) and low>ref(low,1) and ref(low,1)>ref(low,2) and ref(high,1)<ref(high,2),3);
var9:=backset(ref(low,2)=llv(low,5) and low>ref(low,1) and high>ref(high,1),3);
vara:=backset(ref(low,2)=llv(low,5) and low<ref(low,1) and high<ref(high,1),3);
varb:=backset(ref(low,2)=llv(low,5) and high<ref(high,1) and low>ref(low,1) and ref(low,1)>ref(low,2) and ref(high,1)<ref(high,2),3);
坚定:stickline(cross(var6,0.9),high,high*1.01,5,0),linethick0,colorff;
stickline(cross(var9,0.9),low,low*0.99,5,0),linethick0,colorff;
犹豫:stickline(cross(var7,0.9),high,high*1.01,5,0),colore5e9;
stickline(cross(vara,0.9),low,low*0.99,5,0),linethick0,colore5e9;
等待:stickline(cross(var8,0.9),high,high*1.01,5,0),colorff4100;
stickline(cross(varb,0.9),low,low*0.99,5,0),linethick0,colorff4100;
压力:ref(high,barslast(var2)),pointdot,colorea91b5;
stickline(close,ref(high,barslast(var2)),ref(high,barslast(var2)),5,0),linethick0,colorff00;
支撑:ref(low,barslast(var4)),pointdot,color3791b5;
stickline(close,ref(low,barslast(var4)),ref(low,barslast(var4)),5,0),linethick0,colorffff;
drawtext(var2,high+0.0818,'压力');
drawtext(var4,low-0.0818,'支撑');


k线显示止损价

  >>>使用本站搜索工具可以找到更多K线显示止损价公式 飞狐止损指标 源码

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文K线显示止损价公式 飞狐止损指标 源码仅供学习研究。

猜你喜欢

学了又学