通达信价稳量缩才是底源码

价稳量缩才是D

N:=30;

AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;

卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;

进出0量:0,COLORBLUE;

日5内买量:MA(买量,5),LINETHICK1,COLORGREEN;

日5内卖量:MA(卖量,5),LINETHICK1,COLORGREEN;

日10内买量:MA(买量,10),LINETHICK1,COLORGREEN;

日10内卖量:MA(卖量,10),LINETHICK1,COLORGREEN;

日20内买量:MA(买量,20),LINETHICK1,COLORGREEN;

日20内卖量:MA(卖量,20),LINETHICK1,COLORGREEN;

N日内买量:MA(买量,N),LINETHICK1,COLORGREEN;

N日内卖量:MA(卖量,N),LINETHICK1,COLORGREEN;

日50内买量:MA(买量,50),LINETHICK1,COLORRED;

日50内卖量:MA(卖量,50),LINETHICK1,COLORRED;

进出量:=买量+卖量,COLOR00FFFF;