X_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
短线看多入场:(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210,CIRCLEDOT;
短线看空入场:MA(短线看多入场,5),CIRCLEDOT;
STICKLINE(短线看多入场>短线看空入场,短线看多入场,短线看空入场,4,4),COLORRED;
STICKLINE(短线看多入场<短线看空入场,短线看多入场,短线看空入场,4,4),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,短线看多入场>短线看空入场,0.05,0,'黄金趋势:中期看空'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,短线看多入场<短线看空入场,0.05,0,'黄金趋势:中期看多'),COLORRED;
DRAWICON(CROSS(短线看多入场,短线看空入场),短线看多入场*1,5);
DRAWICON(CROSS(短线看空入场,短线看多入场),短线看空入场*1,6);
{财神主力追踪}
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE;
A10:=CROSS(控盘,0);
无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;
开始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW;
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;
有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;
VAR2:=100*WINNER(CLOSE*0.95);{分析家 公式网 }
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF;
高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;
主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;