修改指标

钟志勇 2024-11-16 19:45:26
最佳回答
你说的大智慧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
汇率兑换计算器

类似问答
  • 帮我修改指标,谢谢!!!
    • 2024-11-16 23:40:10
    • 提问者: 未知
    真心不懂你的意思。你是要在5分k线,10分k线,也看这个指标吗?如果是这样的,那是不需要动指标的啊。例如vol指标,在不同的周期下,显示的本来就是该周期的数值。你这个指标同理。
  • 通达信主图指标公式修改:
    • 2024-11-16 08:10:59
    • 提问者: 未知
    我看了看,原公式设置是可以互不遮盖的,还需要什么效果?
  • 大智慧指标修改
    • 2024-11-16 05:33:39
    • 提问者: 未知
    {短线小垃圾} stickline(c>=o ,o ,c ,5 ,1 ),colorred; stickline(o> c ,c ,o ,5 ,0 ),colorffffcc; stickline(c>=o ,c ,h ,0.5 ,0 ),colorred; stickline(c>=o ,o ,l ,0.5 ,0 ),colorred; stickline(o> c...
  • macd指标的参数能不能修改
    • 2024-11-16 03:47:48
    • 提问者: 未知
    把鼠标定位到macd框中,右键选择“修改指标参数”,在弹窗中你可以进行修改,也可以恢复默认。
  • 修改指标
    • 2024-11-16 15:42:16
    • 提问者: 未知
    diff0:=(ema(dclose,12)-ema(dclose,26))*100;因为公式中含有,不定周期收盘价(这个函数为未来函数),当然就会有第二天修正以后在前一日出现的信号,你选股中的“黑马”条件涉及这个未来函数,如果想修正,只有把 dclose 前面的"d"去掉,变成收盘价“close”或直接写“c”只不过这样一来,你会觉得...
  • 顺势指标的参数的修改
    • 2024-11-16 05:11:06
    • 提问者: 未知
    从cci指标的计算方法可以看出cci指标也是以时间为参数,构成参数的的时间周期可以是日、月或周、年、分钟等,而这些时间周期又根据股票上市时间的长短和投资者的取舍,理论上可以采取任意的时间长度,在大部分主流的股市分析软件(如钱龙、分析家)上,各种时间周期的变动范围又大多数都被...
  • 求高手将技术指标修改为选股指标,谢谢。
    • 2024-11-16 09:31:16
    • 提问者: 未知
    a1:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1);:=ema(a1,5);a2:=(黑马线-ref(黑马线,1))/ref(黑马线,1)*100;xg:a2<-10 and a2>ref(a2,1);这样似乎效果更佳。红柱倒见...
  • 怎样修改周线指标
    • 2024-11-16 22:07:32
    • 提问者: 未知
    f8切到周线,右键点你要修改的线,然后调整指标参数,改了即可通达信这种,可以去公式管理器里修改
  • 关于文华财经指标修改
    • 2024-11-16 07:29:55
    • 提问者: 未知
    你可以到文华论坛提问
  • 如何修改大智慧指标颜色
    • 2024-11-16 12:38:29
    • 提问者: 未知
    左击任一均线,就可进行修改的
汇率兑换计算器

热门推荐
热门问答
最新问答
推荐问答
新手帮助
常见问题
房贷计算器-九子财经 | 备案号: 桂ICP备19010581号-1 商务联系 企鹅:2790-680461

特别声明:本网为公益网站,人人都可发布,所有内容为会员自行上传发布",本站不承担任何法律责任,如内容有该作者著作权或违规内容,请联系我们清空删除。