input:n(5),n1(10),n2(20),n3(30);
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);
t := barslast(barstatus=1)+1;
hhg := hhv(h, t);
ddg := llv(l, t);
{hk := ll-hh; g12 := ll-hk*1.55; }
a001:=barstatus=2 and c<200 and ((cross(avx,1) and (v1 >= v2)) and (dslx >= dslx1));
drawtextex(a001,0,12,170,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。 '),color0000ff,linethick3;
a002:=barstatus=2 and c<200 and ((cross(avx,1) and (v1 < v2)) and (dslx >= dslx1));
drawtextex(a002,0,12,170,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。 '),color0000ff,linethick3;
a003:=barstatus=2 and c<200 and ((cross(avx,1) and (v1 > v2)) and (dslx < dslx1));
drawtextex(a003,0,12,170,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。 '),color0000ff,linethick3;
a004:=barstatus=2 and c<200 and ((cross(avx,1) and (v1 <= v2)) and (dslx < dslx1));
drawtextex(a004,0,12,170,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。 '),color0000ff,linethick3;
a005:=barstatus=2 and c<200 and ((cross(1,avx) and (v1 >= v2)) and (dslx >= dslx1));
drawtextex(a005,0,12,170,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,清仓者可以观望。 '),color00ff00,linethick3;
a006:=barstatus=2 and c<200 and ((cross(1,avx) and (v1 < v2)) and (dslx >= dslx1));
drawtextex(a006,0,12,170,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或清仓。 '),color00ff00,linethick3;
a007:=barstatus=2 and c<200 and ((cross(1,avx) and (v1 >= v2)) and (dslx < dslx1));
drawtextex(a007,0,12,170,'该股放量下跌,走势明显偏弱,离场观望。 '),color00ff00,linethick3;
a0071:=barstatus=2 and c<200 and ((cross(1,avx) and (v1 < v2)) and (dslx < dslx1));
drawtextex(a0071,0,12,170,'该股缩量下跌,走势偏弱,离场观望。 '),color00ff00,linethick3;
a008:=barstatus=2 and c<200 and ((((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2)) and (dslx >= dslx1));
drawtextex(a008,0,12,170,'该股形态良好,强势明显,量能充足,可以继续持有。 '),color00ffff,linethick3;
a009:=barstatus=2 and c<200 and ((((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2)) and (dslx >= dslx1));
drawtextex(a009,0,12,170,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。 '),color00ffff,linethick3;
a010:=barstatus=2 and c<200 and ((((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2)) and (dslx < dslx1));
drawtextex(a010,0,12,170,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。 '),color00ffff,linethick3;
a011:=barstatus=2 and c<200 and ((((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2)) and (dslx < dslx1));
drawtextex(a011,0,12,170,'该股走势趋弱,量能不足,减持大部分筹码。 '),color00ffff,linethick3;
a012:=barstatus=2 and c<200 and ((((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2)) and (dslx >= dslx1));
drawtextex(a012,0,12,170,'该股形态不佳,注意成交量的变化,但目前不适合参与。 '),color00ff00,linethick3;
a013:=barstatus=2 and c<200 and ((((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2)) and (dslx >= dslx1));
drawtextex(a013,0,12,170,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。 '),color00ff00,linethick3;
a014:=barstatus=2 and c<200 and ((((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2)) and (dslx < dslx1));
drawtextex(a014,0,12,170,'该股有走强迹象,但量能不足,趋势不明,不适合操作。 '),color00ff00,linethick3;
a015:=barstatus=2 and c<200 and ((((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2)) and (dslx < dslx1));
drawtextex(a015,0,12,170,'该股走势太弱,没有参与价值。 '),color00ff00,linethick3;
a016:=barstatus=2 and c>200 and (cross(avx,1) and (v1 >= v2));
drawtextex(a016,0,12,170,'大盘量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右, '),color0000ff,linethick3;
a017:=barstatus=2 and c>200 and (cross(avx,1) and (v1 >= v2));
drawtextex(a017,0,12,170,'如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。 '),color0000ff,linethick3;
a018:=barstatus=2 and c>200 and (cross(avx,1) and (v1 < v2));
drawtextex(a018,0,12,170,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, '),color0000ff,linethick3;
a019:=barstatus=2 and c>200 and (cross(avx,1) and (v1 < v2));
drawtextex(a019,0,12,170,'可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。 '),color0000ff,linethick3;
a020:=barstatus=2 and c>200 and (cross(1,avx) and (v1 >= v2));
drawtextex(a020,0,12,170,'大盘形态走坏,重仓者可以减去大部分仓位。 '),color00ff00,linethick3;
a021:=barstatus=2 and c>200 and (cross(1,avx) and (v1 < v2));
drawtextex(a021,0,12,170,'大盘缩量调整,注意风险,短线清仓观望。 '),color00ff00,linethick3;
a022:=barstatus=2 and c>200 and (((avx >= 1) and (ref(avx,1) > 0)) and (v1 >= v2));
drawtextex(a022,0,12,170,'大盘走势良好,量能理想,可以继续持有强势股。 '),color00ffff,linethick3;
a023:=barstatus=2 and c>200 and (((avx >= 1) and (ref(avx,1) > 0)) and (v1 < v2));
drawtextex(a023,0,12,170,'大盘形态良好,但量能稍显不足,随时准备减仓。 '),color00ffff,linethick3;
a024:=barstatus=2 and c>200 and (((avx < 1) and (ref(avx,1) < 0)) and (v1 >= v2));
drawtextex(a024,0,12,170,'大盘趋势不明,注意成交量变化,目前不适宜进场。 '),color00ff00,linethick3;
a025:=barstatus=2 and c>200 and (((avx < 1) and (ref(avx,1) < 0)) and (v1 < v2));
drawtextex(a025,0,12,170,'大盘趋势向下,量能萎缩,不适合进场。 '),color00ff00,linethick3;
nn:= barstatus=2;
mb1:ma(c,n),colorffffff,linethick1,linedot;
mb2:ma(c,n1),color00ffff,linethick1,linedot;
mb3:ma(c,n2),color208fff,linethick1,linedot;
mb4:ma(c,n3),colorff00ff,linethick0,linedot;
var3:=(high < ref(low,1));
var4:=(low > ref(high,1));
drawtext(var3,(high ),'↓小政锁定'),align1,colorffffff,linethick3;
drawtext(var4,(low ),'↑小政霸占'),align1,color00ffff,linethick3;
drawtext(nn,mb1,''+numtostr(mb1,2)+''),align0,colorffffff,linethick1;
drawtext(nn,mb2,''+numtostr(mb2,2)+''),align0,color00ffff,linethick1;
drawtext(nn,mb3,''+numtostr(mb3,2)+''),align0,color208fff,linethick1;
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 or barscount(close)=1;
l1:=(d2 and not(d1 and e1<e2)); h2:=d1 and not(d2 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 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);
uu:=backset(barstatus,barslast(ld)+1);
vv:=uu>ref(uu,1);
ww:=backset(vv,ref(barslast(ld),1)+2);
xx:=ww>ref(ww,1);
uu2:=backset(barstatus,barslast(hd)+1);
vv2:=uu2>ref(uu2,1);
ww2:=backset(vv2,ref(barslast(hd),1)+2);
xx2:=ww2>ref(ww2,1);
一低:ref(l,barslast(vv)),color99ff66,linethick1,linedot;
二低:ref(l,barslast(xx)),colorff66ff,linethick1,linedot;
一高:ref(h,barslast(vv2)),color99ff66,linethick1,linedot;
二高:ref(h,barslast(xx2)),colorff66ff,linethick1,linedot;
{----}
xz:=dynainfo(7);{取得最新动态行情: 最新}
sz:=xz-一低;
zz:=sz/一低*100;
gg:=一高-一低;
{v:=gg/一低*100};
{v:=gg/一高*100};
k:=一高-二低;
w:=k/二低*100;
kg:=二高-二低;
wg:=kg/二高*100;
drawtextex(c,0,52,110,' 前一低到 当前幅度 :('+numtostr(zz,2)+'%)'+'涨('+numtostr(sz,2)+')'+''),colorffffff;
drawtextex(c,0,52,125,' 前一高到 前一低 :(-'+numtostr(v,2)+'%)'+'跌('+numtostr(gg,2)+')'+''),color00ff00;
drawtextex(c,0,52,140,' 前二低到 前一高 :('+numtostr(w,2)+'%)'+'涨('+numtostr(k,2)+')'+''),colorfebaf5;
drawtextex(c,0,52,155,' 前二高到 前二低 :(-'+numtostr(wg,2)+'%)'+'跌('+numtostr(kg,2)+')'+''),colorfebaf5;
drawtext(nn,一低,'前一低: '+numtostr(一低,2)+''),align2,color00dd00;
drawtext(nn,一高,'前一高: '+numtostr(一高,2)+''),align2,color00dd00;
drawtext(nn,二低,'前二低: '+numtostr(二低,2)+''),align2,colordd00ff,linethick1;
drawtext(nn,二高,'前二高: '+numtostr(二高,2)+''),align2,colordd00ff,linethick1;
mc:=ref(c,1);
阻力位:=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),止损位);
阻力位a:=if((mc > 200),(mc * 1.01),(mc * 1.07));
阻力位2:=if((mc < 10),(mc * 1.05),阻力位a);
止损位b:=if((mc > 200),(mc * 0.99),(mc * 0.93));
止损位2:=if((mc < 10),(mc * 0.95),止损位b);
drawtextex(c,0,58,80,'[昨/今日 止损位 :'+numtostr(止损位b,2)+'/'+numtostr(止损位1,2)+'**]'),linethick1,color00ff00;
drawtextex(c,0,58,95,'[昨/今日 阻力位 :'+numtostr(阻力位2,2)+'/'+numtostr(阻力位1,2)+']'),linethick1,colorfebaf5;
pt := ref(high,1)-ref(low,1);
重心:=(high + low + close)/3;
压力ⅰ:= 2*重心-low;
压力ⅱ:= 重心 + pt;
支撑ⅰ:= 2*重心-high;
支撑ⅱ:= 重心 - pt;
drawtextex(c,0,75,8,' 《小政操作》'),colorffff00;
drawtextex(c,0,150,8,' 重心:'+numtostr(重心,2)),color208fff;
drawtextex(c,0,75,27,' 支 撑'),colorffffff;
drawtextex(c,0,75,44,' '+numtostr(支撑ⅰ,2)),colorffffff;
drawtextex(c,0,75,62,' '+numtostr(支撑ⅱ,2)),colorffffff;
drawtextex(c,0,120,27,' 压 力'),color00ff00;
drawtextex(c,0,120,44,' '+numtostr(压力ⅰ,2)),color00ff00;
drawtextex(c,0,120,62,' '+numtostr(压力ⅱ,2)),color00ff00;
drawtextex(c,0,75,5,'│'),color00ffff;
drawtextex(c,0,75,17,'│'),color00ffff;
drawtextex(c,0,75,29,'│'),color00ffff;
drawtextex(c,0,75,41,'│'),color00ffff;
drawtextex(c,0,75,53,'│'),color00ffff;
drawtextex(c,0,75,65,'│'),color00ffff;
drawtextex(c,0,218,5,'│'),color00ffff;
drawtextex(c,0,218,17,'│'),color00ffff;
drawtextex(c,0,218,29,'│'),color00ffff;
drawtextex(c,0,218,41,'│'),color00ffff;
drawtextex(c,0,218,53,'│'),color00ffff;
drawtextex(c,0,218,65,'│'),color00ffff;
drawtextex(c,0,146,25,'│'),color00ffff;
drawtextex(c,0,146,29,'│'),color00ffff;
drawtextex(c,0,146,41,'│'),color00ffff;
drawtextex(c,0,146,53,'│'),color00ffff;
drawtextex(c,0,146,65,'│'),color00ffff;
drawtextex(c,0,80,0,'────────────'),color00ffff;
drawtextex(c,0,80,20,'────────────'),color00ffff;
drawtextex(c,0,80,37,'────────────'),color00ffff;
drawtextex(c,0,80,54,'────────────'),color00ffff;
drawtextex(c,0,80,71,'────────────'),color00ffff;
上一指标公式:不买你傻选股公式 飞狐公式选股指标 源码
下一指标公式:落子卖点副图收费已经解密公式 飞狐落子卖点指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自用组合优化的主图公式 飞狐自用指标 源码仅供学习研究。