VERTLINE(HOUR=15),POINTDOT,color4900;
重心:=(CLOSE+0.618*REF(CLOSE,1)+0.382*REF(CLOSE,2)+0.236*REF(CLOSE,3)+0.146*REF(CLOSE,4))/2.382;
GAO:=HHV(CLOSE,60)-LLV(CLOSE,60);
RSI:=(SMA(MAX(重心-REF(重心,1),0),5,1))/(SMA(ABS(重心-REF(重心,1)),5,1));
指导线:=重心+GAO*(RSI-0.5);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=1*(DIFF-DEA);
FILLRGN(MACD>0,MACD,0),color80;
FILLRGN(MACD>0 AND MACD[
FILLRGN(MACD<0,MACD,0),color5900;
STICKLINE(MACD>=0 AND DIFF][
DRAWICON(DIFF>REF(DIFF,1),DIFF,10),ALIGN4;
DRAWICON(DIFF][
DIFF60:"MACD选股用.DIFF#min60",LINETHICK0;
DEA60:="MACD选股用.DEA#min60";
DIFF15:"MACD选股用.DIFF#min30",LINETHICK0;
DEA15:="MACD选股用.DEA#min15";
总股【亿】:FINANCE(1)/10000,LINETHICK0,colorFF00;
流通【亿】:CAPITAL/1000000,LINETHICK0,colorFFFF00;
收益:FINANCE(33),LINETHICK0,colorFFFFFF;
市盈率:DYNAINFO(39),LINETHICK0;
0,colorFF00;
PARTLINE(指导线>REF(指导线,1),0),LINETHICK3,colorFF;
PARTLINE(DIFF<=REF(DIFF,1),DIFF),LINEDOT,LINETHICK1,colorFF00;
PARTLINE(DIFF>REF(DIFF,1) AND DIFF>0,DIFF),LINETHICK3,colorFF;
PARTLINE(DIFF>REF(DIFF,1) AND DIFF<0,DIFF),LINETHICK3,colorFF;
PARTLINE(DIFF60>REF(DIFF60,1),DIFF*1.15),LINETHICK1,colorFFFF;
PARTLINE(DIFF60][
PARTLINE(DIFF15>REF(DIFF15,1),DIFF*0.75),LINETHICK1,colorFF00FF;
PARTLINE(DIFF15][
]