分时分时源码IF (MARKETTYPE==17 OR MARKETTYPE==33 )
{
分时趋势="该只用于A股。";
}
AAA:=MAX(DYNAINFO(3),DYNAINFO(5));
BBB:=MIN(DYNAINFO(3),DYNAINFO(6));
CCC:AAA-BBB;
中轨:(AAA+BBB)/2,colorgray;
DIFF:=(EMA(NEW,12)-EMA(NEW,26))*500/EMA(NEW,26);
DEAA:=EMA(DIFF,9);
:=(DIFF-DEAA)/4;
STICKLINE(MACD>=REF(MACD,1)AND MACDREF(MACD,1)AND MACD>=0,中轨,中轨+MACD,2,1),COLOR0000DD;
STICKLINE(MACD0,中轨,中轨+MACD,2,0),COLORDDDD00;
阻力:BBB+CCC*7/8,COLOR00DD00;
支撑:BBB+CCC*1/8,COLOR00DD00;
上顶:BBB+CCC*2/3,colorwhite;
下底:BBB+CCC/3,colorwhite;
价:NEW,COLOR00FFFF;
FILLRGN(MA(NEW,60),MA(NEW,90),MA(NEW,60)>MA(NEW,90),RGB(255,0,255));
FILLRGN(MA(NEW,60),MA(NEW,90),MA(NEW,60)MA(NEW,30),RGB(255,255,0));
FILLRGN(MA(NEW,20),MA(NEW,30),MA(NEW,20)MA(NEW,20),RGB(255,0,0));
FILLRGN(MA(NEW,10),MA(NEW,20),MA(NEW,10)TIPTEXT(ISNULL(REFX(CLOSE,1)),0,' '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'');