{奥德量: 副图(叠加K线)}
{参数1: N, 最小: 0, 最大: 100, 缺省: 4}
n:=4;
下:DRAWLINE(HIGH>=HHV(HIGH,N),HIGH,LOW<=LLV(LOW,N),LOW,0);
上:DRAWLINE(LOW<=LLV(LOW,N),LOW,HIGH>=HHV(HIGH,N),HIGH,0);
当前成交量:VOL/100,NODRAW;
上均量:SUM(VOL/100,BARSLAST(LOW<=LLV(LOW,N))+1)/(BARSLAST(LOW<=LLV(LOW,N))+1),NODRAW,COLORYELLOW;
下均量:SUM(VOL/100,BARSLAST(HIGH>=HHV(HIGH,N))+1)/(BARSLAST(HIGH>=HHV(HIGH,N))+1),NODRAW;
DRAWTEXT((下=上)*HIGH>=HHV(HIGH,N),HIGH,VAR2STR(上均量,2));
DRAWTEXT(LOW<REF(LOW,1) AND LOW<=LLV(LOW,N)*(下=上),LOW-0.2,VAR2STR(下均量,2));
p20183922513687395.jpg
|