之一
A0:=HHV(H,2)-REF(HHV(H,2),1); A00:=LLV(L,2)-REF(LLV(L,2),1);
BDLH:=EMA(A0,13)*100,COLORRED,LINETHICK2; BDLL:=EMA(A00,13)*100,COLORCYAN,LINETHICK2; BDLA0:(BDLH+BDLL)/2,LINETHICK2;
DRAWICON(BDLA0<REF(BDLA0,1)AND C>REF(C,1),BDLA0-0.5,6),COLORYELLOW; DRAWICON(BDLA0>REF(BDLA0,1)AND C<REF(C,1),BDLA0+0.5,5),COLORGREEN;
DRAWICON(BDLA0<REF(BDLA0,1),BDLA0,2),COLORYELLOW; DRAWICON(BDLA0>REF(BDLA0,1),BDLA0,1),COLORGREEN;
之二
A0:=HHV(H,2)-REF(HHV(H,2),1); A00:=LLV(L,2)-REF(LLV(L,2),1);
BDLH:=EMA(A0,55),COLORRED,LINETHICK2; BDLL:=EMA(A00,55),COLORCYAN,LINETHICK2; BDLA000:=(BDLH+BDLL)/2,LINETHICK2;
BDLA0:EMA(BDLA000,21); BDLA00:EMA(BDLA000,55);
DRAWICON(BDLA0<REF(BDLA0,1)AND C>REF(C,1),BDLA0-0.001,6),COLORYELLOW; DRAWICON(BDLA0>REF(BDLA0,1)AND C<REF(C,1),BDLA0+0.001,5),COLORGREEN;
DRAWICON(BDLA0<REF(BDLA0,1),BDLA0,2),COLORYELLOW; DRAWICON(BDLA0>REF(BDLA0,1),BDLA0,1),COLORGREEN;
之三 A0:=HHV(H,2)-REF(HHV(H,2),1); A00:=LLV(L,2)-REF(LLV(L,2),1);
BDLA0:((EMA(A0,55)+EMA(A00,55))/2)*100,LINETHICK1; BDLA1:((EMA(A0,21)+EMA(A00,21))/2)*100,LINETHICK1;
冬天:IF(BDLA0<REF(BDLA0,1)AND BDLA1<REF(BDLA1,1),BDLA1,DRAWNULL),LINETHICK2,COLORWHITE; 春天:IF(BDLA0<REF(BDLA0,1)AND BDLA1>REF(BDLA1,1),BDLA1,DRAWNULL),LINETHICK5,COLORGREEN; 秋天:IF(BDLA0>REF(BDLA0,1)AND BDLA1<REF(BDLA1,1),BDLA1,DRAWNULL),LINETHICK5,COLORYELLOW; 夏天:IF(BDLA0>REF(BDLA0,1)AND BDLA1>REF(BDLA1,1),BDLA1,DRAWNULL),LINETHICK2,COLORRED; |