九毛八公式指标
请问这个公式里面两条线将要粘合应该怎样表达? “买入持股”这线由下自上,将要和上面的244日均线粘合,应该怎样表达? A0:=(L+H+C*2)/4; A1:EMA(A0,14)COLORBLUE,LINETHICK2; A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW; 买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3; 卖出空仓:IF(A1X<0 and a2x<0,a1,drawnull)colorgreen,linethick3; stickline(cross(a1x,0),h,l,0,0 ),color9933ff; stickline(cross(a1x,0),c,o,3,0 ),color0000cc; stickline(cross(a1x,0),c,o,1,0 ),color0033ff; stickline(cross(0,a1x),l,h,0,0 ),color66cc33; 多:=EMA(C,3),COLORYELLOW;空:=EMA(C,5),COLOR00FF00;均衡:=EMA(空,5),COLORWHITE,;VARF1:=COUNT(CROSS(多,均衡),2)=1;VARF2:=COUNT(CROSS(空,均衡),2)=1;ZAI:=FILTER(VARF1 varf2,2); drawicon(zai,c*1.02,17); ma1:ma(close,244);
编写方法:
A0:=(L+H+C*2)/4;
A1:=EMA(A0,14); MA1:=MA(CLOSE,244); 粘合参数:=0.985;{距离1.5%以内,怎样合适你自己慢慢改} A1>REF(A1,1) AND A1/MA1<1 AND A1/MA1>=0.985;
0>