你说的大智慧1是指大智慧5.5版本吧.你说的范围太广,给你几个例子看一下吧. 修改大智慧主图指标 input: n(5,0,999,1),n1(10,0,999,1),n2(20,0,999,1),n3(30,0,999,1); 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); **x:=(((((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(d**pstatus=1)+1; t := barslast(d**pstatus=1)+1; hhg := hhv(h, t); ddg := llv(l, t); {hk := ll-hh; g12 := ll-hk*1.55; } if barstatus=2 and c<200 and ((cross(**x,1) and (v1 >= v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股的量能理想,有明显走强迹象,可以考虑**进场参与,仓位在2/3左右。 '),color0000ff,linethick3; if barstatus=2 and c<200 and ((cross(**x,1) and (v1 < v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股虽然走势趋强,但量能还显不足,可以考虑短线进场,仓位在1/2左右。 '),color0000ff,linethick3; if barstatus=2 and c<200 and ((cross(**x,1) and (v1 > v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股量价配合良好,但相对其它股票并没有明显走强,可以考虑短线进场,仓位1/2左右。 '),color0000ff,linethick3; if barstatus=2 and c<200 and ((cross(**x,1) and (v1 <= v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股形态尚可,但量能不足,股票也未完全走强,可以短线参与,仓位1/3左右。 '),color0000ff,linethick3; if barstatus=2 and c<200 and ((cross(1,**x) and (v1 >= v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股形态变坏,但走势相对其它股票尚可,重仓者减持大半,**者可以观望。 '),color00ff00,linethick3; if barstatus=2 and c<200 and ((cross(1,**x) and (v1 < v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股随大盘一起下跌,程明显缩量走势,考虑到大盘风险,减持或**。 '),color00ff00,linethick3; if barstatus=2 and c<200 and ((cross(1,**x) and (v1 >= v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股放量下跌,走势明显偏弱,离场观望。 '),color00ff00,linethick3; if barstatus=2 and c<200 and ((cross(1,**x) and (v1 < v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股缩量下跌,走势偏弱,离场观望。 '),color00ff00,linethick3; if barstatus=2 and c<200 and ((((**x >= 1) and (ref(**x,1) > 0)) and (v1 >= v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股形态良好,强势明显,量能充足,可以继续持有。 '),color00ffff,linethick3; if barstatus=2 and c<200 and ((((**x >= 1) and (ref(**x,1) > 0)) and (v1 < v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险。 '),color00ffff,linethick3; if barstatus=2 and c<200 and ((((**x >= 1) and (ref(**x,1) > 0)) and (v1 >= v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。 '),color00ffff,linethick3; if barstatus=2 and c<200 and ((((**x >= 1) and (ref(**x,1) > 0)) and (v1 < v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股走势趋弱,量能不足,减持大部分**。 '),color00ffff,linethick3; if barstatus=2 and c<200 and ((((**x < 1) and (ref(**x,1) < 0)) and (v1 >= v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股形态不佳,注意成交量的变化,但目前不适合参与。 '),color00ff00,linethick3; if barstatus=2 and c<200 and ((((**x < 1) and (ref(**x,1) < 0)) and (v1 < v2)) and (dslx >= dslx1)) then drawtextabs(12,170,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。 '),color00ff00,linethick3; if barstatus=2 and c<200 and ((((**x < 1) and (ref(**x,1) < 0)) and (v1 >= v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股有走强迹象,但量能不足,趋势不明,不适合操作。 '),color00ff00,linethick3; if barstatus=2 and c<200 and ((((**x < 1) and (ref(**x,1) < 0)) and (v1 < v2)) and (dslx < dslx1)) then drawtextabs(12,170,'该股走势太弱,没有参与价值。 '),color00ff00,linethick3; if barstatus=2 and c>200 and (cross(**x,1) and (v1 >= v2)) then drawtextabs(12,170,'大盘量能理想,有明显走强迹象,可以考虑**进场参与,仓位在2/3左右, '),color0000ff,linethick3; if barstatus=2 and c>200 and (cross(**x,1) and (v1 >= v2)) then drawtextabs(12,170,'如前期经过一轮下跌,此时为最佳买点,但如果前期有过一段涨幅则介入需谨慎。 '),color0000ff,linethick3; if barstatus=2 and c>200 and (cross(**x,1) and (v1 < v2)) then drawtextabs(12,170,'大盘虽然走势趋强,但量能还显不足,如果前期经过一轮下跌, '),color0000ff,linethick3; if barstatus=2 and c>200 and (cross(**x,1) and (v1 < v2)) then drawtextabs(12,170,'可以考虑短线进场,仓位在1/2左右,一旦量能放大可以加仓买入。 '),color0000ff,linethick3; if barstatus=2 and c>200 and (cross(1,**x) and (v1 >= v2)) then drawtextabs(12,170,'大盘形态走坏,重仓者可以减去大部分仓位。 '),color00ff00,linethick3; if barstatus=2 and c>200 and (cross(1,**x) and (v1 < v2)) then drawtextabs(12,170,'大盘缩量调整,注意风险,短线**观望。 '),color00ff00,linethick3; if barstatus=2 and c>200 and (((**x >= 1) and (ref(**x,1) > 0)) and (v1 >= v2)) then drawtextabs(12,170,'大盘走势良好,量能理想,可以继续持有强势股。 '),color00ffff,linethick3; if barstatus=2 and c>200 and (((**x >= 1) and (ref(**x,1) > 0)) and (v1 < v2)) then drawtextabs(12,170,'大盘形态良好,但量能稍显不足,随时准备减仓。 '),color00ffff,linethick3; if barstatus=2 and c>200 and (((**x < 1) and (ref(**x,1) < 0)) and (v1 >= v2)) then drawtextabs(12,170,'大盘趋势不明,注意成交量变化,目前不适宜进场。 '),color00ff00,linethick3; if barstatus=2 and c>200 and (((**x < 1) and (ref(**x,1) < 0)) and (v1 < v2)) then drawtextabs(12,170,'大盘趋势向下,量能萎缩,不适合进场。 '),color00ff00,linethick3; {drawgbklast(c>0,strip(rgb(90,90,90),rgb(0,0,0),0)); stickline(c>=o,c,o,8,0),color0000aa; stickline(c>=o,c,o,6,0),color0000bb ; stickline(c>=o,c,o,4,0),color0000cc ; stickline(c>=o,c,o,2,0),color0000ee; stickline(c>=o,h,l,0,0),color0000ff; stickline(c<=o,c,o,8,0),color7b7b00; stickline(c<=o,c,o,6,0),color909000; stickline(c<=o,c,o,4,0),colora8a800; stickline(c<=o,c,o,2,0),colorcece00; stickline(c<=o,h,l,0,0),colorffff00;} nn:= d**pstatus=2; mb1:ma(c,n),colorffffff,linethick1,dotline; mb2:ma(c,n1),color00ffff,linethick1,dotline; mb3:ma(c,n2),color208fff,linethick1,dotline; mb4:ma(c,n3),colorff00ff,linethick0,dotline; var3:=(high < ref(low,1)); var4:=(low > ref(high,1)); drawtext(var3,(high ),'↓qk'),align0,valign2,colorffffff,linethick3; drawtext(var4,(low ),'↑qk'),align0,valign0,color00ffff,linethick3; drawtext(nn,mb1,''+numtostrn(mb1,2)+''),align0,colorffffff,linethick1; drawtext(nn,mb2,''+numtostrn(mb2,2)+''),align0,color00ffff,linethick1; drawtext(nn,mb3,''+numtostrn(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,dotline; 二低:ref(l,barslast(xx)),colorff66ff,linethick1,dotline; 一高:ref(h,barslast(vv2)),color99ff66,linethick1,dotline; 二高:ref(h,barslast(xx2)),colorff66ff,linethick1,dotline; {----} xz:=dyna**(7);{取得最新动态行情: 最新} sz:=xz-一低; zz:=sz/一低*100; gg:=一高-一低; {v:=gg/一低*100}; {v:=gg/一高*100}; k:=一高-二低; w:=k/二低*100; kg:=二高-二低; wg:=kg/二高*100; drawtextabs(52,110,' 前一低到 当前幅度 :('+numtostrn(zz,2)+'%)'+'涨('+numtostrn(sz,2)+')'+''),colorffffff; drawtextabs(52,125,' 前一高到 前一低 :(-'+numtostrn(v,2)+'%)'+'跌('+numtostrn(gg,2)+')'+''),color00ff00; drawtextabs(52,140,' 前二低到 前一高 :('+numtostrn(w,2)+'%)'+'涨('+numtostrn(k,2)+')'+''),colorfebaf5; drawtextabs(52,155,' 前二高到 前二低 :(-'+numtostrn(wg,2)+'%)'+'跌('+numtostrn(kg,2)+')'+''),colorfebaf5; drawtext(nn,一低,'前一低: '+numtostrn(一低,2)+''),align2,color00dd00,valign2; drawtext(nn,一高,'前一高: '+numtostrn(一高,2)+''),align2,color00dd00,valign2; drawtext(nn,二低,'前二低: '+numtostrn(二低,2)+''),align2,colordd00ff,linethick1; drawtext(nn,二高,'前二高: '+numtostrn(二高,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); drawtextabs(58,80,'[昨/今日 止损位 :'+numtostrn(止损位b,2)+'/'+numtostrn(止损位1,2)+'**]'),linethick1,color00ff00; drawtextabs(58,95,'[昨/今日 阻力位 :'+numtostrn(阻力位2,2)+'/'+numtostrn(阻力位1,2)+']'),linethick1,colorfebaf5; pt := ref(high,1)-ref(low,1); 重心:=(high + low + close)/3; 压力ⅰ:= 2*重心-low; 压力ⅱ:= 重心 + pt; 支撑ⅰ:= 2*重心-high; 支撑ⅱ:= 重心 - pt; drawtextabs(75,8,' 《顺势操作》'),colorffff00; drawtextabs(150,8,' 重心:'+重心),color208fff; drawtextabs(75,27,' 支 撑'),colorffffff; drawtextabs(75,44,' '+支撑ⅰ),colorffffff; drawtextabs(75,62,' '+支撑ⅱ),colorffffff; drawtextabs(120,27,' 压 力'),color00ff00; drawtextabs(120,44,' '+压力ⅰ),color00ff00; drawtextabs(120,62,' '+压力ⅱ),color00ff00; drawtextabs(75,5,'│'),color00ffff; drawtextabs(75,17,'│'),color00ffff; drawtextabs(75,29,'│'),color00ffff; drawtextabs(75,41,'│'),color00ffff; drawtextabs(75,53,'│'),color00ffff; drawtextabs(75,65,'│'),color00ffff; drawtextabs(218,5,'│'),color00ffff; drawtextabs(218,17,'│'),color00ffff; drawtextabs(218,29,'│'),color00ffff; drawtextabs(218,41,'│'),color00ffff; drawtextabs(218,53,'│'),color00ffff; drawtextabs(218,65,'│'),color00ffff; drawtextabs(146,25,'│'),color00ffff; drawtextabs(146,29,'│'),color00ffff; drawtextabs(146,41,'│'),color00ffff; drawtextabs(146,53,'│'),color00ffff; drawtextabs(146,65,'│'),color00ffff; drawtextabs(80,0,'————————————'),color00ffff; drawtextabs(80,20,'————————————'),color00ffff; drawtextabs(80,37,'————————————'),color00ffff; drawtextabs(80,54,'————————————'),color00ffff; drawtextabs(80,71,'————————————'),color00ffff; 其他范例: 20210311