发个小公式,把13日均线拉平看,追涨的时候让自己保持点清醒 M1 13 N 100 MA13:=MA(C,M1); {MA34:(MA(C,34)-MA13)/MA13*100,COLORYELLOW; MA55:(MA(C,55)-MA13)/MA13*100,COLORMAGENTA;} 0,DOTLINE,COLOR666666; DRAWKLINE((HIGH-MA13)/MA13*100,(OPEN-MA13)/MA13*100,(LOW-MA13)/MA13*100,(CLOSE-MA13)/MA13*100); {换手量指标源码} TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1))))); MTIME:=MOD(FROMOPEN,TOTAL); CTIME:=IF(MTIME<0.5,TOTAL,MTIME); 虚拟成交量:IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL),COLORLIGRAY,NODRAW; 成交量:VOL,COLORLIGRAY,NODRAW; {STICKLINE(CURRBARSCOUNT=1,虚拟成交量,0,-1,-1),COLOR00C0C0;} 虚拟换手:虚拟成交量/(FINANCE(7)/10000),COLORLIGREEN,NODRAW; 换手:100*VOL/(FINANCE(7)/100),COLORLIGREEN,NODRAW; {DRAWBAND(MA(换手,5)>MA(换手,10),RGB(165,0,0),MA(换手,5)<MA(换手,10),RGB(0,165,0));} 历史天量:=HHV(成交量,0); 历史地量:=LLV(成交量,0)=成交量,NODRAW,COLORRED; 阶段地量:=LLV(成交量,N)=成交量,NODRAW,COLORLIGREEN;{百日抵换手} {DRAWICON(阶段地量,0,23); DRAWICON(历史地量,成交量*0.1,25);} MA5:=MA(成交量,5),COLORWHITE; MA10:=MA(成交量,10),COLORYELLOW; (虚拟)成交比:虚拟成交量/REF(成交量,1)*100,COLORLIGRAY,NODRAW; 成交比:成交量/REF(成交量,1)*100,COLORLIGRAY,NODRAW; 均量比(5日):成交量/MA5*100,COLORLIGREEN,NODRAW; 巨量:(成交量/MA5*100)>300,COLORLIGREEN,NODRAW; |
