分时主图
DRAWTEXT_FIX(ISLASTBAR,0.00,0.06,0,STRCAT('涨家数: ',CON2STR(DYNAINFO(60),0))),COLORLIRED;
DRAWTEXT_FIX(ISLASTBAR,0.00,0.14,0,STRCAT('跌家数: ',CON2STR(DYNAINFO(61),0))),COLORGREEN;
总涨跌比:=DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,COLORCYAN,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.22,0,STRCAT('总涨跌比: ',CON2STR(总涨跌比,2))),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.08,0,CODE),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.45,0.08,0,STKNAME)COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.08,0,HYBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,DYBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.3,0.79,0,GNBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.3,0.87,0,FGBLOCK),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.3,0.95,0,ZSBLOCK),COLORWHITE;
今日开盘线:DYNAINFO(4),COLORMAGENTA;
AAA:=MAX(DYNAINFO(3),DYNAINFO(5));
BBB:=MIN(DYNAINFO(3),DYNAINFO(6));
CCC:=AAA-BBB;
中轨:=(AAA+BBB)/2,COLOR999900;
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*500/EMA(CLOSE,26);
DEAA:=EMA(DIFF,9);MACD:=(DIFF-DEAA)/4;
阻力:BBB+CCC*7/8,COLOR00DD00,LINETHICK2;
支撑:BBB+CCC*1/8,COLOR00DD00,LINETHICK2;
上顶:BBB+CCC*2/3,COLOR999900;
下底:BBB+CCC/3,COLOR999900;
价:C,COLOR00FFFF;
最新:C,LINETHICK9,COLORFFFF00;
IF(C>=REF(C,1),C,DRAWNULL),LINETHICK9,COLOR0909FF;
DRAWICON(LONGCROSS(支撑,C,2),C,1);
DRAWICON(LONGCROSS(C,阻力,2),C,2);
p20161202181595062.jpg
|