 | |  |  |
大智慧分时成交量变色源码公式:
成交量:VOL,LINETHICK0,COLORWHITE;
VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
买卖差:=(买盘 + 卖盘);
STICKLINE((V > 0),买盘-卖盘,0,1,0),COLOR00FFFF;
VAR2:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR2) * VOL);
VAR7:=((VAR4 / VAR2) * VOL);
VAR8:=((VAR5 / VAR2) * VOL);
{多头:}STICKLINE((CLOSE > MA(CLOSE,2)),0,VOL,3,1),COLOR0000FF;
{空头:}STICKLINE((CLOSE < MA(CLOSE,2)),0,VOL,3,1),COLOR00FF00;
STICKLINE((CLOSE > OPEN),买盘,0,0,0),COLOR0000FF;
STICKLINE((CLOSE < OPEN),-卖盘,0,0,0),COLOR00FF00; |

| |  | |  |
|