通达信资金流副图公式源码


成交额:AMOUNT,NODRAW;
JJ:=(HIGH+LOW+CLOSE)/3;
主买:ABS(QJ0*(JJ-MIN(CLOSE,OPEN))),COLORRED,NODRAW;
散买:(QJ0*(HIGH-MAX(OPEN,CLOSE))),NODRAW;
主买卖差:=主买-主卖,NODRAW;
STICKLINE(主买卖差>=0,0,主买卖差,2,0),COLORRED;
今天资金进出:(主买+散买)-(主卖+散卖),COLORWHITE,NODRAW;
STICKLINE(散买-散卖>0 AND 主买卖差<0,散买-散卖,0,2,0),COLORLIRED;
STICKLINE(散买-散卖<0 AND 主买卖差>0,散买-散卖,0,2,0),COLORLIGRAY;
STICKLINE(今天资金进出<0,今天资金进出*0.98,今天资金进出,2.5,0),COLORBLUE;