变量0:=5;
变量1:=10;
变量2:=60;
DRAWBAND(MA(VOL,变量0),RGB(188,88,98),MA(VOL,变量1),RGB(0,188,0));
DRAWBAND(MA(VOL,变量0),RGB(160,0,0),MA(VOL,变量2),RGB(83,123,68));
变量5:=IF(PERIOD = 5,240,IF(PERIOD = 4,60,IF(PERIOD = 3,30,IF(PERIOD = 2,15,IF(PERIOD = 1,5,DRAWNULL)))));
变量6:=IF(ISLASTBAR,VOL * 变量5 / MOD(FROMOPEN,变量5),DRAWNULL);
STICKLINE(ISLASTBAR,变量6,0,-1,-1),COLORDDDDDD;
DRAWBAND(MA(VOL,5),RGB(150,0,80),MA(VOL,10),RGB(10,10,130));
STICKLINE(CLOSE > REF(CLOSE,1),0,VOL,-2,1),COLOR3030FF;
STICKLINE(CLOSE < REF(CLOSE,1),0,VOL,-2,0),COLORFFFF40;
STICKLINE(CLOSE = REF(CLOSE,1),0,VOL,-2,1),COLORWHITE;
STICKLINE(VOL / MA(VOL,10) >= 1.95 AND CLOSE >= REF(CLOSE,1),VOL / 2,VOL,-2,0),COLORYELLOW;
V5:MA(VOL,5),COLORWHITE;
V10:MA(VOL,10),COLORMAGENTA;
V60:MA(VOL,60),LINETHICK2,COLORGREEN;
DRAWICON(CROSS(V5,V60),V5,1);
DRAWICON(CROSS(V5,V10),V5,1);
DRAWICON(CROSS(V60,V5),V5,2);
DRAWICON(CROSS(V10,V5),V5,2);
量是肯定:VOL / V60;
现量:PLOYLINE(1,CONST(VOL)),COLOR008888;
标签:MA,变量,VOL,公式,RGB,通达信,源码,V5,CLOSE From: https://www.cnblogs.com/zhibiao/p/17992671