MID:=MA(CLOSE,20);市场持股成本:DMA(AMOUNT/V/100,V/CAPITAL),LINETHICK0;
多头警戒线: MID + 2*STD(CLOSE,20);
空头警戒线: MID - 2*STD(CLOSE,20);
多空趋势线:(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15)+MA(CLOSE,20))/4,COLORRED;
{ _最新股票指标公式}
DRAWICON(crOSS(C,多空趋势线) AND 多空趋势线>REF(多空趋势线,1) AND O>REF(C,1),L-0.20,4);
DRAWTEXT(CROSS(C,多空趋势线) AND 多空趋势线>REF(多空趋势线,1) AND O>REF(C,1),LOW*0.980,'追');
DRAWICON(CROSS(C,空头警戒线) AND 多空趋势线>REF(多空趋势线,1) AND O>REF(C,1),L-0.20,1);
DRAWTEXT(CROSS(C,空头警戒线) AND 多空趋势线>REF(多空趋势线,1) AND O>REF(C,1),LOW*0.980,'买');
DRAWICON(CROSS(C,空头警戒线) AND 多空趋势线>REF(多空趋势线,1) AND O<REF(C,1),L-0.20,3);
DRAWTEXT(CROSS(C,空头警戒线) AND 多空趋势线>REF(多空趋势线,1) AND O<REF(C,1),LOW*0.980,'底');