九毛八公式指标
老师好,在网上下载了一个轨道买卖指标.因要叠加均线主图,很花哨,看到眼花。 故仅想提取部分内容,谢谢 M5:MA(CLOSE,5)COLORRED; E40:=EMA(CLOSE,40),COLORFFFFFF; VAR1:=(C+H+O+L)/4; 卖出:XMA(VAR1,12)*(1+60/1000),COLORGREEN,LINETHICK2; 买入:XMA(VAR1,32)*(1-100/1000),COLOR4F2F4F,LINETHICK2; 幅度:=100*(卖出-买入)/买入,NODRAW; 最低位五:(L+0.00)*1.055,NODRAW,COLORFFFFFF; 二:C*1.025,NODRAW,COLOR00FFFF; 三:C*1.035,NODRAW,COLORGREEN; 四:C*1.045,NODRAW,COLOR00FFFF; 五:C*1.055,NODRAW,COLORGREEN; 六:C*1.065,NODRAW; 七:C*1.075,NODRAW,COLOR00FFFF; {划线明成立} BB: MAX(C,O)-(REF(MAX(C,O),2)-MAX(C,O))/2,COLORRED,NODRAW; {蓝线 } RL4:REF(L,1)*(1+5*0.01+0.005),COLORFF0000; DRAWTEXT(ISLASTBAR,L*(1+5*0.01+0.005),' -----ML5'),COLORFF0000; MA1:=MA(VAR1,3); STICKLINE(卖出>LOW AND 卖出
公式模块:
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,12)*(1+60/1000),COLORGREEN,LINETHICK2; 买入:XMA(VAR1,32)*(1-100/1000),COLOR4F2F4F,LINETHICK2; MA1:MA(CLOSE,5),COLORRED; MA2:MA(CLOSE,10),COLORWHITE; MA3:MA(CLOSE,20),COLORGREEN; MA4:MA(CLOSE,30),COLORYELLOW; DRAWTEXT(crOSS(C,买入) OR (L<买入),LOW*0.95,'B'),COLORRED,LINETHICK2; DRAWTEXT(CROSS(C,卖出) OR (H>卖出),HIGH*1.02,'S'),COLORGREEN;