好公式网用指标公式为投资注入科技力量!
您的位置:好公式网飞狐公式操盘参考自用主图公式 飞狐操盘公式指标 源码

操盘参考自用主图公式 飞狐操盘公式指标 源码

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

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:操盘参考自用主图公式 飞狐操盘公式指标 源码

操盘参考(自用公式 主图 源码)

重心:=(c+0.618*ref(c,1)+0.382*ref(c,2)+0.236*ref(c,3)+0.146*ref(c,4))/2.382;
趋势线:=ema(((slope(c,22)*20)+c),55),coloryellow,linethick2;
drawicon(重心>=趋势线,趋势线,10),colorred,linethick2;
drawicon(重心<趋势线,趋势线,11),colorblue,linethick2;
ma5:ma(c,5);
ma13:ma(c,13);
ma34:ma(c,34);
ma60:ma(c,60);
乖离:(c/ma60-1)*100,colorff00ff,linethick0;
ma120:ma(c,120),colorblue,linethick0;
ma240:ma(c,240),colorred,linethick0;
stickline((open >= close),close,open,9,0),colorff5b00;
stickline((open >= close),close,open,8,0),colorff6c00;
stickline((open >= close),close,open,7,0),colorff7b00;
stickline((open >= close),close,open,6,0),colorff9c00;
stickline((open >= close),close,open,5,0),colorffbe00;
stickline((open >= close),close,open,3.5,0),colorffcc00;
stickline((open >= close),close,open,1.5,0),colorffff00;
stickline((close >= open),close,open,9,0),color070084;
stickline((close >= open),close,open,8,0),color0000a3;
stickline((close >= open),close,open,7,0),color0000b7;
stickline((close >= open),close,open,6,0),color0000cd;
stickline((close >= open),close,open,5,0),color0000e9;
stickline((close >= open),close,open,3,0),color0754e9;
stickline((close >= open),close,open,1.5,0),color076ef3;
stickline((close >= open),close,open,1,0),color077bf3;
stickline((close > open),open,low,1,0),color0726ca;
stickline((close > open),close,high,1,0),color0726ca;
stickline((open > close),close,low,1,0),colorde9100;
stickline((open > close),open,high,1,0),colorde9100;

var1:=((((hhv((((ema(close,12)-ema(close,26))-(ema((ema(close,12)-ema(close,26)),9)))*2),4)<0) and ((((ema(close,12)-ema(close,26))-(ema((ema(close,12)-ema(close,26)),9)))*2)>ref((((ema(close,12)-ema(close,26))-(ema((ema(close,12)-ema(close,26)),9)))*2),1))) and (ref((((ema(close,12)-ema(close,26))-(ema((ema(close,12)-ema(close,26)),9)))*2),1)<ref((((ema(close,12)-ema(close,26))-(ema((ema(close,12)-ema(close,26)),9)))*2),2))) and (ref((((ema(close,12)-ema(close,26))-(ema((ema(close,12)-ema(close,26)),9)))*2),2)<ref((((ema(close,12)-ema(close,26))-(ema((ema(close,12)-ema(close,26)),9)))*2),3)));
drawicon(var1,l*0.98,6);
drawtext(var1,l*0.97,'短买'),coloryellow;
drawicon(cross(ma(c,3),ma(c,9)) and c>=ref(c,1) and c>o,l*0.98,7);
drawtext(cross(ma(c,3),ma(c,9)) and c>=ref(c,1) and c>o,l*0.97,'加仓'),colorred;

{x:=(barslast((sysparam(2)=barpos))+1);
ns:=if((hhv(abs(((hhv(close,6)/llv(close,6))-1)),6)>(10/100)),3,6);
n1:=if((datatype=2),(ns*48),if((datatype=3),(ns*16),if((datatype=4),(ns*8),if((datatype=5),(ns*4),ns))));
mm:=if((((stktype=0) or (p=0)) or (vol=0)),ma(close,n1),((sum(amount,n1)/sum(vol,n1))/100));
m1:=ref(mm,1);
买入:=if(cross(close,m1),m1,0);
卖出:=if(cross(m1,close),m1,0);
dw:=barslast((卖出>0));
ex10:=hhv((买入>0),(dw+1));
bj:=if((ex10>ref(ex10,1)),买入,0);
drawicon(bj>0,low*0.97,6);}

var82:=((((2*close)+high)+low) / 4);
var84:=llv(low,5);
var85:=hhv(high,4);
c1:=(ema((((var82-var84)/(var85-var84))*100),4)),colorff00ff,linethick2;
c2:=(ema(((0.667*ref(c1,1))+(0.333*c1)),2)),colorffffff,linethick2;

tj3:=cross(c1,c2) and ref(c1,1)<20;
drawtext(tj3,l*0.96,'底'),colorff00ff;

x1:=(3*close+high+low+open)/6;
x2:=ema(x1,10);
x3:=ref(x2,1);
x4:=(ref(high,1)+ref(low,1))/2;
x5:=ma(close,21)+2*std(close,21);
x6:=ref(close,1);
x7:=(sma(max(close-x6,0),7,1))/(sma(abs(close-x6),7,1))*100;
x8:=cross(79,x7);
x9:=filter(x8,4);
wz1:=pow(ma(close,5),2)+ma(close,5);
wz2:=pow(ma(low,5),2)+ma(low,5);
wz3:=pow(ma(high,5),2)+ma(high,5);
wz4:=(wz1-llv(wz2,9))/(hhv(wz3,9)-llv(wz2,9))*150+65;
dk:=sma(wz4,3,1)*1.5;
dd:=sma(dk,3,1);
dj:=3*dk-2*dd;
wz5:=ema(close,12)-ema(close,26);
wz6:=ema(wz5,9);
wz7:=2*(wz5-wz6);
wz8:=ref(wz7,1);
wz9:=cross(wz8,wz7) and wz8>0;
var1t:=ema(close,8);
var2t:=ema(var1t,20);
var3t:=cross(var1t,var2t);
var4t:=var1t<ma(close,120);
var5t:=(hhv(high,36)-close)/(hhv(high,36)-llv(low,36))*100;
var6t:=sma(var5t,5,1);
var7t:=sma(var6t,8,1);
var8t:=cross(var6t,var7t) and var7t<20;
var9t:=close>llv(close,60)+0.3*llv(close,60) and var8t;
vara:=if(close>1000,var8t,var9t);
起步:=var3t and var4t;
逃遁:=vara;
xl1:=ema(close,10)/100;
xl2:=ma((xl1-ref(xl1,10))/ref(xl1,10),3)*100;
xl3:=ma(xl2,3);
xl4:=sma((close-llv(low,9))/(hhv(high,9)-llv(low,9))*100,3,1);
{drawtext(if(cross(3*xl4-2*sma(xl4,3,1),8),87,0) and x2>x3,low-0.1,'←反弹'),colorff00;
drawtext(if(cross((var1t-llv(var1t,4))/(hhv(var1t,4)-llv(var1t,4))*4*25,87.5) and var1t<40,87,0) and x2>x3,low,'←短买'),colorffff00;}
aa05:=ma(c,3),linethick3,color00ccff;
五日乖离率:=(c-aa05)/aa05*100;
bb05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;
速度5:=sma(ema((aa05-ref(aa05,1))/ref(aa05,1),3)*100,3,1);
加速度5:=ema((速度5-ref(速度5,1)),3),linethick0;
{aa10:=ma(c,10);aa20:=ma(c,20);
aa30:=ma(c,30);
三拾日乖离率:=(c-aa30)/aa30*100,linethick0;
加仓:=filter(count(cross(bb05,30),5)>=1 and aa05>ref(aa05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and aa10>ref(aa10,1)
and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1) ,10) ;

drawtext(加仓 and 重心>=趋势线 ,low*0.98,'←加仓'),colorred;}
{drawtext(if(cross(2*(ema((close*2+high+low)/4,12)-ema((close*2+high+low)/4,26)-(ema(ema((close*2+high+low)/4,12)-ema((close*2+high+low)/4,26),2)))*5.8,0.47),low,0) and x2>x3,low-0.2,'←加仓'),colorff5ed8;}
drawtext(cross(x4,x5),high*1.0,'←减'),colorb4ff;
drawtext(filter((wz9 and dj>250) or x9 ,5),high*1.05,'←跑'),colorbcff8b;
{stickline(起步>0,high,low,0.8,0),color00ffff;
stickline(起步>0,open,close,5,0),color00ffff;
drawtext(逃遁>0,high*1.04,'●←逃'),color7fffd6;}
x1:=(c+l+h)/3;
bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;
ema8:=ema(c,8);
drawtext(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),
ema8,'∠45上升'),colorwhite;
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.94999998),'★大胆搏 '),colorff00ff;
l23:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;
l24:=(high+low+close)/3;
l25:=(l24-ma(l24,14))/(0.015*avedev(l24,14));
l26:=(l24-ma(l24,70))/(0.015*avedev(l24,70));
l27:=if(l25>=150 and l25<200 and l26>=150 and l26<200,10,0);
l28:=if(l25<=-150 and l25>-200 and l26<=-150 and l26>-200,-10,l27);
l29:=100-abs((close-ma(close,13))/ma(close,13)*100);
l30:=if(l29<90,l29,100);
l31:=if(l23>0,l23,0);
xl1:=(if(l28>=200 and l25>=150,15,if(l26<=-200 and l25<=-150,-15,l28)))+60;
xl2:=l31>48 and xl1>60 and l30<100;
drawtext(xl2 and count(xl2,30)=1,l,'大笔成交'),colorff00ff;
aaa:=(3*c+h+l+o)/6;
var1:=(8*aaa+7*ref(aaa,1)+6*ref(aaa,2)+5*ref(aaa,3)+4*ref(aaa,4)+3*ref(aaa,5)+2*ref(aaa,6)+ref(aaa,8))/36;

