-
AA:=(C*2+H+L+O)/5;{当天四个价的平均价} A0:=MA(C,5);{5日均线} A1:(EMA(AA,4)+MA(AA,8)+MA(AA,16))/3,COLORWHITE; {均价的均线简单平均值} A2:(EMA(AA,9)+MA(AA,18)+MA(AA,36))/3,COLORFF00FF; {同上(参数不同)} A3:(EMA(AA,13)+MA(AA,26)+MA(AA,52))/3,COLOR00FF00; {同上(参数不同)} A4:(EMA(AA,24)+MA(AA,48)+MA(AA,96))/3,COLOR0000FF;{同上(参数不同)} A5:=EMA(100*(C-LLV(L,100))/(HHV(H,100)-LLV(L,100)),5); A6:=A5/4; A7:=MAX(MAX(A1,A2),MAX(A3,A4));{“A1,A2,A3,A4”的最大值} A8:=MIN(MIN(A1,A2),MIN(A3,A4));{“A1,A2,A3,A4”的最小值} A9:=MIN(MIN(A1,A2),A3);{“A1,A2,A3”的最小值} A10:=MAX(MAX(A1,A2),A3);{“A1,A2,A3”的最大值} 黄金叉:=CROSS(A2,A4)AND A3>REF(A3,1)AND A0>REF(A0,2)AND (A1-A4)/A4A7 AND LREF(A4,2)AND (A7-A8)/A8O AND (H-C)/(C-O)<0.4,3); 圆弧底:=LONGCROSS(A1,A3,30)AND (A4-A3)/A3<0.05 AND A10REF(A4,2)AND REF(A1,3)O AND(A10-A9)/A9<0.005,5); {A1,A3金叉,且均线“A1,A2,A3”密集(即:三线粘合)} DRAWICON(黄金叉 OR 双交叉 OR 穿四线 OR 三线粘合,L-0.1,1); DRAWTEXT(圆弧底,A1,'▲'),COLORWHITE; DRAWTEXT(圆弧底,L-0.2,'圆弧底'),COLORWHITE;
如本站内容“对您有用”,欢迎随意打赏,让我们持续更新!
打赏