{HSZL_沪深超赢资金仓位}
input:N(7,1,500);
DRAWGBKLAST(CLOSE>0, STRIP(RGB(2,5,44),RGB(3,60,11),0));
A:=DATE<1091231;
WJ:=(HIGH+LOW+CLOSE)/3;
总买入量:=(IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN))*(VOL/IF(HIGH=LOW,4,HIGH-LOW))+
IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW)*(VOL/IF(HIGH=LOW,4,HIGH-LOW)))*C/100;{,LINETHICK0,COLORRED;}
总卖出量:=(IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE))*(VOL/IF(HIGH=LOW,4,HIGH-LOW))+
IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ)*(VOL/IF(HIGH=LOW,4,HIGH-LOW)))*C/100;{,LINETHICK0,COLOR00FFFF;}
市值:=CAPITAL*CLOSE/10000;
超赢资金净入:=(总买入量-总卖出量)*A;
日超赢资金增减:超赢资金净入/市值,LINETHICK0,COLORred;
超赢资金仓位:SUM(日超赢资金增减,0),LINETHICK1,COLORWHITE;
N日超资金增减:SUM(日超赢资金增减,N),LINETHICK0,COLORblue;
stickline(日超赢资金增减>0,超赢资金仓位,超赢资金仓位+日超赢资金增减,5,0),colorred;
stickline(日超赢资金增减<0,超赢资金仓位+日超赢资金增减,超赢资金仓位,5,0),colorgreen;
drawtextabs(0,0,'沪深超赢资金仓位'),coloryellow;
20090628沪深超赢资金仓位.GIF (36.33 KB)
2009-6-28 16:29
设计理念——按照“网友”的一个算法,买卖量与市值动态关系以及“股市神童——胡立阳”量价关联设计,请广大股友继续优化!