tj1:=vol=hhv(vol,10) and vol>2*ref(vol,1) and close>var1;
立桩量:=filter(tj1,5);
tj2:=if(barslast(立桩量)=1 and close>ref(high,1),1,if(barslast(立桩量)=2 and close>ref(high,2),1,if(barslast(立桩量)=3 and close>ref(high,3),1,0)));
突破:=tj2=1;

tj3:=if(barslast(立桩量)=1 and close>ref(low,1),1,if(barslast(立桩量)=2 and close>ref(low,2),1,if(barslast(立桩量)=3 and close>ref(low,3),1,0)));
三天法则:=tj3=1;
成立:=三天法则 and 突破;
条件成立:=filter(成立,3);
drawtext(条件成立,h*1.08,'★立桩量'),coloryellow;

{康宝莱阳光普照解盘原码}
indexc="1a0001$close",linethick0;
b1:=(close / indexc);
b2:=ma(b1,5);
b3:=ma(b1,10);
b4:=ma(close,20);
b5:=(close > ma(close,5));
b6:=(ma(close,5) > ma(close,10));
b7:=(close > ma(close,10));
b8:=(ma(close,5) > ma(close,20));
b9:=(close > ma(close,20));
b10:=ref(b4,1);
b11:=(b4 > b10);
b12:=(((((if(b5,10,(0 - 10)) + if(b6,10,(0 - 10))) + if(b7,10,(0 - 10))) + if(b8,10,(0 - 10))) + if(b9,10,(0 - 10))) + if(b11,10,(0 - 10)));
a4:=ma(close,20);
a5:=(close > ma(close,5));
a6:=(ma(close,5) > ma(close,10));
a7:=(close > ma(close,10));
a8:=(ma(close,5) > ma(close,20));
a9:=(close > ma(close,20));
a10:=ref(a4,1);
a11:=(a4 > a10);
avx:=(((((if(a5,10,(0 - 10)) + if(a6,10,(0 - 10))) + if(a7,10,(0 - 10))) + if(a8,10,(0 - 10))) + if(a9,10,(0 - 10))) + if(a11,10,(0 - 10)));
dslx:=(close / indexc);
dslx1:=ma(dslx,5);
dslx2:=ma(dslx,10);
v1:=ma(vol,5);
v2:=ma(vol,10);
阻力位:=if((close > 200),(close * 1.01),(close * 1.07));
阻力位1:=if((close < 10),(close * 1.05),阻力位);
止损位:=if((close > 200),(close * 0.99),(close * 0.93));
止损位1:=if((close < 10),(close * 0.95),止损位);
情况1:=((cross(avx,1) and (v1 >= v2)) and (dslx >= dslx1));
情况2:=((cross(avx,1) and (v1 < v2)) and (dslx >= dslx1));
情况3:=((cross(avx,1) and (v1 > v2)) and (dslx < dslx1));
情况4:=((cross(avx,1) and (v1 <= v2)) and (dslx < dslx1));
情况5:=((cross(1,avx) and (v1 >= v2)) and (dslx >= dslx1));
情况6:=((cross(1,avx) and (v1 < v2)) and (dslx >= dslx1));
情况7:=((cross(1,avx) and (v1 >= v2)) and (dslx < dslx1));
情况8:=((cross(1,avx) and (v1 < v2)) and (dslx < dslx1));
情况9:=((((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2)) and (dslx >= dslx1));
情况10:=((((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2)) and (dslx >= dslx1));
情况11:=((((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2)) and (dslx < dslx1));
情况12:=((((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2)) and (dslx < dslx1));
情况13:=((((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2)) and (dslx >= dslx1));
情况14:=((((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2)) and (dslx >= dslx1));
情况15:=((((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2)) and (dslx < dslx1));
情况16:=((((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2)) and (dslx < dslx1));
大盘1:=(cross(avx,1) and (v1 >= v2));
大盘2:=(cross(avx,1) and (v1 < v2));
大盘3:=(cross(1,avx) and (v1 >= v2));
大盘4:=(cross(1,avx) and (v1 < v2));
大盘5:=(((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2));
大盘6:=(((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2));
大盘7:=(((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2));
大盘8:=(((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2));
explain((情况1 and (close < 200)),'★★★★★'),,colorff;
explain((情况1 and (close < 200)),'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。'),,colorff;
explainex((情况1 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff;
explainex((情况1 and (close < 200)),'止损位:',止损位1,2,1),,colorff;
explain((情况2 and (close < 200)),'★★★★'),,colorff;
explain((情况2 and (close < 200)),'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。'),,colorff;
explainex((情况2 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff;
explainex((情况2 and (close < 200)),'止损位:',止损位1,2,1),,colorff;
explain((情况3 and (close < 200)),'★★★'),,colorff;
explain((情况3 and (close < 200)),'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。'),,colorff;
explainex((情况3 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff;
explainex((情况3 and (close < 200)),'止损位:',止损位1,2,1),,colorff;
explain((情况4 and (close < 200)),'★★'),,colorff;
explain((情况4 and (close < 200)),'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。'),,colorff;
explainex((情况4 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff;
explainex((情况4 and (close < 200)),'止损位:',止损位1,2,1),,colorff;
explain((情况5 and (close < 200)),'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。'),,colorff00;
explainex((情况5 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff00;
explainex((情况5 and (close < 200)),'止损位:',止损位1,2,1),,colorff00;
explain((情况6 and (close < 200)),'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。'),,colorff00;
explainex((情况6 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff00;
explainex((情况6 and (close < 200)),'止损位:',止损位1,2,1),,colorff00;
explain((情况7 and (close < 200)),'该股放量下跌,走势明显偏弱,离场观望。'),,colorff00;
explainex((情况7 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff00;
explainex((情况7 and (close < 200)),'止损位:',止损位1,2,1),,colorff00;
explain((情况8 and (close < 200)),'该股缩量下跌,走势偏弱,离场观望。'),,colorff00;
explainex((情况8 and (close < 200)),'阻力位:',阻力位1,2,1),,colorff00;
explainex((情况8 and (close < 200)),'止损位:',止损位1,2,1),,colorff00;
explain((情况9 and (close < 200)),'该股形态良好,强势明显,量能充足,可以继续持有。'),,colorffff;
explainex((情况9 and (close < 200)),'阻力位:',阻力位1,2,1),,colorffff;
explainex((情况9 and (close < 200)),'止损位:',止损位1,2,1),,colorffff;
explain((情况10 and (close < 200)),'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。'),,colorffff;
explainex((情况10 and (close < 200)),'阻力位:',阻力位1,2,1),,colorffff;
explainex((情况10 and (close < 200)),'止损位:',止损位1,2,1),,colorffff;
explain((情况11 and (close < 200)),'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),,colorffff;
explainex((情况11 and (close < 200)),'阻力位:',阻力位1,2,1),,colorffff;
explainex((情况11 and (close < 200)),'止损位:',止损位1,2,1),,colorffff;
explain((情况12 and (close < 200)),'该股走势趋弱,量能不足,减持大部分筹码。'),,colorffff;
explainex((情况12 and (close < 200)),'阻力位:',阻力位1,2,1),,colorffff;
explainex((情况12 and (close < 200)),'止损位:',止损位1,2,1),,colorffff;
explain((情况13 and (close < 200)),'该股形态不佳,注意成交量的变化,但目前不适合参与。'),;
explainex((情况13 and (close < 200)),'阻力位:',阻力位1,2,1),;
explainex((情况13 and (close < 200)),'止损位:',止损位1,2,1),;
explain((情况14 and (close < 200)),'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),;
explainex((情况14 and (close < 200)),'阻力位:',阻力位1,2,1),;
explainex((情况14 and (close < 200)),'止损位:',止损位1,2,1),;
explain((情况15 and (close < 200)),'该股有走强迹象,但量能不足,趋势不明,不适合操作。'),;
explainex((情况15 and (close < 200)),'阻力位:',阻力位1,2,1),;
explainex((情况15 and (close < 200)),'止损位:',止损位1,2,1),;
explain((情况16 and (close < 200)),'该股走势太弱,没有参与价值。'),;
explainex((情况16 and (close < 200)),'阻力位:',阻力位1,2,1),;
explainex((情况16 and (close < 200)),'止损位:',止损位1,2,1),;
explain((情况1 and (close > 200)),'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右, 如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。'),,colorff;
explainex((大盘1 and (close > 200)),'阻力位:',阻力位1,2,1),,colorff;
explainex((大盘1 and (close > 200)),'止损位:',止损位1,2,1),,colorff;
explain((大盘2 and (close > 200)),'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, 可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。'),,colorff;
explainex((大盘2 and (close > 200)),'阻力位:',阻力位1,2,1),,colorff;
explainex((大盘2 and (close > 200)),'止损位:',止损位1,2,1),,colorff;
explain((大盘3 and (close > 200)),'大盘形态走坏,重仓者可以减去大部分仓位。'),,colorff00;
explainex((情况3 and (close > 200)),'阻力位:',阻力位1,2,1),,colorff00;
explainex((情况3 and (close > 200)),'止损位:',止损位1,2,1),,colorff00;
explain((大盘4 and (close > 200)),'大盘缩量调整,注意风险,短线清仓观望。'),,colorff00;
explainex((大盘4 and (close > 200)),'阻力位:',阻力位1,2,1),,colorff00;
explainex((大盘4 and (close > 200)),'止损位:',止损位1,2,1),,colorff00;
explain((大盘5 and (close > 200)),'大盘走势良好,量能理想,可以继续持有强势股。'),,colorffff;
explainex((大盘5 and (close > 200)),'阻力位:',阻力位1,2,1),,colorffff;
explainex((大盘5 and (close > 200)),'止损位:',止损位1,2,1),,colorffff;
explain((大盘6 and (close > 200)),'大盘形态良好,但量能稍显不足,随时准备减仓。'),,colorffff;
explainex((大盘6 and (close > 200)),'阻力位:',阻力位1,2,1),,colorffff;
explainex((大盘6 and (close > 200)),'止损位:',止损位1,2,1),,colorffff;
explain((大盘7 and (close > 200)),'大盘趋势不明,注意成交量变化,目前不适宜进场。'),;
explainex((大盘7 and (close > 200)),'阻力位:',阻力位1,2,1),;
explainex((大盘7 and (close > 200)),'止损位:',止损位1,2,1),;
explain((大盘8 and (close > 200)),'大盘趋势向下,量能萎缩,不适合进场。'),;
explainex((大盘8 and (close > 200)),'阻力位:',阻力位1,2,1),;
explainex((大盘8 and (close > 200)),'止损位:',止损位1,2,1),;

zlcm:=ema(winner(close)*70,3);
shcm:=ema((winner(close*1.1)-winner(close*0.9))*80,3);
zshtl:=shcm/(zlcm+shcm)*100;
zzlkp:=zlcm/(zlcm+shcm)*100;
zcmzl:=ma(zlcm+shcm,13);
zznts:=barslast(zshtl<90 and ref(zshtl,1)>90);
zshjj:=ema(zshtl,89);
zzljj:=ema(zzlkp,89);
zjlrqd:=round(zzlkp-zzljj);
sh8:=ema(zshtl,8);
dkb:=if(zzlkp-ref(zzlkp,1)>zshtl-ref(zshtl,1),1,0);
散户套牢系数:=round(zshtl);
主力控盘系数:=round(zzlkp);
资金流入强度:=zjlrqd;
市场筹码总量:=round(zcmzl);
explain(zcmzl>ref(zcmzl,1) and dkb=1,'主力动向监控:主力增仓'),colorff;
explain(zcmzl>ref(zcmzl,1) and dkb=0,'主力动向监控:主力减仓'),colorff00ff;
explain(zcmzl=ref(zcmzl,1),'主力动向监控:多空平衡'),color808080;
explain(zcmzl<ref(zcmzl,1) and dkb=1,'主力动向监控:主力回补'),colorff9933;
explain(zcmzl<ref(zcmzl,1) and dkb=0,'主力动向监控:主力出逃'),colorff00;
explain(zshtl>90,'特别信号提示:筑底散兵坑'),color66ffcc;
explain(zzlkp>75,'特别信号提示:铸顶风险区'),colorffff00;
explain(cross(zcmzl,zzljj) and zzlkp>zzljj and zzlkp>10 and zzljj>ref(zzljj,1) and zcmzl>ref(zcmzl,1),'特别信号提示:穿越警戒'),colorff;
explain(cross(zcmzl,zzlkp) and zzlkp>zzljj and zzlkp<zshtl and zzlkp>10 and zzljj>ref(zzljj,1) and zcmzl>ref(zcmzl,1),'特别信号提示:穿越主力'),colorffff;
explain(cross(zcmzl,zshtl) and zshtl>zzlkp and zcmzl>ref(zcmzl,1),'特别信号提示:穿越散户'),colorff00;
explain(cross(zcmzl,100) and zcmzl>ref(zcmzl,1),'特别信号提示:全盘穿越'),color3399ff;
explain(ref(zshtl,1)>90 and zshtl<90,'特别信号提示:神秘黑洞'),color9966ff;

{资金分析}
r1:=ma(winner(close*0.9)*100*close,3);
资金比:=(if(r1>5,r1,0))/2;
资金均量:=ma(资金比,5);
var01:=ref(close,1);
var02:=(sum(if(close>var01,vol,0),26))/(sum(if(close<var01,vol,0),26))*100;
股价比:=ema(var02,5);
explain(1=1,'【资金分析】'),colorffff;
explain(股价比<40,'该股处在底部区;'),colorffcc66;
explain(股价比>=40 and 股价比<80,'该股处在低位区;'),colorffcc66;
explain(股价比>=80 and 股价比<160,'该股处在盘整区;'),colorffcc66;
explain(股价比>=160,'该股处在获利区;'),colorffcc66;
explain(资金比>10 and 资金比>资金均量,'有增量资金进入;'),colorffcc66;
explain(资金比>10 and 资金比<ref(资金比,1) and 资金比<资金均量,'存量资金减量;'),colorffcc66;
var11:=ma(vol/(high-low),4);
var33:=abs(close-open);
var44:=vol/(high-low);
explain(var44<var11 and var33<ma(var33,4),'场外资金暂时无入场意愿,量能萎缩中;'),colorff00;
explain(var44<var11 and var33>ma(var33,4),'场内资金运作行为,谨慎操作;'),colorffcc66;
explain(var44>var11 and var33<ma(var33,4),'多空双方激烈争夺中,积极关注;'),colorff00ff;
explain(var44>var11 and var33>ma(var33,4),'场外资金操作意愿强烈,密切注意他们的动向;'),colorff;

explain(1=1,'【形态分析】'),colorffffff;
早晨之星:=ref(close,2)/ref(open,2)<0.95 and ref(open,1)<ref(close,2) and (abs(ref(open,1)-ref(close,1)))/ref(close,1)<0.03 and close/open>1.05 and close>ref(close,2);
黄昏之星:=ref(close,2)/ref(open,2)>1.03 and ref(open,1)>ref(close,2) and (abs(ref(open,1)-ref(close,1)))/ref(close,1)<0.02 and close/open<0.97 and close<ref(close,2);
长十字:=close=open and high/low>1.03;
垂死十字:=close=open and close=low and close<>high;
早晨十字星:=ref(close,2)/ref(open,2)<0.95 and ref(open,1)<ref(close,2) and ref(open,1)=ref(close,1) and close/open>1.05 and close>ref(close,2);
黄昏十字星:=ref(close,2)/ref(open,2)>1.05 and ref(open,1)>ref(close,2) and ref(open,1)=ref(close,1) and close/open<0.95 and close<ref(close,2);
射击之星:=min(open,close)=low and high-low>3*(max(open,close)-low) and close>ma(close,5);
倒转锤头:=min(open,close)=low and high-low>3*(max(open,close)-low) and close<ma(close,5);
锤头:=high=max(open,close) and high-low>3*(high-min(open,close)) and close<ma(close,5);
吊颈:=high=max(open,close) and high-low>3*(high-min(open,close)) and close>ma(close,5);
穿头破脚:=ref(close,1)/ref(open,1)>1.03 and close/open<0.96 and close<ref(open,1) and open>ref(close,1) or ref(close,1)/ref(open,1)<0.97 and close/open>1.04 and close>ref(open,1) and open<ref(close,1);
乌云盖顶:=ref(close,1)/ref(open,1)>1.03 and close/open<0.97 and open>ref(close,1) and close<ref(close,1);
曙光初现:=ref(close,1)/ref(open,1)<0.97 and close/open>1.03 and open<ref(close,1) and close>ref(close,1);
身怀六甲:=(abs(ref(close,1)-ref(open,1)))/ref(close,1)>0.04 and (abs(close-open))/close<0.005 and max(close,open)<max(ref(close,1),ref(open,1)) and min(close,open)>min(ref(close,1),ref(open,1));
十字胎:=(abs(ref(close,1)-ref(open,1)))/ref(close,1)>0.04 and close=open and close<max(ref(close,1),ref(open,1)) and close>min(ref(close,1),ref(open,1));
平顶:=(abs(high-ref(high,1)))/high<0.001;
平底:=(abs(low-ref(low,1)))/low<0.001 and (abs(ref(low,1)-ref(low,2)))/ref(low,1)<=0.001;
大阳烛:=close/open>1.05 and high/low<close/open+0.018;
三个白武士:=ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and close>open and ref(close,1)>ref(close,2) and close>ref(close,1);
双飞乌鸦:=ref(close,1)<ref(open,1) and close<open and close/open<0.98;
孕育线:=ref(close,2)>ref(open,2) and (ref(close,2)-ref(open,2))/ref(open,2)>=2/100 and ref(open,1)>=ref(close,1) and (ref(open,1)-ref(close,1))/ref(close,1)<=2/100 and ref(open,1)<=ref(close,2) and ref(close,1)>=ref(open,2) and close>=open and (close-open)/open>=2/100 and close>=ref(open,1) and open<=ref(close,1) and (max(close,ref(close,2))-min(close,ref(close,2)))/min(close,ref(close,2))<=1/100;
多方炮:=ref(close,2)>ref(open,2) and ref(close,1)<ref(open,1) and close>open;
出水芙蓉:=(open<ema(close,20) or open<ema(close,40) or open<ema(close,60)) and close>max(ema(close,20),max(ema(close,40),ema(close,60))) and vol/ma(vol,30)>1.2 and close/ref(close,1)>1.049;
上升三部曲:=ref(close,4)/ref(open,4)>1.03 and ref(close,3)<ref(open,3) and ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open>1.03 and close>ref(close,4);
下跌三部曲:=ref(close,4)/ref(open,4)<0.97 and ref(close,3)>ref(open,3) and ref(close,2)>ref(open,2) and ref(close,1)>ref(open,1) and ref(low,4)<ref(low,3) and ref(low,4)<ref(low,2) and ref(low,4)<ref(low,1) and ref(high,4)>ref(high,3) and ref(high,4)>ref(high,2) and ref(high,4)>ref(high,1) and close/open<0.97 and close<ref(close,4);
跳空缺口:=high<ref(low,1) or low>ref(high,1);
三只乌鸦:=ref(close,2)<ref(open,2) and ref(close,1)<ref(open,1) and close<open and ref(close,1)<ref(close,2) and close<ref(close,1);
光脚阴线:=low=close and high<>low;
光头阳线:=high=close and high<>low;
分离:=open=ref(open,1) and (close-open)*(ref(close,1)-ref(open,1))<0;
长下影:=(min(close,open)-low)/(high-low)>0.667;
长上影:=(high-max(close,open))/(high-low)>0.667;
十字星:=close=open and high<>low;
大阴烛:=open/close>1.05 and high/low<open/close+0.018;
好友反攻:=ref(close,1)<ref(open,1) and close>open and (abs(close-ref(close,1)))/close<0.002 or ref(close,1)>ref(open,1) and close<open and (abs(close-ref(close,1)))/close<0.002;
倾盆大雨:=ref(close,1)/ref(open,1)>=1.03 and open<ref(close,1) and open>ref(open,1) and close<ref(open,1);
explain(倾盆大雨,'倾盆大雨,见顶信号;'),colorffff00;
explain(大阴烛,'大阴烛,后市向淡,发生逆转;'),colorffff00;
explain(好友反攻,'好友反攻,跌势已尽,要展开一段反弹行情;'),colorff;
explain(跳空缺口,'跳空缺口,突破长期盘整,向上跳空,上涨行情开始;向下跳空,下跌行情开始;'),colorffffff;
explain(光脚阴线,'光脚阴线,下跌信号;'),colorffff00;
explain(光头阳线,'光头阳线,多方积极上攻态势,后市看涨;'),colorff;
explain(三只乌鸦,'三只乌鸦站枝头,可能见顶回落;'),colorffff00;
explain(分离,'分离,注意看涨分离和看跌分离;'),colorffffff;
explain(长下影,'长下影,持续下跌后出现,有可能止跌回升;在升势末期出现,须多加留意;'),colorff;
explain(长上影,'长上影,表明行情上档压力沉重,升势受阻;'),colorffff00;
explain(下跌三部曲,'下跌三部曲,下跌信号;'),colorff;
explain(上升三部曲,'上升三部曲,上涨信号;'),colorffff00;
explain(早晨之星,'早晨之星,见底回升;'),colorff;
explain(黄昏之星,'黄昏之星,见顶回落;'),colorffff00;
explain(十字星,'十字星,重要的警告信号,原趋势停顿或反转;'),colorffffff;
explain(长十字,'长十字,重要的警告信号,原趋势停顿或反转;'),colorffffff;
explain(垂死十字,'垂死十字,下跌信号;'),colorffff00;
explain(早晨十字星,'早晨十字星,上涨信号,见底回升;'),colorff;
explain(黄昏十字星,'黄昏十字星,趋势停顿或反转,下跌信号,见顶回落;'),colorffff00;
explain(射击之星,'射击之星,出现在短期的上升趋势,表明市场顶部就在眼前,可能见顶回落,可靠性低;'),colorffff00;
explain(倒转锤头,'倒转锤头构成一个看涨信号,可能见底回升;'),colorff;
explain(锤头,'锤头,可能见底回升,如有量配合,信号强烈;'),colorff;
explain(吊颈,'吊颈,上升行情中见顶回落,顶部出现,见顶信号;'),colorffff00;
explain(平顶,'平顶,意味行情摸高见顶,股价行将反转。但反转下跌力度较小;'),colorffff00;
explain(穿头破脚,'穿头破脚,顶部出现,见顶回落信号;'),colorffff00;
explain(乌云盖顶,'乌云盖顶,见顶回落信号;'),colorffff00;
explain(曙光初现,'曙光初现,行情将演化为v型反转或止跌横盘趋势。后市见底回升;'),colorff;
explain(身怀六甲,'身怀六甲,出现在底部,是见底回升信号;出现在顶部,是见顶回落信号;'),colorff;
explain(十字胎,'十字胎;'),colorff;
explain(平底,'平底,行情探低见底,股价行将反转上升,但力度较小;'),colorff;
explain(大阳烛,'大阳烛,在上升行情中出现,则意味着行情剧烈地向上攀升。在下跌行情中出现,则意味着行情剧烈地向上反弹;'),colorff;
explain(三个白武士,'三个白武士,每日收盘价上移,表示可能见底回升;'),colorff;
explain(双飞乌鸦,'双飞乌鸦,行情开始疲软将见顶回落;'),colorffff00;
explain(孕育线,'孕育线,注意股价位置;'),colorffffff;
explain(多方炮,'多方炮,在底部出现有上涨可能,在中间出现有可能是上涨中继,顶部出现是复合见顶信号;'),colorff;
explain(出水芙蓉,'出水芙蓉,阳线穿过20、40、60日季均线,上攻势头初现;'),colorff;
drawtextex(c,1,10,20,'\n所属板块:'+blkname),colorffffff;

sy:=if(close>=open,high-close,high-open);
xy:=if(close>=open,open-low,close-low);
cd:=2*(sy+xy)+abs(close-open);
syj:=if(close>=open,(high+close)/2,(high+open)/2);
xyj:=if(close>=open,(open+low)/2,(close+low)/2);
maj1:=(syj*2*sy/cd+xyj*2*xy/cd+(close+open)/2*abs(close-open)/cd);
maj:=if(maj1=0,c,maj1);
短趋:=(8*maj+7*ref(maj,1)+6*ref(maj,2)+5*ref(maj,3)+4*ref(maj,4)+3*ref(maj,5)+2*ref(maj,6)+ref(maj,8))/36;
中趋:=(llv(短趋,2)+llv(短趋,4)+llv(短趋,6))/3;
立桩量:=filter(vol=hhv(vol,10) and vol>2*ref(vol,1) and close>短趋,5);
突破:=if(barslast(立桩量)=1 and close>ref(high,1),1,if(barslast(立桩量)=2 and close>ref(high,2),1,if(barslast(立桩量)=3 and close>ref(high,3),1,0)))=1;
三天法则:=if(barslast(立桩量)=1 and close>ref(low,1),1,if(barslast(立桩量)=2 and close>ref(low,2),1,if(barslast(立桩量)=3 and close>ref(low,3),1,0)))=1;
ma5:=ma(c,5);
ma10:=ma(c,10);
ma20:=ma(c,20);
ma30:=ma(c,30);
ma120:=sma(c,120,1);
zh520:=abs(ma5-ma20)/ma20*100<=10;
zh530:=abs(ma5-ma30)/ma30*100<=10;
qsxs1:=ma5>ref(ma5,1);
qsxs2:=ma20>ref(ma20,1);
qsxs3:=ma30>ref(ma30,1);
dtpl:=ma20>ma30 and ma30>ma120;
lyht:=dtpl and qsxs2 and qsxs3 and not(qsxs1) and ref(qsxs1,1);
lc:=ref(close,1);
品种强弱:=(sma(max(close-lc,0),8,1))/(sma(abs(close-lc),8,1))*100;
cc:="1a0001$close";
ff:="399001$close";
lc1:=ref(if(inblock('深圳a股')=1,ff,cc),1);
指数强弱:=(sma(max((if(inblock('深圳a股')=1,ff,cc))-lc1,0),8,1))/(sma(abs((if(inblock('深圳a股')=1,ff,cc))-lc1),8,1))*100;
强弱度:=品种强弱-指数强弱;

涨幅比:=100*(close/ref(close,1)-1);
跌幅比:=100*(1-close/ref(close,1));
explain(1,'【图形分析】'),colorffff;
早晨之星的中部:=(abs(ref(open,1)-ref(close,1)))/ref(close,1);
早晨两日前倍比:=(ref(open-close,2))/ref(open,2)/早晨之星的中部;
早晨今日倍比:=(close-open)/open/早晨之星的中部;
早晨:=ref(isdown,2) and 早晨两日前倍比>3 and 早晨之星的中部<0.03 and ref(open,1)<ref(close,2) and isup and 早晨今日倍比>3 and close>ref(close,2);
explain(早晨,' '+'早晨之星'),color3300ff;
explain(早晨,'若低位上涨即将启动,若在高位请小心冲高出货'),color6633cc;
explain(早晨,'可靠性排序一');
黄昏之星的中部:=(abs(ref(open,1)-ref(close,1)))/ref(close,1);
黄昏两日前倍比:=(abs(ref(open-close,2)))/ref(open,2)/黄昏之星的中部;
黄昏今日倍比:=(abs(close-open))/open/黄昏之星的中部;
黄昏:=ref(isup,2) and 黄昏两日前倍比>3 and 黄昏之星的中部<0.03 and ref(open,1)>ref(close,2) and isdown and 黄昏今日倍比>3 and close<ref(close,2);
explain(黄昏,' '+'黄昏之星'),colorff00;
explain(黄昏,'进入盘整期或者下跌期,具体视行情而定'),colorccff33;
explain(黄昏,'可靠性排序一');
十字星:=(abs(close-open))/close<0.004 and (abs(low-if(isup,open,close)))/close>0.004 and high>if(isup,close,open);
explain(十字星,' '+'十字星'),colorff6600;
explain(十字星,'转折信号,升势末期效果显著'),colorccff33;
explain(十字星,'其它位置需要配合第二日确认'),colorffcc33;
explain(ref(十字星,1) and isdown,' '+'黄昏十字星'),colorff00;
explain(ref(十字星,1) and isdown,'在上升势头中出现,后市走跌'),colorccff33;
explain(ref(十字星,1) and isdown,'在下跌势头中出现,跌势趋缓'),colorccff99;
explain(ref(十字星,1) and isdown,'在盘整中出现,需要配合周边态势'),colorccff99;
explain(ref(十字星,1) and isup,' '+'早晨十字星'),color3300ff;
explain(ref(十字星,1) and isup,'在下跌势头中出现早晨十字星,后市走高'),color6633cc;
explain(ref(十字星,1) and isup,'在上升势头中出现早晨十字星,涨势趋缓'),colorcccccc;
explain(十字星,'可靠性排序三');
垂死十字:=if(close>20,(abs(close-open))/close<=0.004 and (abs(if(isup,open,close)-low))/close<=0.002 and (high-if(isup,close,open))/close>0.004,close=open and high>open and low=close);
explain(垂死十字,' '+'垂死十字'),colorff00;
explain(垂死十字,'顶部看空,淡气逼人'),colorccff33;
射击之星:=abs(close-open)<abs(high-if(isup,close,open)) and (abs(close-open))/close>0.004 and (abs(if(isup,open,close)-low))/close<=0.004;
非标准射击之星:=(abs(close-open))/close>0.004 and (abs(if(isup,open,close)-low))/close<=0.004 and (abs(high-if(isup,close,open)))/close>0.004;
explain(射击之星,' '+'射击之星'),colorff6600;
explain(射击之星,'升、跌、盘,转折预警'),colorffcc33;
explain(非标准射击之星 and not(射击之星),' '+'非标准射击之星'),colorff6600;
explain(非标准射击之星 and not(射击之星),'非标准的射击之星,但具有参考意义'),colorffcc33;
explain(射击之星,'可靠性排序四');
锤头:=(abs(if(isup,close,open)-high))/close<0.004 and low<if(isup,open,close) and (if(isup,open,close)-low)/(if(isup,close,open)-if(isup,open,close))>=2;
非标准锤头:=(abs(if(isup,close,open)-high))/close>0.004 and (abs(if(isup,close,open)-high))/close<0.001 and low<if(isup,open,close);
explain(锤头,' '+'锤头'),colorff6600;
explain(锤头,'转折信号,上影越短下影越长可靠度越高'),colorffcc33;
explain(锤头,'低谷初阳或者高位初阴可靠度更高'),colorffcc33;
explain(非标准锤头 and not(锤头),' '+'非标准锤头'),colorff6600;
explain(非标准锤头 and not(锤头),'严格地说这不是一个锤头,但具有转折参考意义'),colorffcc33;
explain(锤头,'可靠性排序四');
穿头破脚:=isdown and ref(isup,1) and open>ref(close,1) and close<ref(open,1) or isup and ref(isdown,1) and open<ref(close,1) and close>ref(open,1);
穿两日:=ref(isup,2) and open>ref(close,2) and close<ref(open,2) or ref(isdown,2) and open<ref(close,2) and close>ref(open,2);
explain(穿头破脚,' '+'穿头破脚'),colorff6600;
explain(穿头破脚 and isup,'若低位,收阳,则反转上升'),color6633cc;
explain(穿头破脚 and isup,'若高位,收阳,盘整向下'),color6633cc;
explain(穿头破脚 and isdown,'若高位,收阴,则反转下降'),colorccff33;
explain(穿头破脚,'翌日确认的信号更加可靠'),colorffcc33;
explain(穿头破脚 and vol>ref(vol,1),'配合交易量放大,可靠度较高'),colorffcc33;
explain(穿头破脚 and 穿两日,'今日k线覆盖前两日,反转明显'),colorff6600;
explain(穿头破脚,'可靠性排序二');
乌云盖顶:=ref(isup,1) and isdown and ref(close/open>1.03,1) and close>ref(open,1) and close<ref(close,1) and open>ref(close,1) and open>ref(high,1) and (close-ref(open,1))/(ref(close,1)-close)<1.22;
非标准乌云盖顶:=ref(isup,1) and isdown and ref(close/open>1.03,1) and close>ref(open,1) and open>ref(close,1) and close-ref(open,1)<ref(close,1)-close;
explain(乌云盖顶,' '+'乌云盖顶'),colorff00;
explain(乌云盖顶,'行情见顶回落信号'),colorccff33;
explain(乌云盖顶,'影线越短越好并观察交易量是否存在夺路而逃的放大'),colorccff33;
explain(非标准乌云盖顶 and not(乌云盖顶),' '+'非标准乌云盖顶'),colorff00;
explain(非标准乌云盖顶 and not(乌云盖顶),'不是一个标准的乌云盖顶,若出现在顶部具有参考意义'),colorccff33;
explain(乌云盖顶,'可靠性排序六');
曙光初现:=ref(isdown,1) and isup and ref(close/open<0.97,1) and open<ref(close,1) and close<ref(open,1) and ref(open,1)-close<close-ref(close,1);
explain(曙光初现,' '+'曙光初现'),color3300ff;
explain(曙光初现,'行情见底升信号,影线越短越好'),color6633cc;
explain(曙光初现,'可靠性排序七');
身怀六甲:=ref(isup,1) and ref(close/open>1.03,1) and if(isup,close,open)<ref(close,1) and if(isup,open,close)>ref(open,1) or ref(isdown,1) and ref(close/open<0.97,1) and if(isup,close,open)<ref(open,1) and if(isup,open,close)>ref(close,1);
explain(身怀六甲,' '+'身怀六甲'),colorff6600;
explain(身怀六甲,'力度减弱,行情趋缓或者转势'),colorffcc33;
explain(身怀六甲 and isdown,'高位多为见顶转跌'),colorccff33;
explain(身怀六甲 and isdown,'低位多为缓跌慢升'),colorffcc33;
explain(身怀六甲 and isup,'低位多为见底转升'),color6633cc;
explain(身怀六甲 and isup,'高位多为冲高速降'),colorccff99;
explain(身怀六甲 and close=open,'十字胎趋缓转折'),colorff6600;
explain(身怀六甲,'可靠性排序五');
平顶:=ref(high,1)>ref(high,2) and (ref(high,1)=high or if(isup,close,open)=if(ref(isup,1),ref(close,1),ref(open,1))) and close<hhv(high,2);
平底:=ref(low,1)<ref(low,2) and ref(low,1)=low or if(isup,open,close)=if(ref(isup,1),ref(open,1),ref(close,1));

explain(平顶,' '+'平顶'),colorff6600;
explain(平顶,'转向形态,高位有效'),colorffcc33;
explain(平底,' '+'平底'),colorff6600;
explain(平底,'转向形态,低位有效'),colorffcc33;
explain(平底 or 平顶,'首先准确判断'),colorffcc33;
explain(平底 or 平顶,'是上升初、中、末期'),colorffcc33;
explain(平底 or 平顶,'还是下跌初、中、末期'),colorffcc33;
各种形态:=早晨 or 黄昏 or 十字星 or 射击之星 or 锤头 or 穿头破脚 or 乌云盖顶 or 曙光初现 or 身怀六甲 or 非标准乌云盖顶 or 非标准锤头;
explain(平底 and 各种形态,'平底组合其它形态,可信度高'),colorff6600;
explain(平顶 and 各种形态,'平顶组合其它形态,可信度高'),colorff6600;
好友反攻:=isup and ref(isdown,1) and close=ref(close,1);
explain(好友反攻,' '+'好友反攻'),color3300ff;
explain(好友反攻,'见底反攻形态'),color6633cc;
淡友反攻:=isdown and ref(isup,1) and close=ref(close,1);
explain(淡友反攻,' '+'淡友反攻'),colorff00;
explain(淡友反攻,'见顶反攻形态'),colorccff33;
三兵:=all(isup,3) and all(close>ref(close,1),2) and ref(isdown,3) and all(涨幅比>0.5,3);
大兵:=all(涨幅比>ref(涨幅比,1),2) and 三兵;
小兵:=all(涨幅比<ref(涨幅比,1),2) and 三兵;
explain((小兵 or 大兵),' '+'三兵形态'),colorff6600;
explain(大兵,'放大三阳,后市看好'),color6633cc;
explain(小兵,'缩小三阳,后市看淡,第三k线影线较长,蜡烛部分较短'),colorccff33;
两只乌鸦:=ref(close,1)>ref(if(isup,close,open),2) and open>ref(open,1) and close<ref(close,1) and all(isdown,2);
explain(两只乌鸦,' '+'两只乌鸦'),colorff00;
explain(两只乌鸦,'连续高开却上冲无力'),colorccff33;
explain(两只乌鸦,'特别注意在高位的信号'),colorccff33;
explain(两只乌鸦,'若在中期出现,需要对消息面和人气进行分析'),colorff6600;
explain(两只乌鸦,'若在低位出现说明人气开始回升只是力量还不够,可以在之后的适当价位介入'),colorffcc33;
三只乌鸦:=all(isdown,3) and all(close<ref(close,1),2) and all(open<ref(open,1) and open>ref(close,1),2);
explain(三只乌鸦,' '+'三只乌鸦'),colorff00;
explain(三只乌鸦,'行情严重向淡'),colorccff33;
塔形顶:=跌幅比>3 and barslast(涨幅比>3) and all(if(isup,close,open)>open and if(isup,close,open)>ref(close,barslast(涨幅比>3)),barslast(涨幅比>3));
explain(塔形顶,'塔形顶');
上升三部曲预备:=ref(涨幅比,barslast(isup))>any(跌幅比,barslast(isup)-1) and all(isdown,barslast(isup)-1) and ref(close,barslast(isup))>hhv(open,barslast(isup)-1) and ref(open,barslast(isup))<llv(close,barslast(isup)-1);
explain(上升三部曲预备,'上升三部曲前奏'),color3300ff;
explain(上升三部曲预备,'连续的下跌却一直没有跌破前一根阳线'),color6633cc;
explain(上升三部曲预备,'后期看涨可以介入'),color6633cc;
explain(上升三部曲预备,'建议等待阳线确认上升'),color6633cc;
看好:=早晨 or ref(十字星,1) and isup or 穿头破脚 and isup or 曙光初现 or 平底 and low=llv(low,4) or 好友反攻 or 大兵;
看空:=黄昏 or ref(十字星,1) and isdown or 垂死十字 or 穿头破脚 and isdown or 乌云盖顶 or 非标准乌云盖顶 or 平顶 or 淡友反攻 or 小兵;
中立:=射击之星 or 十字星 or 锤头 or 非标准锤头 or 非标准射击之星 or 身怀六甲;
交易量比较:=vol>ref(vol,2)*1.05;
蜡烛跳空:=if(isup,open,close)>ref(if(isup,close,open),1) or if(isup,close,open)<ref(if(isup,open,close),1);
跳空:=low>ref(high,1) or high<ref(low,1);
连续跳空:=ref(跳空,1) and 跳空;
explain(1,'【附加k线确认】'),colorffff;
explain(ref(看好,1) and isup,'收阳确认昨日信号'),color3300ff;
explain(ref(看空,1) and isdown,'收阴确认昨日信号'),colorff00;
explain(ref(看空,1) and isup,'收阳降低了昨日信号的向淡强度'),colorccff99;
explain(ref(看好,1) and isdown,'收阴降低了昨日信号的向好强度'),colorccff99;
explain((早晨 or 黄昏),'请自行分析买卖力道是否存在由被动性沽盘到主动性沽盘的转变'),colorffcc33;
explain(跳空 and (看好 or 看空 or 中立),'跳空星体信号,可靠度高,星体越小越可靠'),colorffcc33;
explain(连续跳空 and (ref(看好 or 看空 or 中立,1)),'再次跳空确认昨天的星体信号高度可靠'),colorffcc33;
explain(ref(锤头,1) and isdown and close<ref(low,1),'今日走跌是对昨日锤头见顶信号的确认'),colorccff33;
explain(ref(上升三部曲预备,1) and isup and 涨幅比>3,'阳线收复下跌空间拉升在即'),color3300ff;
explain(close>ref(high,1) and 品种强弱>=ma(品种强弱,5),'多头攻击k线\n做多以当日最低价为止损位'),colorccff99;
explain(close<ref(low,1) and high<ref(high,1) and 品种强弱<ma(品种强弱,8),'空头攻击k线\n多头注意止损'),colorccff33;
explain(high>ref(high,1) and low<ref(low,1) and close>open and 品种强弱>=ma(品种强弱,5),'变盘k线,\n多头设置当日最低点为止损位'),colorccff33;
explain(high>ref(high,1) and low<ref(low,1) and close<=open,'变盘k线,\n多头小心,设置当日最低点为止损位'),colorccff99;
//技术指标;
explain(c,'【技术指标】'),colorffff;
{kdj}
日k:="kdj.k#day"(20,5,5);
日d:="kdj.d#day"(20,5,5);
周k:="kdj.k#week"(9,3,3);
周d:="kdj.d#week"(9,3,3);
explainex(周k>0 and 周k<=20,'低位/周线k=',周k,2,0);
explainex(周k>0 and 周k>=80,'高位/周线k=',周k,2,0);
explainex(周k>0 and (周k>20 and 周k<50),'中低/周线k=',周k,2,0);
explainex(周k>0 and (周k>50 and 周k<80),'中高/周线k=',周k,2,0);
explainex(日k>0 and 日k<=20,'低位/日线k=',日k,2,0);
explainex(日k>0 and 日k>=80,'高位/日线k=',日k,2,0);
explainex(日k>0 and (日k>20 and 日k<50),'中低/日线k=',日k,2,0);
explainex(日k>0 and (日k>50 and 日k<80),'中高/日线k=',日k,2,0);
explain((cross(日k,日d)),'日k与日d今日金叉');
explain((cross(日d,日k)),'日k与日d今日死叉');
explain((cross(周k,周d)),'周k与周d今日金叉');
explain((cross(周d,周k)),'周k与周d今日死叉');

kdj_a2:=barslast(ref(cross("kdj.k","kdj.d"),1));
kdj_b2:=ref(c,kdj_a2+1)>c and ref("kdj.k", kdj_a2+1)<"kdj.k" and cross("kdj.k","kdj.d");
explain(kdj_b2>0,'kdj底背离');
kdj_c2:=barslast(ref(cross("kdj.d","kdj.k"),1));
kdj_d2:=ref(c,kdj_c2+1)<c and ref("kdj.k",kdj_c2+1)>"kdj.k" and cross("kdj.d","kdj.k");
explain(kdj_d2>0,'kdj顶背离');
explain("kdj.j"<20, 'kdj之j值小于20');
explain("kdj.j">80, 'kdj之j值大于80');
explain("kdj.k">"kdj.d",'kdj之k值大于d值');
explain("kdj.k"<"kdj.d",'kdj之k值小于d值');

{rsi}
rsi_a1:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));
rsi_b1:=ref(c,rsi_a1+1)>c and ref("rsi.rsi1",rsi_a1+1)<"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2");
explain ("rsi.rsi1"<20, 'rsi超卖');
explain (rsi_b1>0,'rsi底背离');
rsi_a2:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));
rsi_b2:=ref(c, rsi_a2+1)<c and ref("rsi.rsi1", rsi_a2+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1");
explain("rsi.rsi1">80, 'rsi超买');
explain(rsi_b2>0,'rsi顶背离');
explain("rsi.rsi1">"rsi.rsi2", 'rsi多头');
explain("rsi.rsi1"<"rsi.rsi2", 'rsi空头');
{macd}
macd_a1:=barslast(ref(cross("macd.diff","macd.dea"),1));
macd_b1:=ref(c, macd_a1+1)>c and ref("macd.diff", macd_a1+1)<"macd.diff" and cross("macd.diff","macd.dea");
explain(macd_b1>0,'macd底背离');
macd_a2:=barslast(ref(cross("macd.dea","macd.diff"),1));
macd_b2:=ref(close, macd_a2+1)<close and ref("macd.diff", macd_a2+1)>"macd.diff" and cross("macd.dea","macd.diff");
explain (macd_b2>0,'macd顶背离');
jc:=cross("macd.diff","macd.dea");
sc:=cross("macd.dea","macd.diff");
dcjc:=jc and "macd.dea">0;
explain((jc and "macd.dea">0),'macd在0轴上金叉');
explain((jc and "macd.dea"<0),'macd在0轴下金叉');
explain((sc and "macd.dea">0),'macd在0轴上死叉');
explain((sc and "macd.dea"<0),'macd在0轴下死叉');
explain(("macd.macd">0 and "macd.macd">ref("macd.macd",1)),'macd红柱增长');
explain(("macd.macd">0 and "macd.macd"<ref("macd.macd",1)),'macd红柱缩短');
explain(("macd.macd"<0 and abs("macd.macd")>ref(abs("macd.macd"),1)),'macd绿柱增长');
explain(("macd.macd"<0 and abs("macd.macd")<ref(abs("macd.macd"),1)),'macd绿柱缩短');
explain((count(dcjc,20)=2 and jc and "macd.dea">0),'0轴上2次金叉');
explain((count(dcjc,20)=3 and jc and "macd.dea">0),'0轴上3次金叉');
explain((count(dcjc,20)=4 and jc and "macd.dea">0),'0轴上4次金叉');

{dmi}
pdi:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),14);
mdi:=high-ref(high,1);
adx:=ref(low,1)-low;
adxr:=sum(if(mdi>0 and mdi>adx,mdi,0),14);
typ:=sum(if(adx>0 and adx>mdi,adx,0),14);
cci:=adxr*100/pdi;
wr:=typ*100/pdi;
mtm:=ma((abs(wr-cci))/(wr+cci)*100,6);
mtmma:=(mtm+ref(mtm,6))/2;
explain(cross(cci,wr),'pdi向上突破mdi,新多头进场,买进信号'),colorff;
explain(cross(wr,cci),'pdi向下跌破mdi,新空头进场,卖出信号'),colorff00;
explain(mtm>ref(mtm,1),'adx值持续高于前一日,行情将维持原趋势'),colorffff00;
explain(mtm<ref(mtm,1) and mtm<20,'adx值递减,降到20以下,且横向行进,市场盘整'),colorffff;
explain(mtm<ref(mtm,1) and ref(mtm,1)<ref(mtm,2) and ref(mtm,2)>ref(mtm,3) and ref(mtm,3)>ref(mtm,4),'adx值上升倾向转为下降,行情即将反转'),color99ff;
{boll}
psy:=close-ref(close,6);
布尔1:=ma(psy,6);
explain(cross(psy,布尔1) and 布尔1<-0.8,'mtm突破mtmma,买入信号'),colorff;
explain(cross(布尔1,psy) and 布尔1>0.8,'mtm跌破mtmma,卖出信号'),colorff00;
布尔2:=ref(close,1);
布尔3:=(sma(max(close-布尔2,0),6,1))/(sma(abs(close-布尔2),6,1))*100;
布尔4:=(sma(max(close-布尔2,0),12,1))/(sma(abs(close-布尔2),12,1))*100;
explain(布尔3>85,'6日rsi突破85超买,防回挡,卖出信号'),colorffff00;
explain(布尔3<15,'6日rsi跌破15超卖,可能反弹,买进信号'),colorffff;
布尔5:=(count(close>ref(close,1),12))/12*100;
布尔6:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4;
布尔7:=布尔6+3*std(布尔6,10);
xx:=布尔6-3*std(布尔6,10);
a001:=(布尔7-xx)/布尔7<0.03;
a002:=(布尔7-xx)/布尔7>0.18;
a003:=(ma(close,60)-ma(close,5))/ma(close,60)>0.15;
a004:=(ma(close,5)-ma(close,60))/ma(close,5)>0.15;
explain(a001,'多空布林收敛中,有变盘可能'),colorffff00;
explain(a003 and a002 and close>open,'布林上下乖离太大,有反弹可能'),colorffff;
explain(a004 and a002 and close<open,'布林上下乖离太大,有回落可能'),colorff00;

var01:=(2*close+high+low)/4;
var02:=wma(wma(wma(var01,4),4),4);
j:=(var02-ref(var02,1))/ref(var02,1)*100;
d:=ma(j,3);
k:=ma(j,1);
高级macd出现:=any(cross(k,d),3) and not(any(cross(d,k),3)) and 看好 or any(cross(d,k),3) and not(any(cross(k,d),3)) and 看空;
explain(高级macd出现,'【高级macd】'),colorff6600;
explain(高级macd出现,'中低参考');
var002:=ref(low,1);
var003:=(sma(abs(low-var002),13,1))/(sma(max(low-var002,0),13,1))*100;
var004:=ema(if(close*1.2,var003*13,var003/13),13);
var005:=llv(low,34);
var006:=hhv(var004,34);
var007:=if(llv(low,56),1,0);
var008:=(ema(if(low<=var005,(var004+var006*2)/2,0),3))/(618)*var007;
var009:=ema(close,5);
var0010:=(close-ma(close,34))/ma(close,34)*(-10);
xl1:=ma(low,2)*0.96;
xl2:=ma(low,26)*0.85;
抄底:=ref(xl1,1)<xl2 and ref(xl1,1)<xl1 and ref(xl1,1)<ref(xl1,2);
跟进:=var008>ref(var008,1);
explain((any(跟进 or 抄底,3)) and 看好,' '+'跟庄抄底'),colorff6600;
explainicon((any(跟进 or 抄底,3)) and 看好,3);
explain((any(跟进 or 抄底,3)) and 看好,'形态位置好配合信号介入成功率极高‖中高参考');
线1:=(ma(close,5)+ma(close,10)+ma(close,25))/3;
线2:=(ma(close,5)+ma(close,10)+ma(close,20)+ma(close,30)+ma(close,60)+ma(close,120))/6;
线3:=(ma(close,20)+ma(close,60)+ma(close,120))/3;
线4:=(ma(close,13)+ma(close,34)+ma(close,55))/3;
explain(cross(线1,线4),' '+'跟进买入‖高度参考'),colorff;
explainicon(cross(线1,线4),4);

varl1:=100-90*(hhv(high,21)-close)/(hhv(high,21)-llv(low,21));
varl2:=100-90*(hhv(high,21)-close)/(hhv(high,21)-llv(low,21));
varl3:=100-ma(100*(hhv(high,6)-close)/(hhv(high,6)-llv(low,6)),34);
varl3:=ref(hhv(h,3)/llv(l,3)<=1.06,1) and c=hhv(c,4) and vol=hhv(vol,4);
explain((any(varl3,1)),'升浪中盘整突破、配合信号介入成功率高');

lc:=ref(close,1);
品种强弱:=(sma(max(close-lc,0),13,1))/(sma(abs(close-lc),13,1))*100;
cc:="1a0001$close";
ff:="399001$close";
lc1:=ref(if(inblock('深圳a股')=1,ff,cc),1);
指数强弱:=(sma(max((if(inblock('深圳a股')=1,ff,cc))-lc1,0),13,1))/(sma(abs((if(inblock('深圳a股')=1,ff,cc))-lc1),13,1))*100;
强弱度:=品种强弱-指数强弱;
explain(close>0,'【品种强弱】'),colorffff;
explain(强弱度>0,'现阶段强于大盘指数'),color3300ff;
explain(强弱度=0,'现阶段与大盘指数同步'),colorffcc33;
explain(强弱度<0,'现阶段弱于大盘指数'),colorccff33;
explain(品种强弱>=50,'现阶段属于强势'),color6633cc;
explain(品种强弱<50,'现阶段属于弱势'),colorccff33;
explain(品种强弱>=ma(品种强弱,8),'指标处于多头趋势'),color6633cc;
explain(品种强弱<ma(品种强弱,8),'指标处于空头趋势'),colorccff33;

sat:=if((amount/close)/(hhv(amount,20)/hhv(close,20))*100>100,100,(amount/close)/(hhv(amount,20)/hhv(close,20))*100);
sjt5:=if(sat[sysparam(1)]>sat[sysparam(1)-1],'↑','↓');
drawtextex(1,1,20,100,'【量能饱和度】: '+numtostr(sat[sysparam(1)],0)+' '+sjt5),linethick5,colorwhite;

m1:=sum((ema((close + low)/(2),2))/(2.98),3),pointdot,colorffffff;
m2:=ema(m1,21),colorff00ff;
m30:=ma(close,30),linethick1,colorff0000;
vara1:=(2)*(ma((llv((close + low)/(2),8))*(1.1),13)) - ema((close + low)/(2),3) - ((close + low)/(2))*(0.1);
vara2:=if(((ema((close + low)/(2),3) - vara1)*(5) > 0),(pow((ema((close + low)/(2),3) - vara1)*(5),2))/(10),(((-1))*(pow((ema((close + low)/(2),3) - vara1)*(5),2)))/(10));
vara3:=if((vara2 > 0),vara2 - 0,(-1));
{drawtext(cross(vara3,0) and ((close + low)/(2) > ma((close + low)/(2),8)),h*(1.01),'绝杀'),linethick2,coloryellow;}
drawicon(cross(vara3,0) and ((close + low)/(2) > ma((close + low)/(2),8)),h*1.02,8);
{强弱分界:= ma(close,27);
上极限: 强弱分界+3*std(close,21),colorff0080,pointdot;
下极限:强弱分界-2.9*std(close,21),color4080ff,pointdot;}


操盘参考(自用公式 主图 源码 贴图)

  >>>使用本站搜索工具可以找到更多操盘参考自用主图公式 飞狐操盘公式指标 源码

指标公式下载地址

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

指标公式下载注意

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

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

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

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

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

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

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

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

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

    ☉ 本文操盘参考自用主图公式 飞狐操盘公式指标 源码仅供学习研究。

猜你喜欢

学了又学