股票波动必然在单位时间内产生盈利盘和套牢盘
在正常市中,股票价格以箱体进行波动
该指标出于此理论,统计出盈利和套牢在某时段的具体点数,能够及时提醒风险,起到辅助判断顶底,及时抄底和止盈的作用
源码
TN:=(HHV(H,8)-C)/HHV(H,8)*100;
YL:=(C-LLV(L,8))/LLV(L,8)*100;
T1:=IF(TN>YL,TN,0);
T2:=IF(TN<YL,TN,0);
Y1:=IF(YL>TN,YL,0);
Y2:=IF(YL<TN,YL,0);
STICKLINE(1,T1,0,8,1),colorcyan;
STICKLINE(1,Y1,0,8,1),colorred;
STICKLINE(1,T2,0,6,0),colorcyan;
STICKLINE(1,Y2,0,6,0),colorred;
套牢:TN;
盈利:YL;
YL1:SMA(YL,3,1);
YL2:SMA(YL1,3,1);
FILLRGN(YL1,YL2,YL1>YL2,colorred,YL1<YL2,colorblue);