资源描述:
《【股票指标公式下载】-【大智慧】数字均线(量能饱和度、明日阻力、下档线)》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、【大智慧】数字均线(量能饱和度、明日阻力、下档线)-指标公式源码DRAWGBKLAST(DATE>900101,STRIP(RGB(15,125,125),RGB(0,50,0),0));DRAWTEXTABS(10,8,STKLABEL+''+STKNAME+''+BKNAME),COLOR00FFFF;N:=20;SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));量能饱和度:=IF(SAT>1,1,SAT)*100;DRAWTEXTABS(20,21,'量能饱和度:'+N
2、UMTOSTRN(量能饱和度,2)+'%'),COLORred;DRAWRECTREL(1,83,18,382,RGB(30,30,30)),COLORWHITE;AAA:=量能饱和度<=10;BBB:=量能饱和度>10AND量能饱和度<=20;CCC:=量能饱和度>20AND量能饱和度<=30;DDD:=量能饱和度>30AND量能饱和度<=50;EEE:=量能饱和度>50AND量能饱和度<=70;FFF:=量能饱和度>70AND量能饱和度<=80;GGG:=量能饱和度>80AND量能饱和度<=90;HHH
3、:=量能饱和度>90;IFBARSTATUS=2ANDAAATHENBEGINDRAWRECTREL(3,350,16,380,RGB(255,0,0));ENDELSEIFBARSTATUS=2ANDBBBTHENBEGINDRAWRECTREL(3,320,16,380,RGB(255,0,0));ENDELSEIFBARSTATUS=2ANDCCCTHENBEGINDRAWRECTREL(3,290,16,380,RGB(255,0,0));ENDELSEIFBARSTATUS=2ANDDDDTHEN
4、BEGINDRAWRECTREL(3,230,16,380,RGB(255,0,0));ENDELSEIFBARSTATUS=2ANDEEETHENBEGINDRAWRECTREL(3,170,16,380,RGB(255,0,0));ENDELSEIFBARSTATUS=2ANDFFFTHENBEGINDRAWRECTREL(3,140,16,380,RGB(255,0,0));ENDELSEIFBARSTATUS=2ANDGGGTHENBEGINDRAWRECTREL(3,110,16,380,RGB(
5、255,0,0));ENDELSEIFBARSTATUS=2ANDHHHTHENBEGINDRAWRECTREL(3,85,16,380,RGB(255,0,0));END;gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);今日阻力:=REF(明日阻力,1);今日支撑:=REF(
6、明日支撑,1);STICKLINE(DISPSTATUS=2andc>=今日阻力,今日阻力,今日阻力,30,0),Color0000FF;STICKLINE(DISPSTATUS=2andc<今日阻力,今日阻力,今日阻力,30,0),Color00FF00;STICKLINE(DISPSTATUS=2andc>=今日支撑,今日支撑,今日支撑,30,0),ColorFF00FF;STICKLINE(DISPSTATUS=2andc<今日支撑,今日支撑,今日支撑,30,0),ColorFF0000;DRAWTE
7、XTREL(23,117,'--------------------------------'),ColorFFFFFF;IFBARSTATUS=2andc>=今日支撑THENDRAWTEXTREL(23,147,'今日支撑=:'+NUMTOSTRN(今日支撑,2)),ColorFF00FF;IFBARSTATUS=2andc<今日支撑THENDRAWTEXTREL(23,147,'今日支撑=:'+NUMTOSTRN(今日支撑,2)),ColorFF0000;IFBARSTATUS=2andc>=今日阻力T
8、HENDRAWTEXTREL(23,197,'今日阻力=:'+NUMTOSTRN(今日阻力,2)),Color0000FF;IFBARSTATUS=2andc<今日阻力THENDRAWTEXTREL(23,197,'今日阻力=:'+NUMTOSTRN(今日阻力,2)),Color00FF00;IFBARSTATUS=2andc>=明日支撑THENDRAWTEXTREL(173,147,'明日支撑=:'+NUMTO