頂:3,COLORRED;
底:-3,COLORGREEN;
{周期波動}
VAR1:=LLV(L,34);
VAR2:=SMA(ABS(L-REF(L,1)),34,1);
VAR3:=SMA(MAX(L-REF(L,1),0),34,2);
DD:-EMA(IF(L<=VAR1,VAR2/VAR3,(-3)),9),STICK,COLORRED;{紅色柱線}
STICKLINE(DD<0,0,DD,1,0),COLORYELLOW;{反向?qū)嵭闹鶀
VAR4:=LLV(L,8);
VAR5:=SMA(ABS(L-REF(L,1)),34,1);
VAR6:=SMA(MAX(L-REF(L,1),0),34,2);
AA:-EMA(IF(L<=VAR4,VAR5/VAR6,(-3)),9),COLORMAGENTA,LINETHICK2;{反向趨勢線}
STICKLINE(DD>AA,DD,AA,1,1),COLORCYAN;{空心柱}
VAR7:=(C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100;
VAR8:=SMA(VAR7,3,1);
VAR9:=SMA(VAR8,3,1);
VAR10:=3*VAR8-2*VAR9;
XG1:CROSS(VAR10,VAR8),NODRAW,COLORFFFFFF;
{均線系統(tǒng)}
VAR11:=((C-MA(C,6))/MA(C,6)*200+(C-MA(C,24))/MA(C,24)*300+(C-MA(C,12))/MA(C,12)*100)/6;
VAR12:=MA(VAR11,6);
XG2:CROSS(VAR11,VAR12) AND VAR11<(-8.5),NODRAW,COLORLIRED;
{引用KDJ}
VAR13:=KDJ.D(89,3,3);
VAR14:=KDJ.D(27,3,3);
VAR15:=KDJ.K(89,3,3);
VAR16:=KDJ.K(27,3,3);
VAR17:=VAR14>REF(VAR14,1);
VAR18:=VAR14<REF(VAR14,1);
VAR19:=VAR13>REF(VAR13,1);
VAR20:=VAR13<REF(VAR13,1);
VAR21:=VAR17 AND VAR20 OR (VAR18 AND VAR19);
VAR22:=VAR17 AND VAR19 AND REF(VAR18,1) AND REF(VAR20,1) AND REF(VAR18,2) AND REF(VAR20,2) AND REF(VAR18,3) AND REF(VAR20,3);
XG3:VAR21 OR VAR22 AND VAR15<20 AND VAR16<30,COLORYELLOW,LINETHICK1;{買進信號}
聯(lián)系客服