指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:组合主图公式 飞狐组合指标 源码
组合指标主图
{n 14 2 100;m 6 1 100}
aa1:=amount/vol;
bb1:=low<aa1*0.9;
cc1:=(close-ref(close,1))/ref(close,1)*100>1.2;
dd1:=low<ma(close,5)*0.921;
ee1:=vol<ma(vol,5)*1.5;
ff1:bb1 and cc1 and dd1 and ee1,linethick0;
var6:=ref(close,1);
var7:=sma(max(close-var6,0),6,1)/sma(abs(close-var6),6,1)*100;
drawtext(cross(82,var7),high*1.02,'←走吗?'),coloryellow;
var3aa:=if((close>ref(close,1)),88,0);
var4aa:=if(((close)/(ref(close,1))>1.05) and ((high)/(close)<1.01) and (var3aa>0),91,0);
drawtext(filter((var4aa>90),45),(low)*(0.93),'←敢追吗? '),colorred;
a001:= close-ref(close,6);
a002:= ma(a001,6);
a003:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
a004:=sma(a003,3,1);
a005:=sma(a004,3,1);
a006:=ema(3*a004-2*a005,2);
a007:=(high + low + close)/3;
a008:=((a007-ma(a007,14))/(0.015*avedev(a007,14)))/2;
a009:=(a008+((ema((-100*(hhv(high,14)-close)/
(hhv(high,14)-llv(low,14))+100)/100,3)*200-100)))/2;
a010:=a009-ref(a009,14);
a011:=a009-ref(a009,26);
a012:=(a009+a010+a011)/3;
kkm:=ema(a012,4);
a013:=hhv(high,34);
a014:=(2*close+high+low)/4;
a015:=llv(low,34);
a016:=ema((a014-a015)/(a013-a015)*100,13);
a017:=ema(0.667*ref(a016,1)+0.333*a016,2);
kkmd:=a016-a017> 1 and a016<30 and a017<30;
kkml:=a016-a017< 0 and a016>80 and a017>80 and ref(a016-a017,1)>0 ;
kkmq:=count((a016-a017)>0,2)=2;
kkal:=(a016-a017)< 0;
阻力线:=ma(close,20),colorred;
操作线:=ma(close,10);
explain(kkmd,'最佳买入时机');
explain(kkml,'最佳卖出时机');
explain(kkmq,'持仓区');
explain(kkal,'空仓区');
explain(close/ref(close,1)>indexc/ref(indexc,1),'该股强于大盘');
{显示解盘文字(收盘价/向前引用(收盘价,1),'该股强于大盘'); }
explain(cross(ma(close,5),ma(close,10)),'出出手');
explain(cross(ma(close,10),ma(close,5)),'收手了');
explain((kkm > ema(kkm,4) and kkm > ref(kkm,1)),'考虑介入!');
explain((kkm > ema(kkm,4) and kkm < ref(kkm,1)),'多看少动~');
explain((kkm < ema(kkm,4) and kkm > ref(kkm,1)),'防御能力');
explain((kkm < ema(kkm,4) and kkm < ref(kkm,1)),'危险快跑!');
var51:=3;
var52:=(3)*(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1)) - (2)*(sma(sma(((close - llv(low,27))/(hhv(high,27) - llv(low,27)))*(100),5,1),3,1));
drawtext(cross(var52,var51), low,'←启动')colormagenta;
a0:=(low+high+close*2)/4;
aa:=ema(a0,14)coloryellow,linethick1;
bb:=ema(a0,25)coloryellow,linethick2;
a1x:=(aa-ref(aa,1))/ref(aa,1)*100;
a2x:=(bb-ref(bb,1))/ref(bb,1)*100;
g:=barslast(cross(a1x,0));
必卖止损:ref(a0,g),colorcyan,linethick1;
a5:=ema(close,12)-ema(close,26);
a6:=ema(a5,9);
a7:=(a5<-0.1 and a5>a6);
diff:=( ema(close,7) - ema(close,19));
dea:=ema(diff,9);
macd:=0.90*(diff-dea);
tj:=(diff>=dea);
tj1:=(diff>=0);
stickline(tj,high,low,0.4,0),coloryellow;
stickline(tj,open,close,4,1),color0088ff;
stickline(tj,open,close,3.4,1),color00aaff;
stickline(tj,open,close,2.8,1),color00ccff;
stickline(tj,open,close,2,1),color00ddff;
stickline(tj,open,close,1.2,1),color55ffff;
stickline(tj,open,close,0.4,1),color99ffff;
stickline(tj1 and tj,high,low,0.4,0),colorf00ff0;
stickline(tj1 and tj,open,close,4,1),colorff33ff;
stickline(tj1 and tj,open,close,3.4,1),colorff55ff;
stickline(tj1 and tj,open,close,2.8,1),colorff77ff;
stickline(tj1 and tj,open,close,2,1),colorff99ff;
stickline(tj1 and tj,open,close,1.2,1),colorffbbff;
stickline(tj1 and tj,open,close,0.4,1),colorffddff;
stickline(diff<dea,high,low,0.4,0),colorf0f000;
stickline(diff<dea,open,close,4,1),colorff3300;
stickline(diff<dea,open,close,3.4,1),colorff6600;
stickline(diff<dea,open,close,2.8,1),colorff9900;
stickline(diff<dea,open,close,2,1),colorffbb00;
stickline(diff<dea,open,close,1.2,1),colorffdd00;
stickline(diff<dea,open,close,0.4,1),colorffff00;
var1:=(close*2+high+low)/4;
sk:= ema(var1,13)-ema(var1,73);
sd:= ema(sk,2);
sj:=(cross(sk,sd) and sk<-0.04 and (close-ref(close,1))/ref(close,1)>=0.03)or(cross(sk,sd)
and sk<=-0.14 )or(cross(sk,sd) and sk<=0.05 and (vol/ma(vol,5)>2 or close/ref(close,1)>0.035));
stickline(sj,high,low,0.5,0),colorred;
stickline(sj,open,close,5.5,0),linethick3,color000055;
stickline(sj,open,close,4.5,0),linethick3,color000077;
stickline(sj,open,close,3.5,0),linethick3,color000099;
stickline(sj,open,close,2.5,0),linethick3,color0000bb;
stickline(sj,open,close,1.5,0),linethick3,color0000dd;
stickline(sj,open,close,0.5,0),linethick3,color0000ff;
//博弈线
//byx:=wma(close,8),linethick1;
//fillrgn(byx>ref(byx,1),byx,ref(byx,1)),colorred;
//fillrgn(byx<ref(byx,1),byx,ref(byx,1)),colorgreen;
//黄金分割线
//黄191:(sysparam(4)-sysparam(5))*0.191+sysparam(5),coloryellow,pointdot;
//黄382:(sysparam(4)-sysparam(5))*0.382+sysparam(5),coloryellow,pointdot;
//黄500:(sysparam(4)-sysparam(5))*0.500+sysparam(5),colorgreen,pointdot;
//黄618:(sysparam(4)-sysparam(5))*0.618+sysparam(5),coloryellow,pointdot;
//黄809:(sysparam(4)-sysparam(5))*0.809+sysparam(5),coloryellow,pointdot;
//sysparam(4),colorred,pointdot;
//sysparam(5),colorwhite,pointdot;
n1:=sysparam(3);
小号:=n1-sysparam(2)+1;
hh:=hhv(high,小号);
ll:=llv(low,小号);
最高:=hh[n1];
最低:=ll[n1];
安全:最低+(最高-最低)*0.191,pointdot,linethick3,precision2,colorff8900;
中枢:最低+(最高-最低)*0.5,linedot,precision2,colorff00ff;
警惕:最低+(最高-最低)*0.809,linedot,precision2,colorffff;
临界:最低+(最高-最低)*0.609,linedot,precision3,colorff00;
//时间窗
vertline(barslast(low=llv(low,240))=30);
vertline(barslast(low=llv(low,240))=60);
vertline(barslast(low=llv(low,240))=90);
vertline(barslast(low=llv(low,240))=120);
vertline(barslast(low=llv(low,240))=150);
vertline(barslast(low=llv(low,240))=180);
vertline(barslast(low=llv(low,240))=210);
vertline(barslast(low=llv(low,240))=2400);
drawtext(barslast(low=llv(low,240))=30,high,'第一时间');
drawtext(barslast(low=llv(low,240))=60,high,'第二时间');
drawtext(barslast(low=llv(low,240))=90,high,'第三时间');
drawtext(barslast(low=llv(low,240))=120,high,'第四时间');
drawtext(barslast(low=llv(low,240))=150,high,'第五时间');
drawtext(barslast(low=llv(low,240))=180,high,'第六时间');
drawtext(barslast(low=llv(low,240))=210,high,'第七时间');
drawtext(barslast(low=llv(low,240))=240,high,'第八时间');
//买卖提示
varr1:=sma(max(close-ref(close,1),0),6,1)/sma(abs(close-ref(close,1)),6,1)*100;
drawicon(cross(82,varr1),high+0.108,2);
drawicon(count(cross(varr1,18),5) and cross(wma(close,5),ref(wma(close,5),1)),l-0.108,1);
//成交量
input:n(5);//量柱高度调节!
x:=sysparam(5)-(sysparam(4)-sysparam(5)+mindiff)/n;
y:=hhv(vol,sysparam(3)-sysparam(2)+1);
yvb:=y[sysparam(3)]/(sysparam(5)-x+mindiff);
z:=vol/yvb+x;
stickline(close>ref(close,1),x,z,7,1),color0000ff;
stickline(close<=ref(close,1),x,z,7,0),coloreae000;
五日均量:ma(z,5);
十日均量:ma(z,10);
//威廉买卖
wr:="w&r"(14);
drawicon(filter(cross(wr,(0 - 81)),10),low,4);//威廉买点↑ ↓
drawicon(filter(cross((0 -19),wr),10),high*1.04,5);//威廉卖点
drawtext(filter(cross(wr,(0 - 81)),21),low*0.96,'\n w&r'),align0,colorred;//威廉买点
drawtext(filter(cross(0 -19,wr),21),high*1.03,'\n w&r'),align2,colorgreen;//威廉卖点
{zsckx止损参考线}
ma7:ema(c,7),,color00ff00;
ma14:ema(c,14),colorffffff;
ma18:ema(c,18),colorred;
止损:=ema(close,7);
止损a:if(止损>ref(止损,1),止损,ref(止损,barslast(止损>ref(止损,1))));
if(止损a>ref(止损a,1)-1,止损a,ref(止损a,1)),colorffbce9,linethick2;
>>>使用本站搜索工具可以找到更多“组合主图公式 飞狐组合指标 源码”