DRAWGBK(O>C,RGB(1654,155,15),RGB(2000,23,59),0,'1',0);
VAR6:="KDJ.J#WEEK"(9,3,3);
VAR8:="KDJ.J#MONTH"(9,3,3);
DEA7:="MACD.DEA#WEEK";
DIFF7:="MACD.DIF#WEEK";
D7:=DIFF7-DEA7;
DEA8:="MACD.DEA#MONTH";
DIFF8:="MACD.DIF#MONTH";
D8:=DIFF8-DEA8;
如意金箍棒:=CROSS(VAR6,0) AND D8>0 OR CROSS(VAR8,0) AND D7>0;
Y1:=LLV(L,17);
Y2:=SMA(ABS(L-REF(L,1)),17,1);
Y3:=SMA(MAX(L-REF(L,1),0),17,2);
Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));
STICKLINE(如意金箍棒,12,0,6,0),COLORYELLOW;
STICKLINE(如意金箍棒,12,0,4,0),COLORMAGENTA;
STICKLINE(如意金箍棒,12,0,2,0), COLORRED;
DRAWTEXT(如意金箍棒,8,'如'),COLORYELLOW;
DRAWTEXT(如意金箍棒,7,'意'),COLORYELLOW;
DRAWTEXT(如意金箍棒,6,'金'),COLORYELLOW;
DRAWTEXT(如意金箍棒,5,'箍'),COLORYELLOW;
DRAWTEXT(如意金箍棒,4,'棒'),COLORYELLOW;