{先胜一筹}
input:n(4,1,100),m(2,1,100);
aa:=(ref(h,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));
vv:=backset(vv,(ref(barslast(ld),1) + 2));
ww:=(vv > ref(vv,1));
xx:=backset(islastbar,(barslast(hd) + 1));
uu2:=(xx > ref(xx,1));
vv2:=backset(uu2,(ref(barslast(hd),1) + 2));
ww2:=(vv2 > ref(vv2,1));
前一低:ref(low,barslast(vv)),pointdot,linethick2,color99ff66;
前二低:ref(low,barslast(ww)),pointdot,linethick2,colorff66ff;
前一高:ref(high,barslast(uu2)),pointdot,linethick2,color99ff66;
前二高:ref(high,barslast(ww2)),pointdot,linethick2,colorff66ff;
//drawnumber((sysparam(2) = barpos),close,finance(33),2),align5;
stickline((close < open),high,low,1,0),color8800;
stickline((close < open),high,low,0,0),colorff00;
stickline((close < open),close,open,8,0),color8800;
stickline((close < open),close,open,7,0),color9900;
stickline((close < open),close,open,6,0),coloraa00;
stickline((close < open),close,open,5,0),colorbb00;
stickline((close < open),close,open,4,0),colorcc00;
stickline((close < open),close,open,3,0),colordd00;
stickline((close < open),close,open,2,0),coloree00;
stickline((close < open),close,open,1,0),colorff00;
stickline((close >= open),high,low,1,0),colorff;
stickline((close >= open),high,low,0,0),coloreeff;
stickline((close >= open),close,open,8,0),colorff;
stickline((close >= open),close,open,7,0),color22ff;
stickline((close >= open),close,open,6,0),color44ff;
stickline((close >= open),close,open,5,0),color66ff;
stickline((close >= open),close,open,4,0),color88ff;
stickline((close >= open),close,open,3,0),coloraaff;
stickline((close >= open),close,open,2,0),colorccff;
stickline((close >= open),close,open,1,0),coloreeff;
xx2:=(((((2 * close) + open) + high) + low) / 5);
var11:=vol;
var12:=(sum((xx2 * var11),3) / sum(var11,3));
m8:=var12;
主力:=llv(m8,5);
xx2:=(((((2 * close) + open) + high) + low) / 5);
var11:=vol;
散户:=(sum((xx2 * var11),1) / sum(var11,1));
m1:=(sum((xx2 * var11),5) / sum(var11,5));
m5:=(sum((xx2 * var11),13) / sum(var11,13));
var12:=(sum((xx2 * var11),3) / sum(var11,3));
m13:=(sum((xx2 * var11),21) / sum(var11,21));
m21:=散户;
y:=m1;
m8:=var12;
u1:=m5;
u3:=((y > m8) and (m8 > u1));
xx1:=if((u3 > 0),llv(y,5),hhv(m8,5));
c5:=if((u3 > 0),llv(m8,8),hhv(m8,5));
c8:=if((u3 > 0),llv(u1,13),hhv(m8,5));
主力:=llv(m8,7);
drawtext((主力 = ref(主力,1)),主力,'┬'),linethick5,colorcc33ff;
yl:=(((close + high) + low) / 3);
var1:=ma(yl,4);
cb:=hhv(var1,18);
a1:=hhv(var1,41);
a3:=(hhv(high,62) * 0.98);
b1:=llv(var1,18);
mid:=(llv(low,62) * 1.02);
upper:=ma(close,20);
lower:=(upper + (2 * std(close,20)));
jc:=(upper - (2 * std(close,20)));
aa:=(cross("kdj.k","kdj.d") and ("kdj.d" < 30));
hz:=cross("macd.diff"(10,6,3),"macd.dea"(10,6,3));
var2:=(2 * ("macd.diff"(10,6,3) - "macd.dea"(10,6,3)));
//drawicon((((hz and (var2 > 0)) and (ref(var2,1) < 0)) and aa),low,1),align5;
yl:=ref(close,1);
var3:=((sma(max((close - yl),0),6,1) / sma(abs((close - yl)),6,1)) * 100);
drawtext(cross(80,var3),(high * 1.01),'★见顶'),colorff;
var4:=(ref(high,1) * 1.1);
var5:=(high * 1.1);
var6:=(((var5 * vol) + (var4 * (capital - vol))) / capital);
var7:=(ref(low,1) * 0.9);
var8:=(low * 0.9);
var9:=(((var8 * vol) + (var7 * (capital - vol))) / capital);
vara:=ema(var9,30);
varb:=ema(var6,30);
varc:=(varb - 2);
vard:=if((close <= vara),varc,varb);
vaa:=(ma(close,80) - (ma(close,10) / 17));
abb:=(((ema(ema(ema(close,n),n),n) - ref(ema(ema(ema(close,n),n),n),1)) / ref(ema(ema(ema(close,n),n),n),1)) * 100);
叉:=ma(abb,m);
出手:=cross(abb,叉);
var18:=(((vard - varc) = 0) and 出手);
drawicon((var18 > 0),(low * 0.99),4);
drawtext(filter((var18 > 0),4),(low * 0.99),'赢'),colorffff;
stickline(filter((var18 > 0),4),high,low,0.5,0),colorffff;
stickline(filter((var18 > 0),4),open,close,6,0),linethick2,colorffff;
var28:=((ema(close,3) - ema(close,6)) - ((ema(close,6) - ema(close,12)) * (0 - 100)));
var38:=ema(var28,3);
var48:=((ema(close,3) - ema(close,6)) - ((ema(close,24) - ema(close,36)) * (0 - 100)));
var58:=ema(var48,9);
var36:=cross(var28,var38);
拐点:=cross(var38,var28);
stickline(拐点,open,close,1.5,0),colorffffff;
stickline(var36,open,close,8,0),colorff;
stickline(var36,open,(close - ((close - open) * 0.33)),8,0),colorffff;
stickline(var36,open,(close - ((close - open) * 0.66)),8,0),linethick2,colorff00ff;
拐点1:=ma(close,5);
gd1:=ma(close,5);
gd2:=(ref((count((拐点1 <= ref(拐点1,1)),5) = 5),1) and (拐点1 > ref(拐点1,1)));
yy:=(ref((count((gd1 <= ref(gd1,1)),5) = 5),1) and (gd1 > ref(gd1,1)));
drawicon(gd2,(low * 0.99),8);
drawicon(gd2,(low * 0.98),1);
v1:=((((ma(close,3) + ma(close,4)) + ma(close,5)) + ma(close,6)) / 4);
vv:((((ma(close,8) + ma(close,8)) + ma(close,8)) + ma(close,8)) / 4),colorff0000;
vv:=((((ma(close,4) + ma(close,8)) + ma(close,16)) + ma(close,32)) / 4);
partline((vv > ref(vv,1)),vv),linethick3,coloree00ee;
upper:=ma(close,20);
lower:=(upper + (2 * std(close,20)));
jc:=(upper - (2 * std(close,20)));
k1:=(((close - jc) / (lower - jc)) * 100);
v3:=(k1 - ema(k1,5));
v4:=(sum(llv(v3,4),4) / 4);
v5:=(ema(v3,64) * 10);
ks:=ema(((0.4 * v3) * (0 - 1)),3);
rks:=(0 - ((1 * ema(v3,39)) * 10));
mls:=(v5 > 10);
开:=(v3 > ks);
高:=(rks > 10);
低:=(((v5 <= 10) or (v3 <= ks)) or (rks <= 10));
收:=(((close - sma(close,13,1)) / sma(close,13,1)) * (0 - 100));
var326:=ref(收,1);
var327:=((((var326 / 收) > 1.23) and (var326 > 13)) and ((close / ref(close,1)) > 1.03));
var185:=open;
var186:=high;
var187:=low;
var188:=close;
超跌:stickline((收 > 13),var186,var187,0,1),linethick2,colorffffff;
反弹:stickline((var327 = 1),var186,var187,0,1),linethick2,colorff00ff;
stickline((收 > 13),var185,var188,8,1),linethick2,colorffffff;
stickline((var327 = 1),var185,var188,8,1),linethick2,colorff00ff;
var193:=if((((close and (ma(vol,5) / 240)) and (close > (ref(close,1) * 1))) and close),88,0);
var194:=if(((((((close / ref(close,1)) > 1.05) and (((vol / capital) * 100) < 10)) and (close < 17)) and ((high / close) < 1.01)) and (var193 > 0)),91,0);
stickline((var194 > 90),(low * 0.98),(low * 0.96),8,0),colorff;
drawtext((var194 > 90),(low * 0.95),'底'),colorff00;
上一指标公式:天使双吻抄底选股附送使用说明公式下载 飞狐选股源码指标 源码
下一指标公式:渐变色公式下载 飞狐指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文先胜一筹主图附图公式下载 飞狐源码贴图指标 源码仅供学习研究。