VAR1:=EMA(MA(IF(C>O,(C-O)*V,IF(C<O,(C-O)*V,0)),5),1);
VAR2:=EMA(MA(IF(C>REF(C,1),(C-REF(C,1))*V,IF(C<REF(C,1),(C-REF(C,1))*V,0)),5),1); VAR3:=EMA(MA(IF(O>REF(C,1),(O-REF(C,1))*V,IF(O<REF(C,1),(O-REF(C,1))*V,0)),5),1); VAR4:=EMA(MA(IF(C<O,(O-C)*V,IF(C>O,(O-C)*V,0)),10),1); VAR5:=EMA(MA(IF(C<REF(C,1),(REF(C,1)-C)*V,IF(C>REF(C,1),(REF(C,1)-C)*V,0)),10),1); VAR6:=EMA(MA(IF(O<REF(C,1),(REF(C,1)-O)*V,IF(O>REF(C,1),(REF(C,1)-O)*VOL,0)),10),1); VAR7:=C>O; VAR8:=C>REF(C,1); VAR9:=O>REF(C,1); 多頭:(VAR1+VAR2+VAR3)/3/100,colorwhite; 空頭:(VAR4+VAR5+VAR6)/3/100,coloryellow ; 一次警報(bào):EMA(EMA((VAR1+VAR2+VAR3)/3-(VAR4+VAR5+VAR6)/3,5),5)*1/100,colormagenta; 二次警報(bào):EMA((COUNT(VAR8,12)/12+COUNT(VAR7,12)/12+COUNT(VAR9,12)/12)/3*MA(多頭,5)*2*1.1,2),colorblue; STICKLINE(空頭>0,0,空頭,1,0),colorcyan; STICKLINE(空頭<0,0,空頭,1,0),colorred; X1:=EMA(EMA((VAR1+VAR2+VAR3)/3-(VAR4+VAR5+VAR6)/3,5),5)*1/100; X2:=EMA((COUNT(VAR8,12)/12+COUNT(VAR7,12)/12+COUNT(VAR9,12)/12)/5*MA(多頭,5.3)*2*6.8,5); X3:=EMA((COUNT(VAR8,22)/22+COUNT(VAR7,22)/22+COUNT(VAR9,22)/22)/18*MA(多頭,8)*5*1.8,5); DRAWTEXT(CROSS(X1,0),0,'★'),COLORFF9999,LINETHICK2; DRAWTEXT(CROSS(X2,0),0,'★'),COLORFF99FF,LINETHICK2; DRAWTEXT(CROSS(X3,0),0,'★<'),colorgreen,LINETHICK2; |
|