风雨如晦 发表于 2024-2-10 09:05:01

精选通达信主图指标之爬楼梯(源码分享)

<p data-first-child >通达信主图爬楼梯(附源码)</p><p >周5:MA.MA1#WEEK(5),COLORYELLOW,LINETHICK1;</p><p >月5:MA.MA1#MONTH(5),COLORB87333,LINETHICK1;</p><p >DRAWBAND(周5,RGB(94,38,18),月5,RGB(56,94,15));</p><p >Z:=DATETODAY(DATE)-REF(DATETODAY(DATE),1)!=WEEKDAY-REF(WEEKDAY,1);</p><p >前周5:=REF(周5,BARSLAST(Z)+1);</p><p >IF(周5<前周5,周5,DRAWNULL),COLORMAGENTA,LINETHICK1;</p><p >日5:MA.MA1#DAY(5),COLORWHITE,LINETHICK1;</p><p >EXP5:MA(CLOSE,5),LINETHICK2,COLORWHITE;</p><p >IF(EXP5>=REF(EXP5,1),EXP5,DRAWNULL),COLORRED,LINETHICK2;</p><p >DRAWKLINE(H,O,L,C);</p><p >{MK线}</p><p >N:=3.2;</p><p >↑:=TROUGHBARS(3,N,1),COLOR0000FF,NODRAW;</p><p >↓:=PEAKBARS(3,N,1),COLOR00FF00,NODRAW;</p><p >低:IF(↑=0,C,IF(↓<↑,TROUGH(3,N,1),REF(TROUGH(3,N,1),1))),COLOR00FFFF,NODRAW;</p><p >高:IF(↓=0,C,IF(↑<↓,PEAK(3,N,1),REF(PEAK(3,N,1),1))),COLOR00FF00,NODRAW;</p><p >{以下设置主图显示方式}</p><p >STICKLINE(BETWEEN(↑,0,3),低,低,1,1),COLORYELLOW;</p><p >STICKLINE(BETWEEN(↓,0,3),高,高,1,1),COLORGREEN;</p><p >{时间周期}</p><p >HH:=HHV(H,50);</p><p >LL:=LLV(L,50);</p><p >上涨:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW;</p><p >下跌:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW;</p><p >DRAWTEXT(下跌=0,HH*1.001,'HH'),COLORGREEN;</p><p >DRAWTEXT(上涨=0,LL*0.999,'LL'),COLORRED;</p><p >DRAWTEXT(上涨=7,L*0.995,'8'),COLOR00FFFF;</p><p >STICKLINE(上涨=7,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(上涨=12,L*0.995,'13'),COLOR00FFFF;</p><p >STICKLINE(上涨=12,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(上涨=16,L*0.995,'17'),COLOR00FFFF;</p><p >STICKLINE(上涨=16,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(上涨=22,L*0.995,'23'),COLOR00FFFF;</p><p >STICKLINE(上涨=22,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(上涨=33,L*0.995,'34'),COLOR00FFFF;</p><p >STICKLINE(上涨=33,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(上涨=54,L*0.995,'55'),COLOR00FFFF;</p><p >STICKLINE(上涨=54,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(上涨=88,L*0.995,'89'),COLOR00FFFF;</p><p >STICKLINE(上涨=88,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(上涨=119,L*0.995,'120'),COLOR00FFFF;</p><p >STICKLINE(上涨=119,L*0.995,L*0.998,1,1),COLORYELLOW;</p><p >DRAWTEXT(下跌=12,H*1.005,'-13'),COLOR00FF00;</p><p >STICKLINE(下跌=12,H*1.001,H*1.003,1,1),COLORGREEN;</p><p >DRAWTEXT(下跌=16,H*1.005,'-17'),COLOR00FF00;</p><p >STICKLINE(下跌=16,H*1.001,H*1.003,1,1),COLORGREEN;</p><p >DRAWTEXT(下跌=22,H*1.005,'-23'),COLOR00FF00;</p><p >STICKLINE(下跌=22,H*1.001,H*1.003,1,1),COLORGREEN;</p><p >DRAWTEXT(下跌=33,H*1.005,'-34'),COLOR00FF00;</p><p >STICKLINE(下跌=33,H*1.001,H*1.003,1,1),COLORGREEN;</p><p >DRAWTEXT(下跌=54,H*1.005,'-55'),COLOR00FF00;</p><p >STICKLINE(下跌=54,H*1.001,H*1.003,1,1),COLORGREEN;</p><p >DRAWTEXT(下跌=88,H*1.005,'-89'),COLOR00F00;</p><p >STICKLINE(下跌=88,H*1.001,H*1.003,1,1),COORGREEN;</p><p class="ztext-empty-paragraph"><br/></p><figcaption>注:平台目前更新的有关公式源码,手机电脑均可使用,部分提示编码错误的,是为了避免业内叨唠,大家看好有意,可以及时联系我们这边,(会有收费,主99副1)帮忙处理,在线即回!感谢后续多多,关注支持!</figcaption><p></p>
页: [1]
查看完整版本: 精选通达信主图指标之爬楼梯(源码分享)